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

Method cfTagName

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

A generic `cf_tag`'s name, lowercased, without the `cf` prefix (` ` → `loop`).

(tag: SyntaxNode)

Source from the content-addressed store, hash-verified

563
564 /** A generic `cf_tag`'s name, lowercased, without the `cf` prefix (`<cfLoop>` → `loop`). */
565 private cfTagName(tag: SyntaxNode): string | undefined {
566 const nameNode = this.cfStartTag(tag)?.namedChildren.find((c: SyntaxNode) => c.type === 'cf_tag_name');
567 return nameNode ? this.source.substring(nameNode.startIndex, nameNode.endIndex).toLowerCase() : undefined;
568 }
569
570 /**
571 * A void tag's name, lowercased, without the `cf` prefix (`<cfInclude …>` →

Callers 1

visitTagMethod · 0.95

Calls 1

cfStartTagMethod · 0.95

Tested by

no test coverage detected