generator/print_helpers library

Functions

classDefinitionToSpec(ClassDefinition definition, Iterable<FragmentClassDefinition> fragments, Iterable<ClassDefinition> classes) → Spec
Generates a Spec of a single class definition.
enumDefinitionToSpec(EnumDefinition definition) → Spec
Generates a Spec of a single enum definition.
fragmentClassDefinitionToSpec(FragmentClassDefinition definition) → Spec
Generates a Spec of a single fragment class definition.
generateArgumentClassSpec(QueryDefinition definition) → Spec
Generates a Spec of a mutation argument class.
generateLibrarySpec(LibraryDefinition definition) → Spec
Gathers and generates a Spec of a whole query/mutation and its dependencies into a single library file.
generateQueryClassSpec(QueryDefinition definition) → Spec
Generates a Spec of a query/mutation class.
generateQuerySpec(QueryDefinition definition) → Spec
specToString(Spec spec) String
Emit a Spec into a String, considering Dart formatting.
writeLibraryDefinitionToBuffer(StringBuffer buffer, List<String> ignoreForFile, LibraryDefinition definition) → void
Generate Dart code typings from a query or mutation and its response from a QueryDefinition into a buffer.
writeLibraryForwarder(LibraryDefinition definition) String
Generate an empty file just exporting the library. This is used to avoid a breaking change on file generation.