Mercurial > projects > ddmd
diff dmd/StructDeclaration.d @ 49:0aa7d1437ada
AttribDeclaration.oneMember
Lexer.decodeUTF
WithStatement.ctor
StructDeclaration.syntaxCopy
CtorDeclaration.syntaxCopy
ConditionalStatement.syntaxCopy
ProtDeclaration.syntaxCopy
ArrayScopeSymbol.this
TemplateDeclaration.toChars
author | korDen |
---|---|
date | Sat, 21 Aug 2010 07:53:20 +0400 |
parents | 427f8aa74d28 |
children | 2e2a5c3f943a |
line wrap: on
line diff
--- a/dmd/StructDeclaration.d Sat Aug 21 07:39:45 2010 +0400 +++ b/dmd/StructDeclaration.d Sat Aug 21 07:53:20 2010 +0400 @@ -84,7 +84,14 @@ Dsymbol syntaxCopy(Dsymbol s) { - assert(false); + StructDeclaration sd; + + if (s) + sd = cast(StructDeclaration)s; + else + sd = new StructDeclaration(loc, ident); + ScopeDsymbol.syntaxCopy(sd); + return sd; } void semantic(Scope sc)