編輯 | 究查 | 歷程 | 原始

---
base_path: "doc/curtis/prompt/scanimpl_analysis"
script_path: "script"
assets_json: "team_tasks_classification.json"
current_step: "02"

output_script: "scanimpl_annalysis_addon_json.js"

定義:
- 以下 @{{json}} 指的是 @scanimpl_annalysis_step_ver.md 需求 "0.1.3.3 階段三:模組分流實體化 (Module Disaggregation)" 所輸出的五個檔案

0.3 處理額外分類

0.3.1 生成處理額外分類腳本

透過額外分類檔 @team_tasks_classification.json 生成一腳本, 能夠為 @{{jsons}} 額外添加新的分類

  • 0.3.1.1 步驟1 變更資料
    由 @team_tasks_classification.json 中的 lineno 找出於 @{{jsons}} 所對應的 lineno,
    為其添加新的 tag, 並於 0.3.1.2 進行寫入

範例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" }

  • 0.3.1.2 步驟2 寫入資料
    寫入 0.3.1.1 的結果至相應的 json 檔

腳本檔案輸出位置:

output: {{script_path}}/{{output_script}}