feat(dart/transform): Parse url
values in Template
s
When a `Template` annotation declares a `url` value, parse it to generate `getter`s, `setter`s, and `method`s which will it needs to access reflectively.
This commit is contained in:
@ -42,8 +42,9 @@ class _CtorTransformVisitor extends ToSourceVisitor with VisitorMixin {
|
||||
ClassDeclaration clazz =
|
||||
node.getAncestor((node) => node is ClassDeclaration);
|
||||
_fieldNameToType.clear();
|
||||
clazz.members.where((member) => member is FieldDeclaration).forEach(
|
||||
(FieldDeclaration field) {
|
||||
clazz.members
|
||||
.where((member) => member is FieldDeclaration)
|
||||
.forEach((FieldDeclaration field) {
|
||||
var type = field.fields.type;
|
||||
if (type != null) {
|
||||
field.fields.variables.forEach((VariableDeclaration decl) {
|
||||
|
Reference in New Issue
Block a user