[Question] support annotated types in records #55604
Labels
analyzer-api
Issues that impact the public API of the analyzer package
area-analyzer
Use area-analyzer for Dart analyzer issues, including the analysis server and code completion.
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:
The syntax is accepted by Dart and the program compiles, however I found no way to access the
@CustomSerializer()
annotation forCustomType
in my builder, presumably because the method element carries a resolvedDartType
inreturnType
. 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?
The text was updated successfully, but these errors were encountered: