codeNodes method

  1. @override
List<CodeNode> codeNodes(
  1. Context context
)
override

Implementation

@override
List<CodeNode> codeNodes(Context context) => [
      if (libraryStatement != null) libraryStatement!,
      context.imports,
      if (docComments != null) ...docComments!,
      if (annotations != null) ...annotations!,
      if (functions != null) SeparatedValues.forStatements(functions!),
      if (classes != null) SeparatedValues.forStatements(classes!),
    ];