(call: ts.CallExpression, sf: ts.SourceFile)
| 252 | } |
| 253 | |
| 254 | function commandLabel(call: ts.CallExpression, sf: ts.SourceFile): string { |
| 255 | const first = call.arguments[0]; |
| 256 | if (!first) return ''; |
| 257 | if (ts.isStringLiteralLike(first)) return `'${first.text}'`; |
| 258 | return first.getText(sf); |
| 259 | } |
| 260 | |
| 261 | /** Every spawn in one file, and each one that isn't provably hidden. */ |
| 262 | function scanSource(rel: string, text: string): { seen: number; offenders: string[] } { |