MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / tagExpressionAt

Method tagExpressionAt

src/extraction/cfml-extractor.ts:536–552  ·  view source on GitHub ↗

The recorded expression containing a synthesized-source position: the last one starting at or before it.

(row: number, column: number)

Source from the content-addressed store, hash-verified

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 {

Callers 1

extractTagExpressionsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected