|
Class: RBBlockNode
Object
|
+--RBProgramNode
|
+--RBStatementNode
|
+--RBValueNode
|
+--RBBlockNode
|
+--RBPatternBlockNode
- Package:
- stx:goodies/refactoryBrowser/parser
- Category:
- Refactory-AST-Nodes
- Version:
- rev:
1.37
date: 2024/02/09 11:35:33
- user: stefan
- file: RBBlockNode.st directory: goodies/refactoryBrowser/parser
- module: stx stc-classLibrary: parser
BRBlockNode is an AST node that represents a block "[...]".
Instance Variables:
arguments <SequenceableCollection of: BRVariableNode> the arguments for the block
bar <Integer | nil> position of the | after the arguments
body <BRSequenceNode> the code inside the block
colons <SequenceableCollection of: Integer> positions of each : before each argument
left <Integer> position of [
right <Integer> position of ]
instance creation
-
arguments: argNodes body: sequenceNode
-
-
body: sequenceNode
-
accessing
-
allArgumentVariablesInto: aCollection
-
(self argumentNames includes:'stringToSearchFor')ifTrue:[self halt].
-
allDefinedVariables
-
-
allVariablesOnScope
-
-
argumentCount
-
-
argumentNames
-
-
arguments
-
-
arguments: argCollection
-
-
bar
-
return the position of the bar, if any
-
bar: barPosition
-
-
blockScope
-
-
blockVariables
-
-
body
-
-
body: stmtsNode
-
-
children
-
-
colons: anObject
-
-
firstLineNumber
-
-
firstLineNumber: something
-
-
lastLineNumber
-
-
lastLineNumber: something
-
-
left
-
-
left: anObject
-
-
numArgs
-
marked as obsolete by Stefan Vogel at 9-Feb-2024
** This is an obsolete interface - do not use it (it may vanish in future versions) **
-
precedence
-
-
right
-
-
right: anObject
-
-
startWithoutParentheses
-
-
stopWithoutParentheses
-
right
comparing
-
= anObject
-
(comment from inherited method)
return true if the receiver and the arg have the same structure.
Notice:
This method is partially open coded (inlined) by the compiler(s)
identical objects are always considered equal.
redefining it may not work as expected.
-
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
-
(comment from inherited method)
return an Integer useful as a hash key for the receiver.
This hash should return same values for objects with same
contents (i.e. use this to hash on structure)
-
semanticallyEqualTo: anObject withMapping: aDictionary
-
return true, if I am semantically 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)
copying-private
-
postCopy
-
super postCopy.
enumeration
-
variableNodesDo: aBlock
-
evaluate a Block for all variable nodes
matching
-
copyInContext: aDictionary
-
-
match: aNode inContext: aDictionary
-
Modified (format): / 19-11-2016 / 15:55:28 / cg
replacing
-
replaceNode: aNode withNode: anotherNode
-
testing
-
defines: aName
-
-
directlyUses: aNode
-
-
hasArguments
-
-
hasFalseValue
-
-
hasStatements
-
-
hasTrueValue
-
-
isBlock
-
-
isImmediate
-
-
isLast: aNode
-
-
references: aVariableName
-
-
uses: aNode
-
visitor
-
acceptVisitor: aProgramNodeVisitor
-
|