Mercurial > projects > dang
comparison ast/Exp.d @ 183:8ea749b7da91
Fixed a few errors so that two more tests passes. Also, now you only need a type in a function param.
author | Anders Johnsen <skabet@gmail.com> |
---|---|
date | Fri, 25 Jul 2008 10:59:16 +0200 |
parents | 59cd211a1bd3 |
children | 7b274cfdc1dc |
comparison
equal
deleted
inserted
replaced
182:4e703658eca0 | 183:8ea749b7da91 |
---|---|
294 return this; | 294 return this; |
295 } | 295 } |
296 | 296 |
297 override DType type() | 297 override DType type() |
298 { | 298 { |
299 if (_type) | |
300 return _type; | |
299 return exp.type().asPointer().pointerOf; | 301 return exp.type().asPointer().pointerOf; |
300 } | 302 } |
301 | 303 |
302 override SourceRange sourceRange() | 304 override SourceRange sourceRange() |
303 { | 305 { |
304 return SourceRange(loc) + exp.sourceRange; | 306 return SourceRange(loc) + exp.sourceRange; |
305 } | 307 } |
306 | 308 |
309 DType _type; | |
307 public Exp exp; | 310 public Exp exp; |
308 } | 311 } |
309 | 312 |
310 class AddressOfExp : Exp | 313 class AddressOfExp : Exp |
311 { | 314 { |