visitFieldNode method
Visit FieldNode
.
Implementation
@override
void visitFieldNode(FieldNode node) {
final fieldName = node.name.value;
final name = node.alias?.value;
final property = createClassProperty(
fieldName: ClassPropertyName(name: fieldName),
fieldAlias: name != null ? ClassPropertyName(name: name) : null,
context: context,
onNewClassFound: (nextContext) {
node.visitChildren(GeneratorVisitor(
context: nextContext,
));
},
);
_classProperties.add(property);
}