Mercurial > projects > ddmd
comparison dmd/TypeSArray.d @ 121:347de076ad34
TemplateParameters -> Vector
author | Eldar Insafutdinov <e.insafutdinov@gmail.com> |
---|---|
date | Thu, 02 Sep 2010 22:41:12 +0100 |
parents | e28b18c23469 |
children | 1765f3ef917d |
comparison
equal
deleted
inserted
replaced
120:46ef67271ef3 | 121:347de076ad34 |
---|---|
506 { | 506 { |
507 int i = templateIdentifierLookup((cast(VarExp)tp.dim).var.ident, parameters); | 507 int i = templateIdentifierLookup((cast(VarExp)tp.dim).var.ident, parameters); |
508 // This code matches code in TypeInstance.deduceType() | 508 // This code matches code in TypeInstance.deduceType() |
509 if (i == -1) | 509 if (i == -1) |
510 goto Lnomatch; | 510 goto Lnomatch; |
511 TemplateParameter tp2 = cast(TemplateParameter)parameters.data[i]; | 511 auto tp2 = parameters[i]; |
512 TemplateValueParameter tvp = tp2.isTemplateValueParameter(); | 512 TemplateValueParameter tvp = tp2.isTemplateValueParameter(); |
513 if (!tvp) | 513 if (!tvp) |
514 goto Lnomatch; | 514 goto Lnomatch; |
515 Expression e = cast(Expression)dedtypes[i]; | 515 Expression e = cast(Expression)dedtypes[i]; |
516 if (e) | 516 if (e) |
541 { | 541 { |
542 Identifier id = tident.ident; | 542 Identifier id = tident.ident; |
543 | 543 |
544 for (size_t i = 0; i < parameters.dim; i++) | 544 for (size_t i = 0; i < parameters.dim; i++) |
545 { | 545 { |
546 auto tp2 = cast(TemplateParameter)parameters.data[i]; | 546 auto tp2 = parameters[i]; |
547 | 547 |
548 if (tp2.ident.equals(id)) | 548 if (tp2.ident.equals(id)) |
549 { | 549 { |
550 // Found the corresponding template parameter | 550 // Found the corresponding template parameter |
551 TemplateValueParameter tvp = tp2.isTemplateValueParameter(); | 551 TemplateValueParameter tvp = tp2.isTemplateValueParameter(); |