MCPcopy Index your code
hub / github.com/angular/angular / visitMapType

Function visitMapType

packages/compiler/src/output/abstract_emitter.ts:630–644  ·  view source on GitHub ↗
(type: o.MapType, ctx: EmitterVisitorContext)

Source from the content-addressed store, hash-verified

628 }
629
630 visitMapType(type: o.MapType, ctx: EmitterVisitorContext): void {
631 if (!this.printTypes) {
632 return;
633 }
634
635 ctx.print(null, ': { [key: string]: ');
636
637 if (type.valueType) {
638 type.valueType.visitType(this, ctx);
639 } else {
640 ctx.print(null, 'any');
641 }
642
643 ctx.print(null, '}');
644 }
645
646 visitTransplantedType(type: o.TransplantedType<unknown>, ctx: EmitterVisitorContext): void {
647 throw new Error('TransplantedType nodes are not supported');

Callers

nothing calls this directly

Calls 2

printMethod · 0.45
visitTypeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…