Mercurial > projects > ddmd
view dmd/templates/Util.d @ 7:89cc05dbdae1
Implementing TemplateAliasParameter and TemplateValueParameter
author | dkoroskin <> |
---|---|
date | Mon, 14 Dec 2009 14:50:03 +0300 |
parents | |
children | 427f8aa74d28 |
line wrap: on
line source
module dmd.templates.Util; import dmd.Dsymbol; import dmd.Type; import dmd.Expression; version (DMDV2) { Object objectSyntaxCopy(Object o) { if (!o) return null; Type t = isType(o); if (t) return t.syntaxCopy(); Expression e = isExpression(o); if (e) return e.syntaxCopy(); return o; } }