NodeTypeStarters
Starting point for a new traversal, e.g.
cpg.method
,cpg.call
etc. - these are generated by the flatgraph codegenerator and automatically inheritedcpg.method.name
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
Members list
Value members
Concrete methods
Traverse to all arguments passed to methods
Traverse to all arguments passed to methods
Attributes
Shorthand for cpg.argument.code(code)
Shorthand for cpg.argument.code(code)
Attributes
Shorthand for cpg.methodRef.where(_.referencedMethod.name(name))
Shorthand for cpg.methodRef.where(_.referencedMethod.name(name))
Note re API design: this step was supposed to be called methodRef(name: String)
, but due to limitations in Scala's implicit resolution (and the setup of our implicit steps) we have to disambiguate it from .methodRef
by name.
More precisely: Scala's implicit resolution reports 'ambiguous implicits' if two methods with the same name but different parameters are defined in two different (implicitly reachable) classes. The .methodRef
step is defined in generated.CpgNodeStarter
. This step (filter by name) doesn't get generated by the codegen because it's more complex than the other 'filter by primary key' starter steps.
Attributes
Traverse to all input parameters
Traverse to all input parameters
Attributes
Shorthand for cpg.parameter.name(name)
Shorthand for cpg.parameter.name(name)