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

Method useIdentifierLength

lib/utility/html.ts:86–97  ·  view source on GitHub ↗
(type: TypeRef, base: number = 0)

Source from the content-addressed store, hash-verified

84 }
85
86 useIdentifierLength(type: TypeRef, base: number = 0): number {
87 switch (type.kind) {
88 case LIST:
89 return this.useIdentifierLength(type.ofType as TypeRef, base + 2);
90
91 case NON_NULL:
92 return this.useIdentifierLength(type.ofType as TypeRef, base + 1);
93
94 default:
95 return base + type.name.length;
96 }
97 }
98
99 value(val: string): string {
100 return val[0] === '"' ?

Callers 2

argumentLengthMethod · 0.80
fieldLengthMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected