Skip to content

Commit de4c5b1

Browse files
stereotype441Commit Queue
authored andcommitted
[analyzer] Remove unused method _includeNameOffsetInIdentifier.
This is a step towards enabling the `comment_references` lint in the analyzer codebase. Change-Id: I6a6a69641e9926c110b8cf43bd3cb3a3ce393dc8 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/450721 Auto-Submit: Paul Berry <[email protected]> Commit-Queue: Konstantin Shcheglov <[email protected]> Reviewed-by: Konstantin Shcheglov <[email protected]>
1 parent cf31958 commit de4c5b1

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

pkg/analyzer/lib/src/dart/element/element.dart

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3695,12 +3695,6 @@ abstract class FragmentImpl with _FragmentImplMixin implements Fragment {
36953695
return asElement2?.sinceSdkVersion;
36963696
}
36973697

3698-
/// Whether to include the [nameOffset] in [identifier] to disambiguate
3699-
/// elements that might otherwise have the same identifier.
3700-
bool get _includeNameOffsetInIdentifier {
3701-
return false;
3702-
}
3703-
37043698
@override
37053699
bool operator ==(Object other) {
37063700
return identical(this, other);
@@ -7592,13 +7586,6 @@ class LocalFunctionFragmentImpl extends FunctionFragmentImpl
75927586
required super.name,
75937587
required super.firstTokenOffset,
75947588
});
7595-
7596-
@override
7597-
bool get _includeNameOffsetInIdentifier {
7598-
return super._includeNameOffsetInIdentifier ||
7599-
enclosingFragment is ExecutableFragment ||
7600-
enclosingFragment is VariableFragment;
7601-
}
76027589
}
76037590

76047591
class LocalVariableElementImpl extends PromotableElementImpl

0 commit comments

Comments
 (0)