Index: pkg/analyzer/test/generated/element_resolver_test.dart |
diff --git a/pkg/analyzer/test/generated/element_resolver_test.dart b/pkg/analyzer/test/generated/element_resolver_test.dart |
index da95f04e01ee2fa33f44a8872a8c669b3878bdc7..a98bdb58bb2e27afcff4e8fa8cff62a499aa4253 100644 |
--- a/pkg/analyzer/test/generated/element_resolver_test.dart |
+++ b/pkg/analyzer/test/generated/element_resolver_test.dart |
@@ -301,6 +301,25 @@ class ElementResolverTest extends EngineTestCase { |
_listener.assertNoErrors(); |
} |
+ void test_visitCommentReference_prefixedIdentifier_class_operator() { |
+ ClassElementImpl classA = ElementFactory.classElement2("A"); |
+ // set method |
+ MethodElement method = |
+ ElementFactory.methodElement("==", _typeProvider.boolType); |
+ classA.methods = <MethodElement>[method]; |
+ // set name scope |
+ _visitor.nameScope = new EnclosedScope(null) |
+ ..defineNameWithoutChecking('A', classA); |
+ // prepare "A.m" |
scheglov
2016/07/21 15:38:13
"A.=="
Brian Wilkerson
2016/07/21 15:43:44
Done
|
+ PrefixedIdentifier prefixed = AstFactory.identifier5('A', '=='); |
+ CommentReference commentReference = new CommentReference(null, prefixed); |
+ // resolve |
+ _resolveNode(commentReference); |
+ expect(prefixed.prefix.staticElement, classA); |
+ expect(prefixed.identifier.staticElement, method); |
+ _listener.assertNoErrors(); |
+ } |
+ |
void test_visitConstructorName_named() { |
ClassElementImpl classA = ElementFactory.classElement2("A"); |
String constructorName = "a"; |