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

Unified Diff: pkg/analyzer/lib/src/generated/ast.dart

Issue 967703002: Avoid unnecessary parsing/resolution when running command line analyzer. (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
Index: pkg/analyzer/lib/src/generated/ast.dart
diff --git a/pkg/analyzer/lib/src/generated/ast.dart b/pkg/analyzer/lib/src/generated/ast.dart
index 277af7fb2983b6114e4d8f3f3fe5fdcce7ae2397..24d5068618e8da93fb8f419e7f8b1891354f2abd 100644
--- a/pkg/analyzer/lib/src/generated/ast.dart
+++ b/pkg/analyzer/lib/src/generated/ast.dart
@@ -11928,8 +11928,11 @@ class MethodDeclaration extends ClassMember {
/**
* Return `true` if this method is declared to be an abstract method.
*/
- bool get isAbstract =>
- externalKeyword == null && (_body is EmptyFunctionBody);
+ bool get isAbstract {
+ FunctionBody body = _body;
+ return externalKeyword == null &&
+ (body is EmptyFunctionBody && !body.semicolon.isSynthetic);
+ }
/**
* Return `true` if this method declares a getter.

Powered by Google App Engine
This is Rietveld 408576698