(type: TypeRef, toUrl: string)
| 71 | } |
| 72 | |
| 73 | useIdentifier(type: TypeRef, toUrl: string): string { |
| 74 | switch (type.kind) { |
| 75 | case LIST: |
| 76 | return '[' + this.useIdentifier(type.ofType as TypeRef, toUrl) + ']'; |
| 77 | |
| 78 | case NON_NULL: |
| 79 | return this.useIdentifier(type.ofType as TypeRef, toUrl) + '!'; |
| 80 | |
| 81 | default: |
| 82 | return `<a class="support type" href="${toUrl}">${type.name}</a>`; |
| 83 | } |
| 84 | } |
| 85 | |
| 86 | useIdentifierLength(type: TypeRef, base: number = 0): number { |
| 87 | switch (type.kind) { |