0
|
1 module dmd.TupleDeclaration;
|
|
2
|
|
3 import dmd.Declaration;
|
|
4 import dmd.ArrayTypes;
|
|
5 import dmd.TypeTuple;
|
|
6 import dmd.Loc;
|
|
7 import dmd.Identifier;
|
|
8 import dmd.Dsymbol;
|
|
9 import dmd.Type;
|
|
10
|
|
11 class TupleDeclaration : Declaration
|
|
12 {
|
|
13 Objects objects;
|
|
14 int isexp; // 1: expression tuple
|
|
15
|
|
16 TypeTuple tupletype; // !=NULL if this is a type tuple
|
|
17
|
|
18 this(Loc loc, Identifier ident, Objects objects)
|
|
19 {
|
|
20 super(ident);
|
13
|
21 this.type = null;
|
|
22 this.objects = objects;
|
|
23 this.isexp = 0;
|
|
24 this.tupletype = null;
|
0
|
25 }
|
|
26
|
|
27 Dsymbol syntaxCopy(Dsymbol)
|
|
28 {
|
|
29 assert(false);
|
|
30 }
|
|
31
|
|
32 string kind()
|
|
33 {
|
|
34 assert(false);
|
|
35 }
|
|
36
|
|
37 Type getType()
|
|
38 {
|
|
39 assert(false);
|
|
40 }
|
|
41
|
|
42 bool needThis()
|
|
43 {
|
|
44 assert(false);
|
|
45 }
|
|
46
|
|
47 TupleDeclaration isTupleDeclaration() { return this; }
|
|
48 }; |