eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'JavaScriptInnerFunctionNode':

Home

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

Class: JavaScriptInnerFunctionNode


Inheritance:

   Object
   |
   +--ParseNode
      |
      +--JavaScriptFunctionNode
         |
         +--JavaScriptInnerFunctionNode

Package:
stx:libjavascript
Category:
Languages-JavaScript-Compiling & Parsing
Version:
rev: 1.11 date: 2018/04/24 16:33:47
user: cg
file: JavaScriptInnerFunctionNode.st directory: libjavascript
module: stx stc-classLibrary: libjavascript

Instance protocol:

accessing
o  blockArgAccessed: aBoolean

o  home: anEnvironment

o  indexOfFirstTemp

o  indexOfFirstTemp: index

code generation
o  codeOn: aStream inBlock: b for: aCompiler
this generates a block for the inner function;
Difference from block:
return is a local return;
if return is missing, retval is nil

o  rememberOuterBlockVarAccess: aVariableNode
accessedOuterBlockVars isNil ifTrue:[

evaluation
o  _theReceiver

o  evaluateIn: anEnvironment

o  exitWith: something
return via return-statement
usage example(s):
home exitWith:something

queries
o  home

testing
o  isInlineBlock

o  isInnerFunction

o  isJavaScriptBlock

visiting
o  acceptVisitor: visitor
Double dispatch back to the visitor, passing my type encoded in
the selector (visitor pattern)



ST/X 7.1.0.0; WebServer 1.663 at exept.de:8081; Sat, 21 Jul 2018 19:34:30 GMT