MCPcopy Create free account
hub / github.com/dataform-co/dataform / setByNameLevel

Method setByNameLevel

core/utils.ts:647–652  ·  view source on GitHub ↗
(targetMap: Map<string, T[]>, name: string, value: T)

Source from the content-addressed store, hash-verified

645 }
646
647 private setByNameLevel(targetMap: Map<string, T[]>, name: string, value: T) {
648 if (!targetMap.has(name)) {
649 targetMap.set(name, []);
650 }
651 targetMap.get(name).push(value);
652 }
653
654 private setBySchemaLevel(
655 targetMap: Map<string, Map<string, T[]>>,

Callers 2

setMethod · 0.95
setBySchemaLevelMethod · 0.95

Calls 3

getMethod · 0.80
setMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected