Class CallGraph.Builder

java.lang.Object
org.sonar.python.semantic.v2.callgraph.CallGraph.Builder
Enclosing class:
CallGraph

public static class CallGraph.Builder extends Object
  • 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 function
      to - The functions that is being called
      callingFunction - The function that is calling the function
      calledFunction - The function that is being called
      Returns:
      this builder
    • build

      public CallGraph build()