---
base_path: "doc/curtis/prompt/scanimpl_analysis"
script_path: "script"
assets_json: "team_tasks_classification.json"
current_step: "02"
透過額外分類檔 @team_tasks_classification.json 生成一腳本, 能夠為 @{{jsons}} 額外添加新的分類
範例A
檔案: team_tasks_classification.json
用於為 需求0.2 生成的 json 額外新增新的 tag, 以下面為例,將為行號 4117 的 ActiveFormCreate 方法新增 tag "初始化與生命週期"json { "tag": "初始化與生命週期", "methodName": "`ActiveFormCreate`", "lineno": "4117" }
檔案: scanimpl_annalysis.UIView.json
行號 4117 的 ActiveFormCreate 方法位於 @scanimpl_annalysis.UIView.json 中,應為 @scanimpl_annalysis.UIView.json
添加新的 tag "初始化與生命週期", 結果應如下json { "matcher": "procedure TCB_IMGPSScanX.ActiveFormCreate", "tags": [ "UIView", "初始化與生命週期" ], "lIndex": "4117", "rIndex": "4137" }
腳本檔案輸出位置:
output: {{script_path}}/{{output_script}}