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

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

Issue 200783006: Fix analysis of parts (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 9 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 | « editor/tools/plugins/com.google.dart.command.analyze/src/com/google/dart/command/analyze/AnalyzerImpl.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/analyzer_impl.dart
diff --git a/pkg/analyzer/lib/src/analyzer_impl.dart b/pkg/analyzer/lib/src/analyzer_impl.dart
index b91aa1073fb41a4c03780594edb7b698ece4ee34..d68123b42e3294ae4fd234525b2ef24f0ba5fb08 100644
--- a/pkg/analyzer/lib/src/analyzer_impl.dart
+++ b/pkg/analyzer/lib/src/analyzer_impl.dart
@@ -95,7 +95,7 @@ class AnalyzerImpl {
/// The sync version of analysis
ErrorSeverity _analyzeSync() {
// don't try to analyze parts
- if (context.getKindOf(librarySource) == SourceKind.PART) {
+ if (context.computeKindOf(librarySource) == SourceKind.PART) {
print("Only libraries can be analyzed.");
print("$sourcePath is a part and can not be analyzed.");
return ErrorSeverity.ERROR;
« no previous file with comments | « editor/tools/plugins/com.google.dart.command.analyze/src/com/google/dart/command/analyze/AnalyzerImpl.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698