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