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

Function isCfIncludeCall

src/extraction/languages/cfscript.ts:43–46  ·  view source on GitHub ↗
(node: SyntaxNode, source: string)

Source from the content-addressed store, hash-verified

41 * `<cfinclude>` (ACF 11+, Lucee): an include of a template, not a call (#2651).
42 */
43export function isCfIncludeCall(node: SyntaxNode, source: string): boolean {
44 const fn = getChildByField(node, 'function');
45 return fn?.type === 'identifier' && getNodeText(fn, source).toLowerCase() === 'cfinclude';
46}
47
48/** The literal template `cfinclude(template="x.cfm")` or `cfinclude("x.cfm")` names. */
49function cfIncludeCallTemplate(node: SyntaxNode, source: string): string | null {

Callers 2

extractCallMethod · 0.90
cfscript.tsFile · 0.85

Calls 2

getChildByFieldFunction · 0.90
getNodeTextFunction · 0.90

Tested by

no test coverage detected