- Added class UndefinedType. Returning it in parseBasicType() when no token matched the basic type list.
author |
aziz |
date |
Tue, 10 Jul 2007 21:20:05 +0000 |
parents |
3924b1ee1302 |
children |
145e0d68ec95 |
files |
trunk/src/Parser.d trunk/src/Types.d |
diffstat |
2 files changed, 9 insertions(+), 0 deletions(-)
[+]
|
line diff
--- a/trunk/src/Parser.d Tue Jul 10 21:10:04 2007 +0000
+++ b/trunk/src/Parser.d Tue Jul 10 21:20:05 2007 +0000
@@ -1462,6 +1462,7 @@
goto Lident;
default:
// TODO: issue error msg and return UndefinedType.
+ t = new UndefinedType();
}
return t;
}
--- a/trunk/src/Types.d Tue Jul 10 21:10:04 2007 +0000
+++ b/trunk/src/Types.d Tue Jul 10 21:20:05 2007 +0000
@@ -86,6 +86,14 @@
}
}
+class UndefinedType : Type
+{
+ this()
+ {
+ super(TOK.Invalid, null);
+ }
+}
+
class IdentifierType : Type
{
string[] idents;