| 11904 | |
| 11905 | describe('Calls in tag expressions outside <cfscript>/<cfquery> (#2091)', () => { |
| 11906 | const callsFrom = (result: ReturnType<typeof extractFromSource>, fromId: string | undefined) => |
| 11907 | result.unresolvedReferences |
| 11908 | .filter((r) => r.fromNodeId === fromId && (r.referenceKind === 'calls' || r.referenceKind === 'instantiates')) |
| 11909 | .map((r) => `${r.referenceKind === 'instantiates' ? 'new ' : ''}${r.referenceName}@${r.line}`) |
| 11910 | .sort(); |
| 11911 | |
| 11912 | it('should extract calls in <cfset>, <cfif>, <cfelseif> and <cfreturn>, attributed to the enclosing method', () => { |
| 11913 | const code = `<cfcomponent> |