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::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

Description:


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

copyright

COPYRIGHT (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.

Class protocol:

queries
o  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.


Instance protocol:

accessing
o  charIndex

o  charIndex: something

o  line

o  line: something

o  type: t value: val

o  value
for compatibility with RB-AST

o  value: val

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

** This method must be redefined in concrete classes (subclassResponsibility) **

enumeration
o  allSubNodesDo: aBlock
no subnodes

evaluation
o  store: aValue

** This method must be redefined in concrete classes (subclassResponsibility) **

printing & storing
o  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
o  precedence

testing
o  isArgument

o  isInstanceVariable

o  isInstanceVariableNamed: name

o  isLocal

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.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Sat, 27 Jul 2024 03:18:03 GMT