RubyScope
io.joern.rubysrc2cpg.deprecated.astcreation.RubyScope
class RubyScope extends Scope[String, NewIdentifier, NewNode]
Extends the Scope class to help scope variables and create locals.
TODO: Extend this to similarly link parameter nodes (especially this
node) for consistency.
Attributes
- Graph
-
- Supertypes
-
class Scope[String, NewIdentifier, NewNode]class Objecttrait Matchableclass Any
Members list
Value members
Concrete methods
Attributes
- Definition Classes
-
Scope
def createAndLinkLocalNodes(diffGraph: DiffGraphBuilder, paramNames: Set[String]): List[DeclarationNew]
Will generate local nodes for this scope's variables, excluding those that reference parameters.
Will generate local nodes for this scope's variables, excluding those that reference parameters.
Value parameters
- paramNames
-
the names of parameters.
Attributes
Value parameters
- identifier
-
the identifier to count
Attributes
- Returns
-
the number of times the given identifier occurs in the immediate scope.
Attributes
- Definition Classes
-
Scope
Inherited methods
Attributes
- Inherited from:
- Scope
Attributes
- Inherited from:
- Scope
Attributes
- Inherited from:
- Scope
Attributes
- Inherited from:
- Scope
In this article