( rootNode: unknown, command: string, )
| 496 | * This data must be extracted before tree.delete() is called. |
| 497 | */ |
| 498 | export function analyzeCommand( |
| 499 | rootNode: unknown, |
| 500 | command: string, |
| 501 | ): TreeSitterAnalysis { |
| 502 | return { |
| 503 | quoteContext: extractQuoteContext(rootNode, command), |
| 504 | compoundStructure: extractCompoundStructure(rootNode, command), |
| 505 | hasActualOperatorNodes: hasActualOperatorNodes(rootNode), |
| 506 | dangerousPatterns: extractDangerousPatterns(rootNode), |
| 507 | } |
| 508 | } |
no test coverage detected