comparison ast/Exp.d @ 179:2a1a635bd531

Changes the way messages can be displayed. Also added a toString to DType's for type printing.
author Anders Johnsen <skabet@gmail.com>
date Fri, 25 Jul 2008 01:21:07 +0200
parents dc9bf56b7ace
children 59cd211a1bd3
comparison
equal deleted inserted replaced
178:5f7e2f2344a5 179:2a1a635bd531
635 void setType(DType myType) 635 void setType(DType myType)
636 { 636 {
637 this.myType = myType; 637 this.myType = myType;
638 } 638 }
639 639
640 override SourceRange sourceRange()
641 {
642 return SourceRange(loc, loc + name.length);
643 }
644
640 char[] name; 645 char[] name;
641 private DType myType; 646 private DType myType;
642 } 647 }
643 648
644 class IdentifierTypeExp : Identifier 649 class IdentifierTypeExp : Identifier