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

Function isWithinKey

packages/language-service/src/utils/index.ts:83–91  ·  view source on GitHub ↗
(position: number, node: NodeWithKeyAndValue)

Source from the content-addressed store, hash-verified

81}
82
83export function isWithinKey(position: number, node: NodeWithKeyAndValue): boolean {
84 let {keySpan, valueSpan} = node;
85 if (valueSpan === undefined && node instanceof TmplAstBoundEvent) {
86 valueSpan = node.handlerSpan;
87 }
88 const isWithinKeyValue =
89 isWithin(position, keySpan) || !!(valueSpan && isWithin(position, valueSpan));
90 return isWithinKeyValue;
91}
92
93export function isWithinKeyValue(position: number, node: NodeWithKeyAndValue): boolean {
94 let {keySpan, valueSpan} = node;

Callers

nothing calls this directly

Calls 1

isWithinFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…