(type: TypeRef, base: number = 0)
| 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] === '"' ? |
no outgoing calls
no test coverage detected