Chromium Code Reviews| Index: pkg/front_end/lib/src/base/processed_options.dart |
| diff --git a/pkg/front_end/lib/src/base/processed_options.dart b/pkg/front_end/lib/src/base/processed_options.dart |
| index 209af26433bc071c6d35b601c6aa024c2536c004..046bc720b482cb0bd8dc5dcab9665df57921fd84 100644 |
| --- a/pkg/front_end/lib/src/base/processed_options.dart |
| +++ b/pkg/front_end/lib/src/base/processed_options.dart |
| @@ -613,8 +613,9 @@ class _CompilationMessage implements CompilationMessage { |
| String get dart2jsCode => _original.code.dart2jsCode; |
| - SourceSpan get span => |
| - new SourceLocation(_original.charOffset, sourceUrl: _original.uri) |
| + SourceSpan get span => _original.charOffset == -1 |
| + ? null |
|
Siggi Cherem (dart-lang)
2017/09/01 20:34:34
If _original.uri is not null, maybe use SourceLoca
|
| + : new SourceLocation(_original.charOffset, sourceUrl: _original.uri) |
| .pointSpan(); |
| _CompilationMessage(this._original, this.severity); |