JavaScriptVariableNode.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Tue, 24 Sep 2013 23:18:24 +0200
branchinitialV
changeset 1180 01c6be61f29c
parent 654 dabbe3bfa4b5
child 1108 499fe2bc6b5f
permissions -rw-r--r--
checkin from stx browser
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
cc7790da0d29 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    14
VariableNode subclass:#JavaScriptVariableNode
65
d69784e5e9b3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 61
diff changeset
    15
	instanceVariableNames:''
52
cc7790da0d29 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    16
	classVariableNames:''
cc7790da0d29 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    17
	poolDictionaries:''
cc7790da0d29 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    18
	category:'Languages-JavaScript-Compiling & Parsing'
cc7790da0d29 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    19
!
cc7790da0d29 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    20
155
8941ab2fe811 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 65
diff changeset
    21
!JavaScriptVariableNode class methodsFor:'documentation'!
8941ab2fe811 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 65
diff changeset
    22
8941ab2fe811 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 65
diff changeset
    23
copyright
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 (c) 2005 by eXept Software AG
8941ab2fe811 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 65
diff changeset
    26
              All Rights Reserved
8941ab2fe811 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 65
diff changeset
    27
8941ab2fe811 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 65
diff changeset
    28
 This software is furnished under a license and may be used
8941ab2fe811 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 65
diff changeset
    29
 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
    30
 inclusion of the above copyright notice.   This software may not
8941ab2fe811 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 65
diff changeset
    31
 be provided or otherwise made available to, or used by, any
8941ab2fe811 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 65
diff changeset
    32
 other person.  No title to or ownership of the software is
8941ab2fe811 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 65
diff changeset
    33
 hereby transferred.
8941ab2fe811 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 65
diff changeset
    34
"
8941ab2fe811 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 65
diff changeset
    35
! !
52
cc7790da0d29 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    36
61
a2c7cd9b17b3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 52
diff changeset
    37
!JavaScriptVariableNode methodsFor:'queries'!
a2c7cd9b17b3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 52
diff changeset
    38
a2c7cd9b17b3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 52
diff changeset
    39
isImmutable
236
152271e4910c actuall, can write arguments in JS
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
    40
    "/ self isMethodArg ifTrue:[^ true].
61
a2c7cd9b17b3 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 52
diff changeset
    41
    ^ false
236
152271e4910c actuall, can write arguments in JS
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
    42
152271e4910c actuall, can write arguments in JS
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
    43
    "Modified: / 23-02-2007 / 13:26:20 / cg"
52
cc7790da0d29 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    44
! !
cc7790da0d29 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    45
654
dabbe3bfa4b5 Added JavaScriptParseNodeVisitor
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 236
diff changeset
    46
!JavaScriptVariableNode methodsFor:'visiting'!
dabbe3bfa4b5 Added JavaScriptParseNodeVisitor
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 236
diff changeset
    47
dabbe3bfa4b5 Added JavaScriptParseNodeVisitor
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 236
diff changeset
    48
acceptVisitor:visitor 
dabbe3bfa4b5 Added JavaScriptParseNodeVisitor
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 236
diff changeset
    49
    "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
    50
     the selector (visitor pattern)"
dabbe3bfa4b5 Added JavaScriptParseNodeVisitor
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 236
diff changeset
    51
dabbe3bfa4b5 Added JavaScriptParseNodeVisitor
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 236
diff changeset
    52
    "stub code automatically generated - please change if required"
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
    ^ visitor visitJavaScriptVariableNode:self 
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
52
cc7790da0d29 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    57
!JavaScriptVariableNode class methodsFor:'documentation'!
cc7790da0d29 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    58
cc7790da0d29 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    59
version
cc7790da0d29 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    60
    ^ '$Header$'
cc7790da0d29 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    61
! !
654
dabbe3bfa4b5 Added JavaScriptParseNodeVisitor
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 236
diff changeset
    62