Mercurial > projects > dang
comparison dang/compiler.d @ 114:3a0cd42de9cc
Removed misc/Error.d and is now using the error system all way through.
author | Anders Johnsen <skabet@gmail.com> |
---|---|
date | Sun, 25 May 2008 16:40:38 +0200 |
parents | 89db676fbacb |
children | 2be29b296081 |
comparison
equal
deleted
inserted
replaced
112:d03b011c50e9 | 114:3a0cd42de9cc |
---|---|
245 | 245 |
246 (new ScopeBuilder).visit(modules); | 246 (new ScopeBuilder).visit(modules); |
247 StopWatch watch2; | 247 StopWatch watch2; |
248 watch.start; | 248 watch.start; |
249 watch2.start; | 249 watch2.start; |
250 (new ScopeCheck).visit(modules); | 250 (new ScopeCheck(messages)).visit(modules); |
251 auto scope_check = watch2.stop; | 251 auto scope_check = watch2.stop; |
252 watch2.start; | 252 watch2.start; |
253 (new TypeCheck).visit(modules); | 253 messages.checkErrors; |
254 (new TypeCheck(messages)).visit(modules); | |
254 auto type_check = watch2.stop; | 255 auto type_check = watch2.stop; |
255 watch2.start; | 256 watch2.start; |
257 messages.checkErrors; | |
256 | 258 |
257 foreach (m; modules) | 259 foreach (m; modules) |
258 foreach (decl; m.decls) | 260 foreach (decl; m.decls) |
259 decl.simplify(); | 261 decl.simplify(); |
260 | 262 |