Mercurial > projects > ddmd
diff dmd/FuncLiteralDeclaration.d @ 56:51605de93870
TupleExp.optimize
UnrolledLoopStatement.ctor
UnrolledLoopStatement.semantic
UnrolledLoopStatement.blockExit
OrOrExp.checkSideEffect
FuncExp.syntaxCopy
FuncLiteralDeclaration.syntaxCopy
WhileStatement.hasBreak
StructInitializer.toExpression
StructLiteralExp.ctor
StructLiteralExp.optimize
BinExp.commonSemanticAssign
ModAssignExp.opId
Argument.isLazyArray
CommaExp.implicitConvTo
CommaExp.castTo
TypeClass.isBaseOf
createTypeInfoArray
TypeTuple.getTypeInfoDeclaration
TypeInfoTupleDeclaration.ctor
TypeNext.constConv
XorExp.implicitConvTo
TemplateParameter.isTemplateValueParameter
author | korDen |
---|---|
date | Sat, 21 Aug 2010 14:16:53 +0400 |
parents | 10317f0c89a5 |
children | 2e2a5c3f943a |
line wrap: on
line diff
--- a/dmd/FuncLiteralDeclaration.d Sat Aug 21 13:28:16 2010 +0400 +++ b/dmd/FuncLiteralDeclaration.d Sat Aug 21 14:16:53 2010 +0400 @@ -40,9 +40,20 @@ assert(false); } - Dsymbol syntaxCopy(Dsymbol) + Dsymbol syntaxCopy(Dsymbol s) { - assert(false); + FuncLiteralDeclaration f; + + //printf("FuncLiteralDeclaration.syntaxCopy('%s')\n", toChars()); + if (s) + f = cast(FuncLiteralDeclaration)s; + else + { + f = new FuncLiteralDeclaration(loc, endloc, type.syntaxCopy(), tok, fes); + f.ident = ident; // keep old identifier + } + FuncDeclaration.syntaxCopy(f); + return f; } bool isNested()