Skip to content

Commit

Permalink
Macro. Issue 55756. Include the name of the unresolved identifier.
Browse files Browse the repository at this point in the history
Bug: #55756
Change-Id: Ia1eab2bdf8900843151386f7dc31423e5f62805a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/366966
Reviewed-by: Phil Quitslund <pquitslund@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
  • Loading branch information
scheglov authored and Commit Queue committed May 17, 2024
1 parent 42ec219 commit 2fa0501
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/analyzer/lib/src/summary2/macro_declarations.dart
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,8 @@ class DeclarationBuilder {
uri: null,
staticScope: null,
);
case null:
throw ArgumentError('Unresolved identifier: ${identifier.name}');
default:
throw UnimplementedError('${element.runtimeType}');
}
Expand Down

0 comments on commit 2fa0501

Please sign in to comment.