Function
visitMapType
(type: o.MapType, ctx: EmitterVisitorContext)
Source from the content-addressed store, hash-verified
| 695 | } |
| 696 | |
| 697 | visitMapType(type: o.MapType, ctx: EmitterVisitorContext): void { |
| 698 | if (!this.printTypes) { |
| 699 | return; |
| 700 | } |
| 701 | |
| 702 | ctx.print(null, ': { [key: string]: '); |
| 703 | |
| 704 | if (type.valueType) { |
| 705 | type.valueType.visitType(this, ctx); |
| 706 | } else { |
| 707 | ctx.print(null, 'any'); |
| 708 | } |
| 709 | |
| 710 | ctx.print(null, '}'); |
| 711 | } |
| 712 | |
| 713 | visitTransplantedType(type: o.TransplantedType<unknown>, ctx: EmitterVisitorContext): void { |
| 714 | throw new Error('TransplantedType nodes are not supported'); |
Callers
nothing calls this directly
Tested by
no test coverage detected