(position: number, node: NodeWithKeyAndValue)
| 81 | } |
| 82 | |
| 83 | export 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 | |
| 93 | export function isWithinKeyValue(position: number, node: NodeWithKeyAndValue): boolean { |
| 94 | let {keySpan, valueSpan} = node; |
nothing calls this directly
no test coverage detected
searching dependent graphs…