diff options
Diffstat (limited to 'gcc/d/dmd/semantic3.d')
-rw-r--r-- | gcc/d/dmd/semantic3.d | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/gcc/d/dmd/semantic3.d b/gcc/d/dmd/semantic3.d index 8ea419a..cc75aa5 100644 --- a/gcc/d/dmd/semantic3.d +++ b/gcc/d/dmd/semantic3.d @@ -127,7 +127,7 @@ private extern(C++) final class Semantic3Visitor : Visitor if (needGagging) oldGaggedErrors = global.startGagging(); - for (size_t i = 0; i < tempinst.members.dim; i++) + for (size_t i = 0; i < tempinst.members.length; i++) { Dsymbol s = (*tempinst.members)[i]; s.semantic3(sc); @@ -170,7 +170,7 @@ private extern(C++) final class Semantic3Visitor : Visitor uint olderrors = global.errors; - for (size_t i = 0; i < tmix.members.dim; i++) + for (size_t i = 0; i < tmix.members.length; i++) { Dsymbol s = (*tmix.members)[i]; s.semantic3(sc); @@ -197,7 +197,7 @@ private extern(C++) final class Semantic3Visitor : Visitor if (mod.members) { // Pass 3 semantic routines: do initializers and function bodies - for (size_t i = 0; i < mod.members.dim; i++) + for (size_t i = 0; i < mod.members.length; i++) { Dsymbol s = (*mod.members)[i]; //printf("Module %s: %s.semantic3()\n", toChars(), s.toChars()); @@ -586,7 +586,7 @@ private extern(C++) final class Semantic3Visitor : Visitor */ if (ad2 && funcdecl.isCtorDeclaration()) { - sc2.ctorflow.allocFieldinit(ad2.fields.dim); + sc2.ctorflow.allocFieldinit(ad2.fields.length); foreach (v; ad2.fields) { v.ctorinit = 0; @@ -624,7 +624,7 @@ private extern(C++) final class Semantic3Visitor : Visitor if (funcdecl.returns && !funcdecl.fbody.isErrorStatement()) { - for (size_t i = 0; i < funcdecl.returns.dim;) + for (size_t i = 0; i < funcdecl.returns.length;) { Expression exp = (*funcdecl.returns)[i].exp; if (exp.op == EXP.variable && (cast(VarExp)exp).var == funcdecl.vresult) @@ -661,7 +661,7 @@ private extern(C++) final class Semantic3Visitor : Visitor * ctor consts were initialized. */ ScopeDsymbol pd = funcdecl.toParent().isScopeDsymbol(); - for (size_t i = 0; i < pd.members.dim; i++) + for (size_t i = 0; i < pd.members.length; i++) { Dsymbol s = (*pd.members)[i]; s.checkCtorConstInit(); @@ -829,7 +829,7 @@ private extern(C++) final class Semantic3Visitor : Visitor /* Cannot move this loop into NrvoWalker, because * returns[i] may be in the nested delegate for foreach-body. */ - for (size_t i = 0; i < funcdecl.returns.dim; i++) + for (size_t i = 0; i < funcdecl.returns.length; i++) { ReturnStatement rs = (*funcdecl.returns)[i]; Expression exp = rs.exp; @@ -1068,7 +1068,7 @@ private extern(C++) final class Semantic3Visitor : Visitor // Merge in initialization of 'out' parameters if (funcdecl.parameters) { - for (size_t i = 0; i < funcdecl.parameters.dim; i++) + for (size_t i = 0; i < funcdecl.parameters.length; i++) { VarDeclaration v = (*funcdecl.parameters)[i]; if (v.storage_class & STC.out_) @@ -1253,7 +1253,7 @@ private extern(C++) final class Semantic3Visitor : Visitor // Fix up forward-referenced gotos if (funcdecl.gotos && !funcdecl.isCsymbol()) { - for (size_t i = 0; i < funcdecl.gotos.dim; ++i) + for (size_t i = 0; i < funcdecl.gotos.length; ++i) { (*funcdecl.gotos)[i].checkLabel(); } @@ -1526,7 +1526,7 @@ private extern(C++) final class Semantic3Visitor : Visitor return; Scope* sc2 = ad.newScope(sc); - for (size_t i = 0; i < d.dim; i++) + for (size_t i = 0; i < d.length; i++) { Dsymbol s = (*d)[i]; s.semantic3(sc2); @@ -1551,7 +1551,7 @@ private extern(C++) final class Semantic3Visitor : Visitor auto sc2 = ad.newScope(sc); - for (size_t i = 0; i < ad.members.dim; i++) + for (size_t i = 0; i < ad.members.length; i++) { Dsymbol s = (*ad.members)[i]; s.semantic3(sc2); @@ -1612,7 +1612,7 @@ private struct FuncDeclSem3 { if (funcdecl.frequires) { - for (size_t i = 0; i < funcdecl.foverrides.dim; i++) + for (size_t i = 0; i < funcdecl.foverrides.length; i++) { FuncDeclaration fdv = funcdecl.foverrides[i]; if (fdv.fbody && !fdv.frequires) |