MCPcopy Create free account
hub / github.com/2fd/graphdoc / reduceEnumValues

Method reduceEnumValues

plugins/document.schema/index.ts:216–220  ·  view source on GitHub ↗
(lines: string[], enumValue: EnumValue)

Source from the content-addressed store, hash-verified

214 enum(type: SchemaType): string {
215
216 const reduceEnumValues = (lines: string[], enumValue: EnumValue) => lines
217 .concat(
218 [''],
219 this.description(enumValue.description), [html.property(enumValue.name) + this.deprecated(enumValue)],
220 );
221
222 return html.line(html.keyword('enum') + ' ' + html.identifier(type) + ' {') +
223 type.enumValues

Callers

nothing calls this directly

Calls 3

descriptionMethod · 0.95
deprecatedMethod · 0.95
propertyMethod · 0.80

Tested by

no test coverage detected