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  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.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Fri, 19 Apr 2024 14:21:45 GMT