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  childrenDo: 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

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.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Sun, 22 Dec 2024 02:50:08 GMT