Mercurial > projects > ddmd
comparison dmd/TypeSArray.d @ 162:438eaa11eed4
updated build script to use dmd2.039
some missing methods implemented
author | korDen |
---|---|
date | Tue, 21 Sep 2010 14:59:56 +0400 |
parents | 14feb7ae01a6 |
children | e3afd1303184 |
comparison
equal
deleted
inserted
replaced
161:584dc990e12f | 162:438eaa11eed4 |
---|---|
3 import dmd.common; | 3 import dmd.common; |
4 import dmd.TypeArray; | 4 import dmd.TypeArray; |
5 import dmd.TypeInfoStaticArrayDeclaration; | 5 import dmd.TypeInfoStaticArrayDeclaration; |
6 import dmd.TypeAArray; | 6 import dmd.TypeAArray; |
7 import dmd.MOD; | 7 import dmd.MOD; |
8 import dmd.ArrayExp; | |
8 import dmd.Parameter; | 9 import dmd.Parameter; |
9 import dmd.TypeIdentifier; | 10 import dmd.TypeIdentifier; |
10 import dmd.TemplateParameter; | 11 import dmd.TemplateParameter; |
11 import dmd.TemplateValueParameter; | 12 import dmd.TemplateValueParameter; |
12 import dmd.TypeStruct; | 13 import dmd.TypeStruct; |
595 return new TypeInfoStaticArrayDeclaration(this); | 596 return new TypeInfoStaticArrayDeclaration(this); |
596 } | 597 } |
597 | 598 |
598 override Expression toExpression() | 599 override Expression toExpression() |
599 { | 600 { |
600 assert(false); | 601 Expression e = next.toExpression(); |
602 if (e) | |
603 { | |
604 Expressions arguments = new Expressions(); | |
605 arguments.push(dim); | |
606 e = new ArrayExp(dim.loc, e, arguments); | |
607 } | |
608 return e; | |
601 } | 609 } |
602 | 610 |
603 override bool hasPointers() | 611 override bool hasPointers() |
604 { | 612 { |
605 return next.hasPointers(); | 613 return next.hasPointers(); |