(node: SyntaxNode, source: string)
| 41 | * `<cfinclude>` (ACF 11+, Lucee): an include of a template, not a call (#2651). |
| 42 | */ |
| 43 | export 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. */ |
| 49 | function cfIncludeCallTemplate(node: SyntaxNode, source: string): string | null { |
no test coverage detected