MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / analyzeCommand

Function analyzeCommand

source code/utils/bash/treeSitterAnalysis.ts:498–508  ·  view source on GitHub ↗
(
  rootNode: unknown,
  command: string,
)

Source from the content-addressed store, hash-verified

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

Callers 1

Calls 4

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

Tested by

no test coverage detected