eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'JavaScriptParser::ArrayAccessNode':

Home

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

Class: ArrayAccessNode (private in JavaScriptParser

This class is only visible from within JavaScriptParser.

Inheritance:

   Object
   |
   +--ParseNode
      |
      +--PrimaryNode
         |
         +--JavaScriptParser::ArrayAccessNode
            |
            +--JavaScriptParser::ArrayStoreNode

Package:
stx:libjavascript
Category:
Languages-JavaScript-Compiling & Parsing
Owner:
JavaScriptParser

Instance protocol:

accessing
o  array: a index: i

o  array: a indices: i

o  arrayExpression

o  indexExpressions

o  lineNumber

o  lineNumber: something

compiling
o  codeOn: aStream inBlock: codeBlock for: aCompiler

o  codeOn: aStream inBlock: codeBlock valueNeeded: valueNeeded for: aCompiler
self halt.

o  codeStore: valueExpr on: aStream inBlock: codeBlock valueNeeded: valueNeeded for: aCompiler
self halt.

o  codeStoreOn: aStream inBlock: codeBlock valueNeeded: valueNeeded for: aCompiler
emit code to store the top of stack

enumeration
o  allSubNodesDo: aBlock
evaluate aBlock for each subnode

o  childrenDo: aBlock
evaluate aBlock for each subnode

o  messageSelectorsDo: aBlock
evaluate aBlock for each message-selector sent by this node and subnodes

o  messagesDo: aBlock
evaluate aBlock for each message-node sent by this node and subnodes

o  variableNodesDo: aBlock
evaluate aBlock for each variable-node in this node and subnodes

evaluating
o  evaluateIn: anEnvironment
^ arr js_at:idx

o  store: newValue
^ arr js_at:idx put:newValue

printing
o  printOn: aStream indent: i

queries
o  isImmutable

testing
o  isJavaScriptArrayAccess
(comment from inherited method)
return true, if this is a node for a javascript array reference i.e. expr[]

visiting
o  acceptVisitor: visitor
Double dispatch back to the visitor, passing my type encoded in
the selector (visitor pattern)



ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Mon, 18 Nov 2024 08:42:49 GMT