Skip to main content

Module conversion

Module conversion 

Source
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