The recorded expression containing a synthesized-source position: the last one starting at or before it.
(row: number, column: number)
| 534 | |
| 535 | /** The recorded expression containing a synthesized-source position: the last one starting at or before it. */ |
| 536 | private tagExpressionAt(row: number, column: number): TagExpression { |
| 537 | const exprs = this.tagExpressions; |
| 538 | let lo = 0; |
| 539 | let hi = exprs.length - 1; |
| 540 | let found = 0; |
| 541 | while (lo <= hi) { |
| 542 | const mid = (lo + hi) >> 1; |
| 543 | const e = exprs[mid]!; |
| 544 | if (e.row < row || (e.row === row && e.textColumn <= column)) { |
| 545 | found = mid; |
| 546 | lo = mid + 1; |
| 547 | } else { |
| 548 | hi = mid - 1; |
| 549 | } |
| 550 | } |
| 551 | return exprs[found]!; |
| 552 | } |
| 553 | |
| 554 | /** A generic `cf_tag`'s start tag — where its name and attributes live. */ |
| 555 | private cfStartTag(tag: SyntaxNode): SyntaxNode | undefined { |
no outgoing calls
no test coverage detected