eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'PrimaryNode':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: PrimaryNode


Inheritance:

   Object
   |
   +--ParseNode
      |
      +--PrimaryNode
         |
         +--ConstantNode
         |
         +--JavaScriptParser::ArrayAccessNode
         |
         +--JavaScriptParser::IncDecNode
         |
         +--JavaScriptParser::NewNode
         |
         +--JavaScriptParser::TypeOfNode
         |
         +--SelfNode
         |
         +--VariableNode

Package:
stx:libcomp
Category:
System-Compiler-Support
Version:
rev: 1.35 date: 2019/08/11 12:20:12
user: cg
file: PrimaryNode.st directory: libcomp
module: stx stc-classLibrary: libcomp
Author:
Claus Gittinger

Description:


node for parse-trees, representing primaries (variables & literals)
This is a helper class for the compiler.


Instance protocol:

accessing
o  charIndex

o  charIndex: something

o  line

o  line: something

o  type: t value: val

o  value

o  value: val

code generation
o  codeForSideEffectOn: aStream inBlock: b for: aCompiler
no code at all

o  codeStoreOn: aStream inBlock: codeBlock valueNeeded: valueNeeded for: aCompiler

enumeration
o  allSubNodesDo: aBlock
no subnodes

evaluation
o  store: aValue

printing & storing
o  printOn: aStream indent: i

queries
o  precedence

testing
o  isArgument

o  isBlockArg
return false here; to be redefined in subclass(es)

o  isBlockVariable
return false here; to be redefined in subclass(es)

o  isClassVariable

o  isInstanceVariable

o  isInstanceVariableNamed: name

o  isLocal

o  isMethodArg

o  isPoolVariable
return false here; to be redefined in subclass(es)

o  isPrimary
return true, if this is a node for a primary (i.e. non-send)

o  isUndeclared



ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Tue, 23 Apr 2024 06:15:59 GMT