-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Open
Labels
P3A lower priority bug or feature requestA lower priority bug or feature requestanalyzer-apiIssues that impact the public API of the analyzer packageIssues that impact the public API of the analyzer packagearea-dart-modelFor issues related to conformance to the language spec in the parser, compilers or the CLI analyzer.For issues related to conformance to the language spec in the parser, compilers or the CLI analyzer.status-blockedBlocked from making progress by another (referenced) issueBlocked from making progress by another (referenced) issuetype-enhancementA request for a change that isn't a bugA request for a change that isn't a bug
Description
Hello,
I'm using build_runner: ^2.4.8 on Dart 3.3.4 (stable) from Flutter 3.19.6.
I've developed a builder and would like to use annotations on types in records, eg:
(int, @CustomSerializer() CustomType) myMethod(...) { ... }
The syntax is accepted by Dart and the program compiles, however I found no way to access the @CustomSerializer()
annotation for CustomType
in my builder, presumably because the method element carries a resolved DartType
in returnType
. I can inspect the types that are part of the record, but can't navigate to the location in the AST that defined that record type.
Is there a way to achieve this, or is it considered at all?
Metadata
Metadata
Assignees
Labels
P3A lower priority bug or feature requestA lower priority bug or feature requestanalyzer-apiIssues that impact the public API of the analyzer packageIssues that impact the public API of the analyzer packagearea-dart-modelFor issues related to conformance to the language spec in the parser, compilers or the CLI analyzer.For issues related to conformance to the language spec in the parser, compilers or the CLI analyzer.status-blockedBlocked from making progress by another (referenced) issueBlocked from making progress by another (referenced) issuetype-enhancementA request for a change that isn't a bugA request for a change that isn't a bug