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 <brianwilkerson@google.com> Commit-Queue: Dan Rubel <danrubel@google.com> Auto-Submit: Brian Wilkerson <brianwilkerson@google.com> Reviewed-by: Dan Rubel <danrubel@google.com>
1 parent 372bcae commit 439692c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)