eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'JavaScriptParser::SwitchStatementNode':

Home

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

Class: SwitchStatementNode (private in JavaScriptParser

This class is only visible from within JavaScriptParser.

Inheritance:

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

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

Instance protocol:

accessing
o  statementBlocks

o  switchExpression

o  switchExpression: switchExpressionArg statementBlocks: switchStatementBlocksArg
set instance variables (automatically generated)

compiling
o  codeForSideEffectOn: aStream inBlock: b for: aCompiler
for now, generate a naive if-then-else cascade comparing each value in sequence.

enumeration
o  allSubNodesDo: aBlock
evaluate aBlock for each subnode

o  caseValuesAndStatementsDo: aTwoArgBlock

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

testing
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, 26 Apr 2024 07:46:18 GMT