(caller, site)
| 197 | return (await callArgumentsForFile(file.abs, file.language, [key])).get(siteKey(key)) ?? null; |
| 198 | }, |
| 199 | async trigger(caller, site) { |
| 200 | // Not counted against the budget: the tree is already parsed for the |
| 201 | // site's guards, and a trigger lookup is a walk up from one node. |
| 202 | if (!site.line || !supportsBranchGuards(caller.language)) return null; |
| 203 | const file = resolve(caller); |
| 204 | if (!file) return null; |
| 205 | const key = { line: site.line, column: typeof site.column === 'number' ? site.column : null }; |
| 206 | return (await triggersForFile(file.abs, file.language, [key])).get(siteKey(key)) ?? null; |
| 207 | }, |
| 208 | async callSite(caller, site) { |
| 209 | if (!site.line || sites >= maxSites || !supportsBranchGuards(caller.language)) return null; |
| 210 | const file = resolve(caller); |
nothing calls this directly
no test coverage detected