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

Method cfTagName

src/extraction/cfml-extractor.ts:562–565  ·  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

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