MCPcopy Index your code
hub / github.com/claude-code-best/claude-code / analyzeCommand

Function analyzeCommand

src/utils/bash/treeSitterAnalysis.ts:496–506  ·  view source on GitHub ↗
(
  rootNode: unknown,
  command: string,
)

Source from the content-addressed store, hash-verified

494 * This data must be extracted before tree.delete() is called.
495 */
496export 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}

Callers 1

Calls 4

extractQuoteContextFunction · 0.85
extractCompoundStructureFunction · 0.85
hasActualOperatorNodesFunction · 0.85
extractDangerousPatternsFunction · 0.85

Tested by

no test coverage detected