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

Method _addPartial

packages/compiler/src/directive_matching.ts:324–331  ·  view source on GitHub ↗
(map: Map<string, SelectorMatcher<T>>, name: string)

Source from the content-addressed store, hash-verified

322 }
323
324 private _addPartial(map: Map<string, SelectorMatcher<T>>, name: string): SelectorMatcher<T> {
325 let matcher = map.get(name);
326 if (!matcher) {
327 matcher = new SelectorMatcher<T>();
328 map.set(name, matcher);
329 }
330 return matcher;
331 }
332
333 /**
334 * Find the objects that have been added via `addSelectable`

Callers 1

_addSelectableMethod · 0.95

Calls 2

getMethod · 0.65
setMethod · 0.65

Tested by

no test coverage detected