author | Patrik Svestka <patrik.svestka@gmail.com> |
Wed, 14 Nov 2018 13:01:14 +0100 | |
changeset 642 | 77d5fddb6462 |
parent 435 | 3bc08fb90133 |
permissions | -rw-r--r-- |
435 | 1 |
"{ Package: 'stx:goodies/petitparser/parsers/java' }" |
2 |
||
3 |
"{ NameSpace: Smalltalk }" |
|
4 |
||
5 |
PJStatementNode subclass:#PJLocalVariableDeclarationStatementNode |
|
6 |
instanceVariableNames:'modifiers type declarators' |
|
7 |
classVariableNames:'' |
|
8 |
poolDictionaries:'' |
|
9 |
category:'PetitJava-AST' |
|
10 |
! |
|
11 |
||
642
77d5fddb6462
Issue #239: Fix all Smalltak/X source files to be in unicode (UTF8 without BOM) and prefixed by "{ Encoding: utf8 }" when any unicode character is present
Patrik Svestka <patrik.svestka@gmail.com>
parents:
435
diff
changeset
|
12 |
PJLocalVariableDeclarationStatementNode comment:'Node representing a local variable declaration statement. |
77d5fddb6462
Issue #239: Fix all Smalltak/X source files to be in unicode (UTF8 without BOM) and prefixed by "{ Encoding: utf8 }" when any unicode character is present
Patrik Svestka <patrik.svestka@gmail.com>
parents:
435
diff
changeset
|
13 |
|
77d5fddb6462
Issue #239: Fix all Smalltak/X source files to be in unicode (UTF8 without BOM) and prefixed by "{ Encoding: utf8 }" when any unicode character is present
Patrik Svestka <patrik.svestka@gmail.com>
parents:
435
diff
changeset
|
14 |
Eg: |
77d5fddb6462
Issue #239: Fix all Smalltak/X source files to be in unicode (UTF8 without BOM) and prefixed by "{ Encoding: utf8 }" when any unicode character is present
Patrik Svestka <patrik.svestka@gmail.com>
parents:
435
diff
changeset
|
15 |
|
77d5fddb6462
Issue #239: Fix all Smalltak/X source files to be in unicode (UTF8 without BOM) and prefixed by "{ Encoding: utf8 }" when any unicode character is present
Patrik Svestka <patrik.svestka@gmail.com>
parents:
435
diff
changeset
|
16 |
int a; |
77d5fddb6462
Issue #239: Fix all Smalltak/X source files to be in unicode (UTF8 without BOM) and prefixed by "{ Encoding: utf8 }" when any unicode character is present
Patrik Svestka <patrik.svestka@gmail.com>
parents:
435
diff
changeset
|
17 |
int a = 5; |
77d5fddb6462
Issue #239: Fix all Smalltak/X source files to be in unicode (UTF8 without BOM) and prefixed by "{ Encoding: utf8 }" when any unicode character is present
Patrik Svestka <patrik.svestka@gmail.com>
parents:
435
diff
changeset
|
18 |
int a, b; |
77d5fddb6462
Issue #239: Fix all Smalltak/X source files to be in unicode (UTF8 without BOM) and prefixed by "{ Encoding: utf8 }" when any unicode character is present
Patrik Svestka <patrik.svestka@gmail.com>
parents:
435
diff
changeset
|
19 |
int a = 5, b;' |
435 | 20 |
! |
21 |
||
22 |
!PJLocalVariableDeclarationStatementNode methodsFor:'accessing'! |
|
23 |
||
24 |
acceptVisitor: aVisitor |
|
25 |
||
26 |
^ aVisitor visitLocalVariableDeclarationStatementNode: self |
|
27 |
! |
|
28 |
||
29 |
declarators |
|
30 |
^ declarators |
|
31 |
! |
|
32 |
||
33 |
declarators: anObject |
|
34 |
declarators := anObject |
|
35 |
! |
|
36 |
||
37 |
modifiers |
|
38 |
^ modifiers |
|
39 |
! |
|
40 |
||
41 |
modifiers: anObject |
|
42 |
modifiers := anObject |
|
43 |
! |
|
44 |
||
45 |
type |
|
46 |
^ type |
|
47 |
! |
|
48 |
||
49 |
type: anObject |
|
50 |
type := anObject |
|
51 |
! ! |
|
52 |