Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1945)

Unified Diff: pkg/front_end/lib/src/base/processed_options.dart

Issue 3010033002: don't use internal throwOnWarnings option (Closed)
Patch Set: wait until all errors are processed before failing Created 3 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | pkg/front_end/tool/bazel/worker.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « no previous file | pkg/front_end/tool/bazel/worker.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698