Chromium Code Reviews| Index: sdk/lib/core/errors.dart |
| diff --git a/sdk/lib/core/errors.dart b/sdk/lib/core/errors.dart |
| index c11ea2e1a97da25e0c73490a216d7ec025492dc6..c9d85cafb7fd72787398c38658a5805ef1541e76 100644 |
| --- a/sdk/lib/core/errors.dart |
| +++ b/sdk/lib/core/errors.dart |
| @@ -571,3 +571,11 @@ class CyclicInitializationError extends Error { |
| ? "Reading static variable during its initialization" |
| : "Reading static variable '$variableName' during its initialization"; |
| } |
| + |
| + |
| +class SyntaxError extends Error { |
|
Lasse Reichstein Nielsen
2016/09/15 05:41:35
I have two objections here:
1. This will represen
hausner
2016/09/15 21:28:28
Renamed SyntaxError to _CompileTimeError. The clas
|
| + final String errorMsg; |
| + SyntaxError(this.errorMsg); |
| + String toString() => errorMsg; |
| +} |
| + |