Skip to content

Commit 68ec39f

Browse files
scheglovCommit Queue
authored andcommitted
Elements. Rename ClassElementImpl.isDartCoreFunctionImpl to isDartCoreFunction.
Change-Id: Iddebaf4699e0241bece232847c0b9bf94bb77d20 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/446007 Reviewed-by: Johnni Winther <[email protected]> Commit-Queue: Konstantin Shcheglov <[email protected]>
1 parent 5f9a049 commit 68ec39f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -258,9 +258,9 @@ class ClassElementImpl extends InterfaceElementImpl implements ClassElement {
258258
return name == 'Enum' && library.isDartCore;
259259
}
260260

261-
/// Return `true` if this class represents the class 'Function' defined in the
262-
/// dart:core library.
263-
bool get isDartCoreFunctionImpl {
261+
/// Whether the class represents the class 'Function' defined in `dart:core`.
262+
@trackedIncludedInId
263+
bool get isDartCoreFunction {
264264
return name == 'Function' && library.isDartCore;
265265
}
266266

pkg/analyzer/lib/src/generated/error_verifier.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ class ErrorVerifier extends RecursiveAstVisitor<void>
499499
_enclosingClass = declarationElement.asElement2;
500500

501501
List<ClassMember> members = node.members;
502-
if (!declarationElement.element.isDartCoreFunctionImpl) {
502+
if (!declarationElement.element.isDartCoreFunction) {
503503
_checkForBuiltInIdentifierAsName(
504504
node.name,
505505
CompileTimeErrorCode.builtInIdentifierAsTypeName,

0 commit comments

Comments
 (0)