Skip to content

Commit 439692c

Browse files
bwilkersoncommit-bot@chromium.org
authored andcommitted
Mark the name in an extension as being in a declaration context
Change-Id: I3300b9042b62d47af3e23959875695741decc302 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/108160 Commit-Queue: Brian Wilkerson <[email protected]> Commit-Queue: Dan Rubel <[email protected]> Auto-Submit: Brian Wilkerson <[email protected]> Reviewed-by: Dan Rubel <[email protected]>
1 parent 372bcae commit 439692c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎pkg/analyzer/lib/src/fasta/ast_builder.dart‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ class AstBuilder extends StackListener {
207207

208208
SimpleIdentifier name;
209209
if (nameToken != null) {
210-
name = ast.simpleIdentifier(nameToken);
210+
name = ast.simpleIdentifier(nameToken, isDeclaration: true);
211211
}
212212

213213
extensionDeclaration = ast.extensionDeclaration(

0 commit comments

Comments
 (0)