Mercurial > projects > dil
comparison trunk/src/dil/ast/Types.d @ 769:5e3ef1b2011c
Added and improved documentation.
author | Aziz K?ksal <aziz.koeksal@gmail.com> |
---|---|
date | Sun, 17 Feb 2008 02:21:55 +0100 |
parents | 65ad2f96df1f |
children | 5fe89bb8cbdd |
comparison
equal
deleted
inserted
replaced
768:d84349a60f5c | 769:5e3ef1b2011c |
---|---|
65 super(next); | 65 super(next); |
66 mixin(set_kind); | 66 mixin(set_kind); |
67 } | 67 } |
68 } | 68 } |
69 | 69 |
70 /// "typeof" "(" Expression ")" | 70 /// "typeof" "(" Expression ")" or$(BR) |
71 /// "typeof" "(" "return" ")" (D2.0) | |
71 class TypeofType : TypeNode | 72 class TypeofType : TypeNode |
72 { | 73 { |
73 Expression e; | 74 Expression e; |
74 this(Expression e) | 75 this(Expression e) |
75 { | 76 { |
76 this(); | 77 this(); |
77 addChild(e); | 78 addChild(e); |
78 this.e = e; | 79 this.e = e; |
79 } | 80 } |
80 | 81 |
81 /// D2.0: "typeof" "(" "return" ")" | 82 // For D2.0: "typeof" "(" "return" ")" |
82 this() | 83 this() |
83 { | 84 { |
84 mixin(set_kind); | 85 mixin(set_kind); |
85 } | 86 } |
86 | 87 |
112 super(next); | 113 super(next); |
113 mixin(set_kind); | 114 mixin(set_kind); |
114 } | 115 } |
115 } | 116 } |
116 | 117 |
117 /// Dynamic array: T[] or | 118 /// Dynamic array: T[] or$(BR) |
118 /// Static array: T[E] or | 119 /// Static array: T[E] or$(BR) |
119 /// Slice array (for tuples): T[E..E] or | 120 /// Slice array (for tuples): T[E..E] or$(BR) |
120 /// Associative array: T[T] | 121 /// Associative array: T[T] |
121 class ArrayType : TypeNode | 122 class ArrayType : TypeNode |
122 { | 123 { |
123 Expression e1, e2; | 124 Expression e1, e2; |
124 TypeNode assocType; | 125 TypeNode assocType; |