eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'JavaScriptParser::DoWhileStatementNode':

Home

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

Class: DoWhileStatementNode (private in JavaScriptParser

This class is only visible from within JavaScriptParser.

Inheritance:

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

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

Instance protocol:

accessing
o  condition
return the value of the instance variable 'condition' (automatically generated)

o  condition: something
set the value of the instance variable 'condition' (automatically generated)

o  condition: c loopStatements: l

o  loopStatements
return the value of the instance variable 'loopStatements' (automatically generated)

o  loopStatements: something
set the value of the instance variable 'loopStatements' (automatically generated)

compiling
o  codeForSideEffectOn: aStream inBlock: b for: aCompiler
always false: no loop at all

enumeration
o  childrenDo: aBlock

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

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

evaluation
o  evaluateExpressionIn: anEnvironment

printing
o  printOn: aStream indent: i
JavaScriptParser
parseFunction:'
test() {
var i = 0;
do {
Transcript.showCR(''hello'');
} while (i++ < 5);
}
'.

testing
o  isDoWhileStatement

o  isExpressionStatement

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