Mercurial > projects > dil
comparison trunk/src/dil/ast/Parameters.d @ 668:a1f8d8f2db38
Renamed some identifiers.
author | Aziz K?ksal <aziz.koeksal@gmail.com> |
---|---|
date | Thu, 17 Jan 2008 19:27:46 +0100 |
parents | 2a71e2f50e13 |
children | 65ad2f96df1f |
comparison
equal
deleted
inserted
replaced
667:1ac758cd952a | 668:a1f8d8f2db38 |
---|---|
12 | 12 |
13 class Parameter : Node | 13 class Parameter : Node |
14 { | 14 { |
15 StorageClass stc; | 15 StorageClass stc; |
16 TypeNode type; | 16 TypeNode type; |
17 Identifier* ident; | 17 Identifier* name; |
18 Expression defValue; | 18 Expression defValue; |
19 | 19 |
20 this(StorageClass stc, TypeNode type, Identifier* ident, Expression defValue) | 20 this(StorageClass stc, TypeNode type, Identifier* name, Expression defValue) |
21 { | 21 { |
22 super(NodeCategory.Other); | 22 super(NodeCategory.Other); |
23 mixin(set_kind); | 23 mixin(set_kind); |
24 // type can be null when param in foreach statement | 24 // type can be null when param in foreach statement |
25 addOptChild(type); | 25 addOptChild(type); |
26 addOptChild(defValue); | 26 addOptChild(defValue); |
27 | 27 |
28 this.stc = stc; | 28 this.stc = stc; |
29 this.type = type; | 29 this.type = type; |
30 this.ident = ident; | 30 this.name = name; |
31 this.defValue = defValue; | 31 this.defValue = defValue; |
32 } | 32 } |
33 | 33 |
34 /// func(...) or func(int[] values ...) | 34 /// func(...) or func(int[] values ...) |
35 bool isVariadic() | 35 bool isVariadic() |
39 | 39 |
40 /// func(...) | 40 /// func(...) |
41 bool isOnlyVariadic() | 41 bool isOnlyVariadic() |
42 { | 42 { |
43 return stc == StorageClass.Variadic && | 43 return stc == StorageClass.Variadic && |
44 type is null && ident is null; | 44 type is null && name is null; |
45 } | 45 } |
46 } | 46 } |
47 | 47 |
48 class Parameters : Node | 48 class Parameters : Node |
49 { | 49 { |