Mercurial > projects > dang
diff basic/SourceLocation.d @ 148:6ec686d9c87d
Fixed some for parsing, and removed a little ugly bug.
author | Anders Johnsen <skabet@gmail.com> |
---|---|
date | Mon, 21 Jul 2008 20:28:11 +0200 |
parents | 89db676fbacb |
children |
line wrap: on
line diff
--- a/basic/SourceLocation.d Mon Jul 21 19:17:56 2008 +0200 +++ b/basic/SourceLocation.d Mon Jul 21 20:28:11 2008 +0200 @@ -1,5 +1,7 @@ module basic.SourceLocation; +import Integer = tango.text.convert.Integer; + /// Shorter alias for SourceLocation public alias SourceLocation SLoc; @@ -77,6 +79,10 @@ return res; } + char[] toString() + { + return Integer.toString(val); + } /** Used for invalid/unknown locations. (also the default value, but this is more explicit)