|
Class: PrimaryNode
Object
|
+--ParseNode
|
+--PrimaryNode
|
+--ConstantNode
|
+--JavaScriptParser::ArrayAccessNode
|
+--JavaScriptParser::AwaitNode
|
+--JavaScriptParser::IncDecNode
|
+--JavaScriptParser::NewNode
|
+--JavaScriptParser::TypeOfNode
|
+--SelfNode
|
+--VariableNode
- Package:
- stx:libcomp
- Category:
- System-Compiler-Support
- Version:
- rev:
1.40
date: 2024/02/13 20:10:34
- user: cg
- file: PrimaryNode.st directory: libcomp
- module: stx stc-classLibrary: libcomp
node for parse-trees, representing primaries (variables & literals)
This is a helper class for the compiler.
copyrightCOPYRIGHT (c) 1989 by Claus Gittinger
All Rights Reserved
This software is furnished under a license and may be used
only in accordance with the terms of that license and with the
inclusion of the above copyright notice. This software may not
be provided or otherwise made available to, or used by, any
other person. No title to or ownership of the software is
hereby transferred.
queries
-
isAbstract
-
Return if this class is an abstract class.
True is returned here for myself only; false for subclasses.
Abstract subclasses must redefine this again.
accessing
-
charIndex
-
-
charIndex: something
-
-
line
-
-
line: something
-
-
type: t value: val
-
-
value
-
for compatibility with RB-AST
-
value: val
-
code generation
-
codeStoreOn: aStream inBlock: codeBlock valueNeeded: valueNeeded for: aCompiler
-
** This method must be redefined in concrete classes (subclassResponsibility) **
enumeration
-
allSubNodesDo: aBlock
-
no subnodes
evaluation
-
store: aValue
-
** This method must be redefined in concrete classes (subclassResponsibility) **
printing & storing
-
printOn: aStream indent: i
-
(comment from inherited method)
append a user printed representation of the receiver to aStream.
The format is suitable for a human - not meant to be read back.
** This method must be redefined in concrete classes (subclassResponsibility) **
queries
-
precedence
-
testing
-
isArgument
-
-
isInstanceVariable
-
-
isInstanceVariableNamed: name
-
-
isLocal
-
-
isPoolVariable
-
return false here; to be redefined in subclass(es)
-
isPrimary
-
return true, if this is a node for a primary (i.e. non-send)
-
isUndeclared
-
|