analyzer: Fix typo in property_access_test test name

Cq-Include-Trybots: luci.dart.try:flutter-analyze-try,analyzer-win-release-try,pkg-win-release-try
Change-Id: I26eef316b7bf711edb6e2e3285752244d0da2e82
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/371720
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Auto-Submit: Sam Rawlins <srawlins@google.com>
This commit is contained in:
Sam Rawlins 2024-06-14 18:04:12 +00:00 committed by Commit Queue
parent ad54e9b224
commit 800d824d97

View file

@ -311,6 +311,34 @@ PropertyAccess
''');
}
test_inClass_superExpression_identifier_setter() async {
await assertErrorsInCode('''
class A {
set foo(int _) {}
void f() {
super.foo;
}
}
''', [
error(CompileTimeErrorCode.UNDEFINED_SUPER_GETTER, 54, 3),
]);
var node = findNode.propertyAccess('foo;');
assertResolvedNodeText(node, r'''
PropertyAccess
target: SuperExpression
superKeyword: super
staticType: A
operator: .
propertyName: SimpleIdentifier
token: foo
staticElement: <null>
staticType: InvalidType
staticType: InvalidType
''');
}
test_inClass_superQualifier_identifier_getter() async {
await assertNoErrorsInCode('''
class A {
@ -455,34 +483,6 @@ PropertyAccess
''');
}
test_inClass_thisExpression_identifier_setter() async {
await assertErrorsInCode('''
class A {
set foo(int _) {}
void f() {
super.foo;
}
}
''', [
error(CompileTimeErrorCode.UNDEFINED_SUPER_GETTER, 54, 3),
]);
var node = findNode.propertyAccess('foo;');
assertResolvedNodeText(node, r'''
PropertyAccess
target: SuperExpression
superKeyword: super
staticType: A
operator: .
propertyName: SimpleIdentifier
token: foo
staticElement: <null>
staticType: InvalidType
staticType: InvalidType
''');
}
test_inExtensionType_explicitThis_declared() async {
await assertNoErrorsInCode(r'''
extension type A(int it) {