Mercurial > projects > dang
diff sema/Visitor.d @ 106:89db676fbacb
Now able of understanding strings.
author | Anders Johnsen <skabet@gmail.com> |
---|---|
date | Thu, 22 May 2008 12:09:11 +0200 |
parents | cd066f3b539a |
children | 2be29b296081 |
line wrap: on
line diff
--- a/sema/Visitor.d Wed May 21 21:11:55 2008 +0200 +++ b/sema/Visitor.d Thu May 22 12:09:11 2008 +0200 @@ -97,6 +97,8 @@ return visitPointerIdentifier(cast(PointerIdentifier)exp); case ExpType.ArrayIdentifier: return visitArrayIdentifier(cast(ArrayIdentifier)exp); + case ExpType.StringExp: + return visitStringExp(cast(StringExp)exp); case ExpType.Index: return visitIndexExp(cast(IndexExp)exp); case ExpType.MemberReference: @@ -314,6 +316,14 @@ return ExpT.init; } + ExpT visitStringExp(StringExp exp) + { + static if (is(ExpT == void)) + return; + else + return ExpT.init; + } + ExpT visitIdentifier(Identifier exp) { static if (is(ExpT == void))