| Index: pkg/compiler/lib/src/io/start_end_information.dart
|
| diff --git a/pkg/compiler/lib/src/io/start_end_information.dart b/pkg/compiler/lib/src/io/start_end_information.dart
|
| index 4547fca54bf5148b4602d4b9343bd68f9f26aae1..68469eb34efbbcd0135608877c8f905d45029750 100644
|
| --- a/pkg/compiler/lib/src/io/start_end_information.dart
|
| +++ b/pkg/compiler/lib/src/io/start_end_information.dart
|
| @@ -9,6 +9,7 @@ library dart2js.source_information.start_end;
|
|
|
| import '../dart2jslib.dart' show
|
| MessageKind,
|
| + MessageTemplate,
|
| SourceSpan;
|
| import '../elements/elements.dart' show
|
| AstElement,
|
| @@ -182,10 +183,11 @@ class StartEndSourceInformationBuilder extends SourceInformationBuilder {
|
| void checkValidSourceFileLocation(
|
| SourceLocation location, SourceFile sourceFile, int offset) {
|
| if (!location.isValid) {
|
| - throw MessageKind.INVALID_SOURCE_FILE_LOCATION.message(
|
| - {'offset': offset,
|
| - 'fileName': sourceFile.filename,
|
| - 'length': sourceFile.length});
|
| + throw MessageTemplate.TEMPLATES[MessageKind.INVALID_SOURCE_FILE_LOCATION]
|
| + .message(
|
| + {'offset': offset,
|
| + 'fileName': sourceFile.filename,
|
| + 'length': sourceFile.length});
|
| }
|
| }
|
|
|
|
|