Class CallGraph.Builder
java.lang.Object
org.sonar.python.semantic.v2.callgraph.CallGraph.Builder
- Enclosing class:
CallGraph
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
addUsage
public CallGraph.Builder addUsage(String from, String to, Tree callingFunction, @Nullable Tree calledFunction) Adds a usage edge from one function to another in the call graph.- Parameters:
from- The function that is calling the functionto- The functions that is being calledcallingFunction- The function that is calling the functioncalledFunction- The function that is being called- Returns:
- this builder
-
build
-