Skip to main content

Crate oparry_parser

Crate oparry_parser 

Source
Expand description

Multi-language parser for Parry

Structs§

CompleteJavaScriptAst
JavaScript AST with parsed results
CompleteJavaScriptParser
JavaScript/TypeScript parser
ComponentInfo
Information about a JSX component
GenericParser
Generic parser that just stores the source as-is
HookInfo
Information about a React hook usage
ImportInfo
Information about an import declaration
ParseResults
Parse results containing all extracted information
RustAst
Rust AST
RustParser
Rust parser
SimpleJavaScriptParser
JavaScript/TypeScript parser

Enums§

ExportInfo
Information about an export
ImportSpecifierInfo
Information about an import specifier
Language
Language detection
ParsedCode
Parsed code representation

Traits§

Parser
Parser trait

Functions§

is_component_name
Check if name is a component name (PascalCase)
parser_for_language
Get parser for language
parser_for_path
Get parser for file path