Expand description
§Conversion Utilities
Utilities for converting between service layer types and ast-engine types. These functions bridge the ast-grep functionality with the service layer abstractions while preserving all ast-grep power.
Functions§
- compute_
content_ fingerprint - Compute content fingerprint for deduplication using blake3
- create_
symbol_ info - Helper for creating SymbolInfo with common defaults
- modifier_
to_ visibility - Convert visibility modifiers to Visibility enum
- node_
kind_ to_ symbol_ kind - Convert common node kinds to SymbolKind
- node_
match_ to_ code_ match - Convert ast-grep NodeMatch to service layer CodeMatch
- position_
to_ range - Convert ast-grep Position to service layer Range
- root_
to_ parsed_ document - Create ParsedDocument from ast-grep Root