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

Unified Diff: pkg/analyzer/lib/analyzer.dart

Issue 1750773002: Remove invalid URI in an attempt to fix a windows bug. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 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
Index: pkg/analyzer/lib/analyzer.dart
diff --git a/pkg/analyzer/lib/analyzer.dart b/pkg/analyzer/lib/analyzer.dart
index 0ac8cf48f93ba93a2c75cf97862e2eab37117781..7107b588f95af518b6b816d1a3bb2ca691b51db2 100644
--- a/pkg/analyzer/lib/analyzer.dart
+++ b/pkg/analyzer/lib/analyzer.dart
@@ -35,8 +35,7 @@ export 'package:analyzer/src/generated/utilities_dart.dart';
/// parsed.
CompilationUnit parseCompilationUnit(String contents,
{String name, bool suppressErrors: false, bool parseFunctionBodies: true}) {
- if (name == null) name = '<unknown source>';
- var source = new StringSource(contents, name);
+ Source source = new StringSource(contents, name);
return _parseSource(contents, source,
suppressErrors: suppressErrors, parseFunctionBodies: parseFunctionBodies);
}
« no previous file with comments | « no previous file | pkg/analyzer/test/parse_compilation_unit_test.dart » ('j') | pkg/analyzer/test/parse_compilation_unit_test.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698