|
Class: SwitchStatementNode (private in JavaScriptParser
This class is only visible from within
JavaScriptParser.
Object
|
+--ParseNode
|
+--StatementNode
|
+--JavaScriptParser::JavaScriptStatementNode
|
+--JavaScriptParser::SwitchStatementNode
- Package:
- stx:libjavascript
- Category:
- Languages-JavaScript-Compiling & Parsing
- Owner:
- JavaScriptParser
accessing
-
statementBlocks
-
-
switchExpression
-
-
switchExpression: switchExpressionArg statementBlocks: switchStatementBlocksArg
-
set instance variables (automatically generated)
compiling
-
codeForSideEffectOn: aStream inBlock: b for: aCompiler
-
for now, generate a naive if-then-else cascade comparing each value in sequence.
enumeration
-
allSubNodesDo: aBlock
-
evaluate aBlock for each subnode
-
caseValuesAndStatementsDo: aTwoArgBlock
-
-
childrenDo: aBlock
-
evaluate aBlock for each subnode
-
messageSelectorsDo: aBlock
-
evaluate aBlock for each message-selector sent by this node and subnodes
-
messagesDo: aBlock
-
evaluate aBlock for each message-node sent by this node and subnodes
-
variableNodesDo: aBlock
-
evaluate aBlock for each variable-node in this node and subnodes
testing
-
isExpressionStatement
-
visiting
-
acceptVisitor: visitor
-
Double dispatch back to the visitor, passing my type encoded in
the selector (visitor pattern)
|