comparison trunk/src/dil/Scope.d @ 514:6ddff941862a

Added new error classes.
author Aziz K?ksal <aziz.koeksal@gmail.com>
date Fri, 14 Dec 2007 19:32:07 +0100
parents 47be6bfe39cd
children 50e64bab9c7a
comparison
equal deleted inserted replaced
513:6160ab7b1816 514:6ddff941862a
56 import dil.Messages; 56 import dil.Messages;
57 import dil.Token; 57 import dil.Token;
58 void error(Token* token, MID mid) 58 void error(Token* token, MID mid)
59 { 59 {
60 auto location = token.getLocation(); 60 auto location = token.getLocation();
61 auto msg = GetMsg(mid); 61 auto error = new SemanticError(location, GetMsg(mid));
62 auto error = new Information(InfoType.Semantic, mid, location, msg);
63 // infoMan.add(error); 62 // infoMan.add(error);
64 } 63 }
65 } 64 }