JavaScriptVariableNode.st
author Claus Gittinger <cg@exept.de>
Fri, 21 Feb 2020 20:48:14 +0100
changeset 1231 b7d945ef967a
parent 1204 46185a561338
permissions -rw-r--r--
#REFACTORING by exept class: JavaScriptParser changed: #forStatement class: JavaScriptParser class added: #forOfAllowed comment/format in: #forInAllowed
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
155
8941ab2fe811 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 65
diff changeset
     1
"
8941ab2fe811 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 65
diff changeset
     2
 COPYRIGHT (c) 2005 by eXept Software AG
8941ab2fe811 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 65
diff changeset
     3
              All Rights Reserved
8941ab2fe811 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 65
diff changeset
     4
8941ab2fe811 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 65
diff changeset
     5
 This software is furnished under a license and may be used
8941ab2fe811 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 65
diff changeset
     6
 only in accordance with the terms of that license and with the
8941ab2fe811 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 65
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
8941ab2fe811 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 65
diff changeset
     8
 be provided or otherwise made available to, or used by, any
8941ab2fe811 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 65
diff changeset
     9
 other person.  No title to or ownership of the software is
8941ab2fe811 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 65
diff changeset
    10
 hereby transferred.
8941ab2fe811 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 65
diff changeset
    11
"
52
cc7790da0d29 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    12
"{ Package: 'stx:libjavascript' }"
cc7790da0d29 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    13
1108
499fe2bc6b5f #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 654
diff changeset
    14
"{ NameSpace: Smalltalk }"
499fe2bc6b5f #FEATURE by exept
Claus Gittinger <cg@exept.de>
parents: 654
diff changeset
    15
52
cc7790da0d29 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    16
VariableNode subclass:#JavaScriptVariableNode
65
d69784e5e9b3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 61
diff changeset
    17
	instanceVariableNames:''
52
cc7790da0d29 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    18
	classVariableNames:''
cc7790da0d29 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    19
	poolDictionaries:''
cc7790da0d29 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    20
	category:'Languages-JavaScript-Compiling & Parsing'
cc7790da0d29 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    21
!
cc7790da0d29 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    22
155
8941ab2fe811 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 65
diff changeset
    23
!JavaScriptVariableNode class methodsFor:'documentation'!
8941ab2fe811 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 65
diff changeset
    24
8941ab2fe811 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 65
diff changeset
    25
copyright
8941ab2fe811 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 65
diff changeset
    26
"
8941ab2fe811 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 65
diff changeset
    27
 COPYRIGHT (c) 2005 by eXept Software AG
8941ab2fe811 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 65
diff changeset
    28
              All Rights Reserved
8941ab2fe811 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 65
diff changeset
    29
8941ab2fe811 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 65
diff changeset
    30
 This software is furnished under a license and may be used
8941ab2fe811 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 65
diff changeset
    31
 only in accordance with the terms of that license and with the
8941ab2fe811 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 65
diff changeset
    32
 inclusion of the above copyright notice.   This software may not
8941ab2fe811 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 65
diff changeset
    33
 be provided or otherwise made available to, or used by, any
8941ab2fe811 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 65
diff changeset
    34
 other person.  No title to or ownership of the software is
8941ab2fe811 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 65
diff changeset
    35
 hereby transferred.
8941ab2fe811 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 65
diff changeset
    36
"
8941ab2fe811 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 65
diff changeset
    37
! !
52
cc7790da0d29 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    38
61
a2c7cd9b17b3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 52
diff changeset
    39
!JavaScriptVariableNode methodsFor:'queries'!
a2c7cd9b17b3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 52
diff changeset
    40
a2c7cd9b17b3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 52
diff changeset
    41
isImmutable
236
152271e4910c actuall, can write arguments in JS
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
    42
    "/ self isMethodArg ifTrue:[^ true].
61
a2c7cd9b17b3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 52
diff changeset
    43
    ^ false
236
152271e4910c actuall, can write arguments in JS
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
    44
152271e4910c actuall, can write arguments in JS
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
    45
    "Modified: / 23-02-2007 / 13:26:20 / cg"
52
cc7790da0d29 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    46
! !
cc7790da0d29 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    47
654
dabbe3bfa4b5 Added JavaScriptParseNodeVisitor
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 236
diff changeset
    48
!JavaScriptVariableNode methodsFor:'visiting'!
dabbe3bfa4b5 Added JavaScriptParseNodeVisitor
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 236
diff changeset
    49
dabbe3bfa4b5 Added JavaScriptParseNodeVisitor
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 236
diff changeset
    50
acceptVisitor:visitor 
dabbe3bfa4b5 Added JavaScriptParseNodeVisitor
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 236
diff changeset
    51
    "Double dispatch back to the visitor, passing my type encoded in
dabbe3bfa4b5 Added JavaScriptParseNodeVisitor
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 236
diff changeset
    52
     the selector (visitor pattern)"
dabbe3bfa4b5 Added JavaScriptParseNodeVisitor
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 236
diff changeset
    53
dabbe3bfa4b5 Added JavaScriptParseNodeVisitor
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 236
diff changeset
    54
    "stub code automatically generated - please change if required"
dabbe3bfa4b5 Added JavaScriptParseNodeVisitor
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 236
diff changeset
    55
dabbe3bfa4b5 Added JavaScriptParseNodeVisitor
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 236
diff changeset
    56
    ^ visitor visitJavaScriptVariableNode:self 
dabbe3bfa4b5 Added JavaScriptParseNodeVisitor
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 236
diff changeset
    57
! !
dabbe3bfa4b5 Added JavaScriptParseNodeVisitor
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 236
diff changeset
    58
52
cc7790da0d29 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    59
!JavaScriptVariableNode class methodsFor:'documentation'!
cc7790da0d29 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    60
cc7790da0d29 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    61
version
cc7790da0d29 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    62
    ^ '$Header$'
cc7790da0d29 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    63
! !
654
dabbe3bfa4b5 Added JavaScriptParseNodeVisitor
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 236
diff changeset
    64