codeNodes method
Implementation
@override
List<CodeNode> codeNodes(Context context) => [
...docComments,
...annotations,
if (static) KeyWord.static$,
if (static) Space(),
if (final$) KeyWord.final$,
if (final$) Space(),
if (type != null &&
(propertyAccessor == null ||
propertyAccessor != PropertyAccessor.setter))
type!,
if (type != null &&
(propertyAccessor == null ||
propertyAccessor != PropertyAccessor.setter))
Space(),
if (propertyAccessor != null &&
propertyAccessor == PropertyAccessor.getter)
KeyWord.get$,
if (propertyAccessor != null &&
propertyAccessor == PropertyAccessor.setter)
KeyWord.set$,
if (propertyAccessor != null) Space(),
name,
if (propertyAccessor == null ||
propertyAccessor != PropertyAccessor.getter)
Code('('),
if (propertyAccessor != null &&
propertyAccessor == PropertyAccessor.setter)
Parameter.required(CodeFormatter().unFormatted(name), type: type),
if (parameters != null && propertyAccessor == null) parameters!,
if (propertyAccessor == null ||
propertyAccessor != PropertyAccessor.getter)
Code(')'),
if (asynchrony != null) Space(),
if (asynchrony != null && asynchrony == Asynchrony.async)
KeyWord.async$,
if (asynchrony != null && asynchrony == Asynchrony.sync) KeyWord.sync$,
if (!abstract) Space(),
if (!abstract) body!,
if (abstract) EndOfStatement(),
];