|
Class: RBVariableNode
Object
|
+--RBProgramNode
|
+--RBStatementNode
|
+--RBValueNode
|
+--RBVariableNode
|
+--RBMetaVariableNode
|
+--RBPatternVariableNode
- Package:
- stx:goodies/refactoryBrowser/parser
- Category:
- Refactory-AST-Nodes
- Version:
- rev:
1.32
date: 2017/11/30 16:54:00
- user: cg
- file: RBVariableNode.st directory: goodies/refactoryBrowser/parser
- module: stx stc-classLibrary: parser
BRVariableNode is an AST node that represent a variable (global, inst var, temp, etc.).
Instance Variables:
token <BRValueToken> the token that contains our name and position
instance creation
-
identifierToken: anIdentifierToken
-
-
named: aString
-
accessing
-
addReferencedVariablesTo: aCollection
-
-
definingSequence
-
Return the sequenceNode (i.e. the scope) that defines this variable
or nil, if no sequenceNode does
-
lineNumber
-
(comment from inherited method)
lineNumber isNil ifTrue:[
-
name
-
-
precedence
-
-
startWithoutParentheses
-
-
stopWithoutParentheses
-
-
token
-
-
tokenPosition
-
comparing
-
= anObject
-
-
equalTo: anObject withMapping: aDictionary
-
return true, if I am equal to another node, with a given variable name mapping.
Side effect: update the mapping dictionary as required to reflect a matching mapping (if possible)
-
equalTo: anObject withSelectorMapping: aDictionary
-
return true, if I am equal to another node, with a given selector name mapping.
Side effect: update the mapping dictionary as required to reflect a matching mapping (if possible)
-
hash
-
enumeration
-
variableNodesDo: aBlock
-
evaluate a Block for all variable nodes.
initialization & release
-
identifierToken: anIdentifierToken
-
libtool3 support
-
highlightInCodeView: aCodeView
-
-
leftClickMenuInCodeView: aCodeView
-
-
rightClickMenuInCodeView: aCodeView
-
matching
-
copyInContext: aDictionary
-
queries
-
isReferringToAnExceptionInContext: aSearchDictionary
-
true iff:
(node is a global variable or node is a class variable)
and the variable refers to an Exception class (but not a Notification)
testing
-
isClassVariableInContext: aSearchDictionary
-
not true - also returns true for class vars and globals
-
isGlobal
-
Return true if the variable node is for
a global variable, false otherwise.
Actually wrong: also returns true for inst- and class variables
(i.e. anything that is not a block- or method local)
-
isImmediate
-
-
isInstanceVariable
-
not true - also returns true for class vars and globals
-
isLocal
-
Return true if the variable node is for
a local variable, false otherwise.
Returns true for anything that is a block- or method local
-
isRead
-
Return true, if the variable is read
-
isSelf
-
true if I am the self-variable node
-
isSuper
-
-
isTemporary
-
Return true if the variable node is for
a temporary variable, false otherwise
-
isVariable
-
-
isVariableNotInLeftHandSideOfAssignment
-
Returns true iff receiver is variable node but not
in left-hand side of assignment
-
isWrite
-
Same as isWritten - bad naming here
-
isWritten
-
Return true, if the variable is written
-
reads: variableName
-
-
references: aVariableName
-
visitor
-
acceptVisitor: aProgramNodeVisitor
-
|