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

Method argumentsLength

plugins/document.schema/index.ts:124–131  ·  view source on GitHub ↗
(fieldOrDirectives: Field | Directive)

Source from the content-addressed store, hash-verified

122 }
123
124 argumentsLength(fieldOrDirectives: Field | Directive): number {
125
126 if (fieldOrDirectives.args.length === 0) {
127 return 0;
128 }
129
130 return fieldOrDirectives.args.reduce((sum, arg) => sum + this.argumentLength(arg), 2);
131 }
132
133 argumentsMultiline(fieldOrDirectives: Field | Directive): string[] {
134

Callers 1

fieldLengthMethod · 0.95

Calls 1

argumentLengthMethod · 0.95

Tested by

no test coverage detected