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