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

Unified Diff: pkg/analyzer2dart/lib/src/util.dart

Issue 982543002: Fix warning in analyzer2dart. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 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
« no previous file with comments | « no previous file | pkg/pkg.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer2dart/lib/src/util.dart
diff --git a/pkg/analyzer2dart/lib/src/util.dart b/pkg/analyzer2dart/lib/src/util.dart
index 34bc33d998dcb9363b63110de199613a196b3a40..e4b0d33b83246f1b044f74c3f083effc11c8a00e 100644
--- a/pkg/analyzer2dart/lib/src/util.dart
+++ b/pkg/analyzer2dart/lib/src/util.dart
@@ -29,7 +29,7 @@ Selector createSelectorFromMethodInvocation(ArgumentList node,
/// [source].
void reportSourceMessage(Source source, AstNode node, String message) {
SourceFile sourceFile =
- new StringSourceFile(source.fullName, source.contents.data);
+ new StringSourceFile.fromName(source.fullName, source.contents.data);
print(sourceFile.getLocationMessage(message, node.offset, node.end));
}
« no previous file with comments | « no previous file | pkg/pkg.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698