Mercurial > projects > dang
comparison misc/Error.d @ 93:621cedba53ea new_gen
Removed the Symbol from semantics - it was not needed anymore. From now on you set the type by doing a setType on an Identifier.
author | Anders Johnsen <skabet@gmail.com> |
---|---|
date | Mon, 05 May 2008 20:53:13 +0200 |
parents | eb5b2c719a39 |
children |
comparison
equal
deleted
inserted
replaced
92:771ac63898e2 | 93:621cedba53ea |
---|---|
5 tango.text.Util; | 5 tango.text.Util; |
6 | 6 |
7 import llvm.type; | 7 import llvm.type; |
8 | 8 |
9 import lexer.Token, | 9 import lexer.Token, |
10 sema.DType, | 10 sema.DType; |
11 sema.Symbol; | |
12 | 11 |
13 class Error : Exception | 12 class Error : Exception |
14 { | 13 { |
15 | 14 |
16 this(char[] message) | 15 this(char[] message) |
98 foreach (t; toks) | 97 foreach (t; toks) |
99 res ~= typeToString[t]; | 98 res ~= typeToString[t]; |
100 return arg(res); | 99 return arg(res); |
101 } | 100 } |
102 | 101 |
103 Error arg(Symbol sym) | |
104 { | |
105 return arg(sym.type.name ~ " " ~ sym.id.get); | |
106 } | |
107 | |
108 /* | 102 /* |
109 Error loc(Location loc) | 103 Error loc(Location loc) |
110 { | 104 { |
111 location = loc; | 105 location = loc; |
112 return this; | 106 return this; |