|
Class: SelfNode
Object
|
+--ParseNode
|
+--PrimaryNode
|
+--SelfNode
|
+--JavaScriptParser::ThisNode
|
+--SuperNode
- Package:
- stx:libcomp
- Category:
- System-Compiler-Support
- Version:
- rev:
1.23
date: 2017/02/22 18:10:05
- user: cg
- file: SelfNode.st directory: libcomp
- module: stx stc-classLibrary: libcomp
- Author:
- Claus Gittinger
node for parse-trees, representing self
This is a helper class for the compiler.
instance creation
-
value: val
-
accessing
-
name
-
-
value: val
-
code generation
-
codeForSimpleReturnOn: aStream inBlock: b lineNumber: lineNrOrNil for: aCompiler
-
-
codeOn: aStream inBlock: codeBlock for: aCompiler
-
-
codeStoreOn: aStream inBlock: codeBlock valueNeeded: valueNeeded for: aCompiler
-
not reached - parser has already checked this
enumerating
-
nodeDo: anEnumerator
-
helper for parse tree walking
evaluation
-
evaluateIn: anEnvironment
-
-
store: aValue
-
not reached - parser has already checked this
printing & storing
-
displayOn: aGCOrStream
-
Compatibility
append a printed desription on some stream (Dolphin, Squeak)
OR:
display the receiver in a graphicsContext at 0@0 (ST80).
This method allows for any object to be displayed in some view
(although the fallBack is to display its printString ...)
-
printOn: aStream indent: i
-
testing
-
isSelf
-
return true, if this is a self-node
visiting
-
acceptVisitor: aVisitor
-
Double dispatch back to the visitor, passing my type encoded in
the selector (visitor pattern)
|