Code influence range determination method, device and equipment
The invention discloses a code influence range determination method, device and equipment, and the method comprises the steps: obtaining a code item comprising at least one code file, the code item comprising a target type code, such as a function name, a variable name or a class name; at least one...
Gespeichert in:
Hauptverfasser: | , , , , , , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The invention discloses a code influence range determination method, device and equipment, and the method comprises the steps: obtaining a code item comprising at least one code file, the code item comprising a target type code, such as a function name, a variable name or a class name; at least one call chain is generated based on the target type code in the code item and the upstream call code of the target type code in the code item. The call chain is used to determine a code influence range of the modified code in the code item. Specifically, when a modification code exists in a code item, the modification code is determined firstly, and a target type code related to the modification code is determined. And further, searching a target type code involved in the modification code from the call chain, and generating a code influence range of the modification code in combination with the call chain. Therefore, the code influence range is determined based on the call chain, and the call chain relates to various |
---|