Skip to content

Commit

Permalink
analyzer: Fix typo in property_access_test test name
Browse files Browse the repository at this point in the history
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 <[email protected]>
Commit-Queue: Konstantin Shcheglov <[email protected]>
Auto-Submit: Sam Rawlins <[email protected]>
  • Loading branch information
srawlins authored and Commit Queue committed Jun 14, 2024
1 parent ad54e9b commit 800d824
Showing 1 changed file with 28 additions and 28 deletions.
56 changes: 28 additions & 28 deletions pkg/analyzer/test/src/dart/resolution/property_access_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 800d824

Please sign in to comment.