JavaScriptClassNode.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Tue, 24 Sep 2013 23:18:24 +0200
branchinitialV
changeset 1180 01c6be61f29c
parent 656 21a4b2035a9e
child 752 49a4488b4da3
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: 104
diff changeset
     1
"
8941ab2fe811 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 104
diff changeset
     2
 COPYRIGHT (c) 2005 by eXept Software AG
8941ab2fe811 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 104
diff changeset
     3
              All Rights Reserved
8941ab2fe811 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 104
diff changeset
     4
8941ab2fe811 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 104
diff changeset
     5
 This software is furnished under a license and may be used
8941ab2fe811 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 104
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: 104
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
8941ab2fe811 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 104
diff changeset
     8
 be provided or otherwise made available to, or used by, any
8941ab2fe811 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 104
diff changeset
     9
 other person.  No title to or ownership of the software is
8941ab2fe811 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 104
diff changeset
    10
 hereby transferred.
8941ab2fe811 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 104
diff changeset
    11
"
39
bfb1e7545090 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    12
"{ Package: 'stx:libjavascript' }"
bfb1e7545090 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    13
bfb1e7545090 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    14
ParseNode subclass:#JavaScriptClassNode
502
e2b30cb252a1 +staticVariables
Claus Gittinger <cg@exept.de>
parents: 388
diff changeset
    15
	instanceVariableNames:'className superClassName privateVariables environment
e2b30cb252a1 +staticVariables
Claus Gittinger <cg@exept.de>
parents: 388
diff changeset
    16
		staticVariables'
39
bfb1e7545090 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    17
	classVariableNames:''
bfb1e7545090 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    18
	poolDictionaries:''
47
684f35c49db2 category change
Claus Gittinger <cg@exept.de>
parents: 40
diff changeset
    19
	category:'Languages-JavaScript-Compiling & Parsing'
39
bfb1e7545090 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    20
!
bfb1e7545090 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    21
155
8941ab2fe811 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 104
diff changeset
    22
!JavaScriptClassNode class methodsFor:'documentation'!
8941ab2fe811 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 104
diff changeset
    23
8941ab2fe811 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 104
diff changeset
    24
copyright
8941ab2fe811 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 104
diff changeset
    25
"
8941ab2fe811 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 104
diff changeset
    26
 COPYRIGHT (c) 2005 by eXept Software AG
8941ab2fe811 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 104
diff changeset
    27
              All Rights Reserved
8941ab2fe811 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 104
diff changeset
    28
8941ab2fe811 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 104
diff changeset
    29
 This software is furnished under a license and may be used
8941ab2fe811 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 104
diff changeset
    30
 only in accordance with the terms of that license and with the
8941ab2fe811 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 104
diff changeset
    31
 inclusion of the above copyright notice.   This software may not
8941ab2fe811 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 104
diff changeset
    32
 be provided or otherwise made available to, or used by, any
8941ab2fe811 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 104
diff changeset
    33
 other person.  No title to or ownership of the software is
8941ab2fe811 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 104
diff changeset
    34
 hereby transferred.
8941ab2fe811 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 104
diff changeset
    35
"
8941ab2fe811 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 104
diff changeset
    36
! !
39
bfb1e7545090 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    37
643
2cde750704e9 class: JavaScriptClassNode
Claus Gittinger <cg@exept.de>
parents: 533
diff changeset
    38
!JavaScriptClassNode methodsFor:'* As yet uncategorized *'!
2cde750704e9 class: JavaScriptClassNode
Claus Gittinger <cg@exept.de>
parents: 533
diff changeset
    39
2cde750704e9 class: JavaScriptClassNode
Claus Gittinger <cg@exept.de>
parents: 533
diff changeset
    40
isInnerFunction
2cde750704e9 class: JavaScriptClassNode
Claus Gittinger <cg@exept.de>
parents: 533
diff changeset
    41
    ^ false
2cde750704e9 class: JavaScriptClassNode
Claus Gittinger <cg@exept.de>
parents: 533
diff changeset
    42
! !
2cde750704e9 class: JavaScriptClassNode
Claus Gittinger <cg@exept.de>
parents: 533
diff changeset
    43
39
bfb1e7545090 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    44
!JavaScriptClassNode methodsFor:'accessing'!
bfb1e7545090 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    45
388
a87442ba8c93 cate for category
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
    46
_argVariables
a87442ba8c93 cate for category
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
    47
    ^ nil
a87442ba8c93 cate for category
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
    48
!
a87442ba8c93 cate for category
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
    49
83
d660cc428b0e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 47
diff changeset
    50
_localVariables
d660cc428b0e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 47
diff changeset
    51
    ^ self _variables
d660cc428b0e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 47
diff changeset
    52
!
d660cc428b0e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 47
diff changeset
    53
d660cc428b0e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 47
diff changeset
    54
_localVariables:aCollection
d660cc428b0e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 47
diff changeset
    55
    self _variables:aCollection
d660cc428b0e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 47
diff changeset
    56
!
d660cc428b0e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 47
diff changeset
    57
39
bfb1e7545090 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    58
_outerEnvironment
bfb1e7545090 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    59
    ^ environment
bfb1e7545090 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    60
bfb1e7545090 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    61
    "Created: / 17.5.1998 / 00:41:00 / cg"
bfb1e7545090 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    62
!
bfb1e7545090 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    63
bfb1e7545090 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    64
_outerEnvironment:anEnvironment
bfb1e7545090 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    65
    environment := anEnvironment
bfb1e7545090 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    66
bfb1e7545090 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    67
    "Created: / 17.5.1998 / 00:41:11 / cg"
bfb1e7545090 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    68
!
bfb1e7545090 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    69
bfb1e7545090 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    70
_variables
bfb1e7545090 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    71
    ^ privateVariables
bfb1e7545090 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    72
!
bfb1e7545090 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    73
bfb1e7545090 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    74
_variables:aVariablesEnvironment
bfb1e7545090 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    75
    privateVariables := aVariablesEnvironment
bfb1e7545090 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    76
!
bfb1e7545090 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    77
bfb1e7545090 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    78
className
bfb1e7545090 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    79
    "return the value of the instance variable 'className' (automatically generated)"
bfb1e7545090 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    80
47
684f35c49db2 category change
Claus Gittinger <cg@exept.de>
parents: 40
diff changeset
    81
    ^ className
684f35c49db2 category change
Claus Gittinger <cg@exept.de>
parents: 40
diff changeset
    82
!
39
bfb1e7545090 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    83
bfb1e7545090 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    84
className:something
bfb1e7545090 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    85
    "set the value of the instance variable 'className' (automatically generated)"
bfb1e7545090 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    86
47
684f35c49db2 category change
Claus Gittinger <cg@exept.de>
parents: 40
diff changeset
    87
    className := something.
684f35c49db2 category change
Claus Gittinger <cg@exept.de>
parents: 40
diff changeset
    88
!
39
bfb1e7545090 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    89
502
e2b30cb252a1 +staticVariables
Claus Gittinger <cg@exept.de>
parents: 388
diff changeset
    90
staticVariables
e2b30cb252a1 +staticVariables
Claus Gittinger <cg@exept.de>
parents: 388
diff changeset
    91
    ^ staticVariables
e2b30cb252a1 +staticVariables
Claus Gittinger <cg@exept.de>
parents: 388
diff changeset
    92
!
e2b30cb252a1 +staticVariables
Claus Gittinger <cg@exept.de>
parents: 388
diff changeset
    93
e2b30cb252a1 +staticVariables
Claus Gittinger <cg@exept.de>
parents: 388
diff changeset
    94
staticVariables:something
e2b30cb252a1 +staticVariables
Claus Gittinger <cg@exept.de>
parents: 388
diff changeset
    95
    staticVariables := something.
e2b30cb252a1 +staticVariables
Claus Gittinger <cg@exept.de>
parents: 388
diff changeset
    96
!
e2b30cb252a1 +staticVariables
Claus Gittinger <cg@exept.de>
parents: 388
diff changeset
    97
39
bfb1e7545090 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    98
superClassName
bfb1e7545090 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    99
    "return the value of the instance variable 'superClassName' (automatically generated)"
bfb1e7545090 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   100
47
684f35c49db2 category change
Claus Gittinger <cg@exept.de>
parents: 40
diff changeset
   101
    ^ superClassName
684f35c49db2 category change
Claus Gittinger <cg@exept.de>
parents: 40
diff changeset
   102
!
39
bfb1e7545090 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   103
bfb1e7545090 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   104
superClassName:something
bfb1e7545090 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   105
    "set the value of the instance variable 'superClassName' (automatically generated)"
bfb1e7545090 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   106
47
684f35c49db2 category change
Claus Gittinger <cg@exept.de>
parents: 40
diff changeset
   107
    superClassName := something.
684f35c49db2 category change
Claus Gittinger <cg@exept.de>
parents: 40
diff changeset
   108
! !
39
bfb1e7545090 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   109
bfb1e7545090 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   110
!JavaScriptClassNode methodsFor:'evaluation'!
bfb1e7545090 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   111
bfb1e7545090 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   112
evaluate
502
e2b30cb252a1 +staticVariables
Claus Gittinger <cg@exept.de>
parents: 388
diff changeset
   113
    |superClass oldClass newClass instVarNames classVarNames category environment|
39
bfb1e7545090 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   114
bfb1e7545090 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   115
    superClass := Smalltalk at:superClassName asSymbol.
bfb1e7545090 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   116
    instVarNames := ''.
bfb1e7545090 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   117
    privateVariables size > 0 ifTrue:[
83
d660cc428b0e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 47
diff changeset
   118
        privateVariables keysAndValuesDo:[:varName :var |
d660cc428b0e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 47
diff changeset
   119
            instVarNames size ~= 0 ifTrue:[
d660cc428b0e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 47
diff changeset
   120
                instVarNames := instVarNames , ' '
d660cc428b0e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 47
diff changeset
   121
            ].
d660cc428b0e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 47
diff changeset
   122
            instVarNames := instVarNames , varName
d660cc428b0e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 47
diff changeset
   123
        ]
39
bfb1e7545090 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   124
    ].
502
e2b30cb252a1 +staticVariables
Claus Gittinger <cg@exept.de>
parents: 388
diff changeset
   125
    classVarNames := ''.
e2b30cb252a1 +staticVariables
Claus Gittinger <cg@exept.de>
parents: 388
diff changeset
   126
    staticVariables size > 0 ifTrue:[
e2b30cb252a1 +staticVariables
Claus Gittinger <cg@exept.de>
parents: 388
diff changeset
   127
        staticVariables keysAndValuesDo:[:varName :var |
e2b30cb252a1 +staticVariables
Claus Gittinger <cg@exept.de>
parents: 388
diff changeset
   128
            classVarNames size ~= 0 ifTrue:[
e2b30cb252a1 +staticVariables
Claus Gittinger <cg@exept.de>
parents: 388
diff changeset
   129
                classVarNames := classVarNames , ' '
e2b30cb252a1 +staticVariables
Claus Gittinger <cg@exept.de>
parents: 388
diff changeset
   130
            ].
e2b30cb252a1 +staticVariables
Claus Gittinger <cg@exept.de>
parents: 388
diff changeset
   131
            classVarNames := classVarNames , varName
e2b30cb252a1 +staticVariables
Claus Gittinger <cg@exept.de>
parents: 388
diff changeset
   132
        ]
e2b30cb252a1 +staticVariables
Claus Gittinger <cg@exept.de>
parents: 388
diff changeset
   133
    ].
104
3ed1e2ef71ca *** empty log message ***
ca
parents: 83
diff changeset
   134
    environment := Class nameSpaceQuerySignal query.
3ed1e2ef71ca *** empty log message ***
ca
parents: 83
diff changeset
   135
    oldClass := environment classNamed:className.
3ed1e2ef71ca *** empty log message ***
ca
parents: 83
diff changeset
   136
388
a87442ba8c93 cate for category
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
   137
    category := Class classCategoryQuerySignal query.
a87442ba8c93 cate for category
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
   138
"/    oldClass notNil ifTrue:[
a87442ba8c93 cate for category
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
   139
"/        category := oldClass category.   
a87442ba8c93 cate for category
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
   140
"/    ] ifFalse:[
a87442ba8c93 cate for category
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
   141
"/        category := superClass category
a87442ba8c93 cate for category
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
   142
"/    ].
83
d660cc428b0e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 47
diff changeset
   143
    newClass := JavaScriptMetaclass basicNew
d660cc428b0e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 47
diff changeset
   144
            name:(className asSymbol)  
104
3ed1e2ef71ca *** empty log message ***
ca
parents: 83
diff changeset
   145
            inEnvironment:environment
83
d660cc428b0e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 47
diff changeset
   146
            subclassOf:superClass
d660cc428b0e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 47
diff changeset
   147
            instanceVariableNames:instVarNames
d660cc428b0e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 47
diff changeset
   148
            variable:false
d660cc428b0e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 47
diff changeset
   149
            words:false
d660cc428b0e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 47
diff changeset
   150
            pointers:false
502
e2b30cb252a1 +staticVariables
Claus Gittinger <cg@exept.de>
parents: 388
diff changeset
   151
            classVariableNames:classVarNames
83
d660cc428b0e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 47
diff changeset
   152
            poolDictionaries:''
104
3ed1e2ef71ca *** empty log message ***
ca
parents: 83
diff changeset
   153
            category:category
83
d660cc428b0e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 47
diff changeset
   154
            comment:nil
d660cc428b0e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 47
diff changeset
   155
            changed:true. 
529
a85eb3da47f6 changed: #evaluate
Claus Gittinger <cg@exept.de>
parents: 502
diff changeset
   156
a85eb3da47f6 changed: #evaluate
Claus Gittinger <cg@exept.de>
parents: 502
diff changeset
   157
    "initialize static variables..."
533
ba52876e9056 changed: #evaluate
Claus Gittinger <cg@exept.de>
parents: 529
diff changeset
   158
    staticVariables notNil ifTrue:[
ba52876e9056 changed: #evaluate
Claus Gittinger <cg@exept.de>
parents: 529
diff changeset
   159
        staticVariables keysAndValuesDo:[:varName :var |
ba52876e9056 changed: #evaluate
Claus Gittinger <cg@exept.de>
parents: 529
diff changeset
   160
            var expressionForSetup notNil ifTrue:[
ba52876e9056 changed: #evaluate
Claus Gittinger <cg@exept.de>
parents: 529
diff changeset
   161
                newClass classVarAt: varName put: (var expressionForSetup evaluate).
ba52876e9056 changed: #evaluate
Claus Gittinger <cg@exept.de>
parents: 529
diff changeset
   162
            ]
ba52876e9056 changed: #evaluate
Claus Gittinger <cg@exept.de>
parents: 529
diff changeset
   163
        ].
529
a85eb3da47f6 changed: #evaluate
Claus Gittinger <cg@exept.de>
parents: 502
diff changeset
   164
    ].
39
bfb1e7545090 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   165
    ^ newClass
502
e2b30cb252a1 +staticVariables
Claus Gittinger <cg@exept.de>
parents: 388
diff changeset
   166
533
ba52876e9056 changed: #evaluate
Claus Gittinger <cg@exept.de>
parents: 529
diff changeset
   167
    "Modified: / 17-07-2012 / 12:41:13 / cg"
502
e2b30cb252a1 +staticVariables
Claus Gittinger <cg@exept.de>
parents: 388
diff changeset
   168
! !
e2b30cb252a1 +staticVariables
Claus Gittinger <cg@exept.de>
parents: 388
diff changeset
   169
e2b30cb252a1 +staticVariables
Claus Gittinger <cg@exept.de>
parents: 388
diff changeset
   170
!JavaScriptClassNode methodsFor:'testing'!
e2b30cb252a1 +staticVariables
Claus Gittinger <cg@exept.de>
parents: 388
diff changeset
   171
e2b30cb252a1 +staticVariables
Claus Gittinger <cg@exept.de>
parents: 388
diff changeset
   172
_isFunctionEnvironment
e2b30cb252a1 +staticVariables
Claus Gittinger <cg@exept.de>
parents: 388
diff changeset
   173
    ^ false
e2b30cb252a1 +staticVariables
Claus Gittinger <cg@exept.de>
parents: 388
diff changeset
   174
e2b30cb252a1 +staticVariables
Claus Gittinger <cg@exept.de>
parents: 388
diff changeset
   175
    "Created: / 30-01-2011 / 17:11:10 / cg"
39
bfb1e7545090 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   176
! !
bfb1e7545090 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   177
656
21a4b2035a9e Added JavaScriptParseNodeVisitor
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 643
diff changeset
   178
!JavaScriptClassNode methodsFor:'visiting'!
21a4b2035a9e Added JavaScriptParseNodeVisitor
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 643
diff changeset
   179
21a4b2035a9e Added JavaScriptParseNodeVisitor
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 643
diff changeset
   180
acceptVisitor:visitor 
21a4b2035a9e Added JavaScriptParseNodeVisitor
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 643
diff changeset
   181
    "Double dispatch back to the visitor, passing my type encoded in
21a4b2035a9e Added JavaScriptParseNodeVisitor
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 643
diff changeset
   182
     the selector (visitor pattern)"
21a4b2035a9e Added JavaScriptParseNodeVisitor
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 643
diff changeset
   183
21a4b2035a9e Added JavaScriptParseNodeVisitor
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 643
diff changeset
   184
    "stub code automatically generated - please change if required"
21a4b2035a9e Added JavaScriptParseNodeVisitor
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 643
diff changeset
   185
21a4b2035a9e Added JavaScriptParseNodeVisitor
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 643
diff changeset
   186
    ^ visitor visitJavaScriptClassNode:self 
21a4b2035a9e Added JavaScriptParseNodeVisitor
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 643
diff changeset
   187
! !
21a4b2035a9e Added JavaScriptParseNodeVisitor
Jan Vrany <jan.vrany@fit.cvut.cz>
parents: 643
diff changeset
   188
39
bfb1e7545090 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   189
!JavaScriptClassNode class methodsFor:'documentation'!
bfb1e7545090 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   190
bfb1e7545090 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   191
version
bfb1e7545090 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   192
    ^ '$Header$'
388
a87442ba8c93 cate for category
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
   193
!
a87442ba8c93 cate for category
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
   194
a87442ba8c93 cate for category
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
   195
version_CVS
a87442ba8c93 cate for category
Claus Gittinger <cg@exept.de>
parents: 155
diff changeset
   196
    ^ '$Header$'
39
bfb1e7545090 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   197
! !
643
2cde750704e9 class: JavaScriptClassNode
Claus Gittinger <cg@exept.de>
parents: 533
diff changeset
   198