eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'JavaScriptParser::ForStatementNode':

Home

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

Class: ForStatementNode (private in JavaScriptParser

This class is only visible from within JavaScriptParser.

Inheritance:

   Object
   |
   +--ParseNode
      |
      +--StatementNode
         |
         +--JavaScriptParser::JavaScriptStatementNode
            |
            +--JavaScriptParser::ForStatementNode

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

Instance protocol:

accessing
o  arrayExpression

o  condition

o  incrExpression

o  initExpression

o  initExpression: i condition: c incrExpression: incr loopStatements: l

o  loopStatements

o  varExpression

o  varExpression: v arrayExpression: a loopStatements: l

compiling
o  codeForSideEffectOn: aStream inBlock: b for: aCompiler
make a block...

enumeration
o  allSubNodesDo: 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

evaluation
o  evaluateExpressionIn: anEnvironment
finished

printing
o  printOn: aStream indent: i

testing
o  hasBreakStatement
is there a break statement in the loop?

o  isExpressionStatement

o  isForStatement

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



ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Fri, 19 Apr 2024 03:26:33 GMT