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

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

Issue 360393003: New analyzer snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 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 93307b734d52e236f82aab3721b3b1788ea5b791..db282d9b829a1a464c108b8822b3e94beccebcbc 100644
--- a/pkg/analyzer/lib/src/generated/ast.dart
+++ b/pkg/analyzer/lib/src/generated/ast.dart
@@ -15357,6 +15357,28 @@ class SimpleIdentifier extends Identifier {
return false;
}
+ /**
+ * Returns `true` if this identifier is the "name" part of a prefixed identifier or a method
+ * invocation.
+ *
+ * @return `true` if this identifier is the "name" part of a prefixed identifier or a method
+ * invocation
+ */
+ bool get isQualified {
+ AstNode parent = this.parent;
+ if (parent is PrefixedIdentifier) {
+ return identical(parent.identifier, this);
+ }
+ if (parent is PropertyAccess) {
+ return identical(parent.propertyName, this);
+ }
+ if (parent is MethodInvocation) {
+ MethodInvocation invocation = parent;
+ return identical(invocation.methodName, this) && invocation.realTarget != null;
+ }
+ return false;
+ }
+
@override
bool get isSynthetic => token.isSynthetic;

Powered by Google App Engine
This is Rietveld 408576698