MCPcopy Create free account
hub / github.com/angular/angular / visitMapType

Function visitMapType

packages/compiler/src/output/abstract_emitter.ts:697–711  ·  view source on GitHub ↗
(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

Calls 2

printMethod · 0.45
visitTypeMethod · 0.45

Tested by

no test coverage detected