Allow comment introspection #59842
Labels
area-pkg
Used for miscellaneous pkg/ packages not associated with specific area- teams.
feature-macros
Implementation of the macros feature
pkg-macros
The experimental package:_macros library
type-enhancement
A request for a change that isn't a bug
Allow comment introspection
I propose adding a property for comments to the
Declaration
class. I imagine it looking somethings like this:Usecase
The usecase I have is creating a macro to generate a vscode json-schema file for a config service but I believe access to comments would be very useful in any kind of automatic file generation.
Resources
Implementation of similar functionality in code generation package dartgenerate: https://pub.dev/documentation/dartgenerate/latest/dartgenerate/FieldDeclaration-class.html.
The text was updated successfully, but these errors were encountered: