Skip to main content

Module typescript

Module typescript 

Source
Expand description

Tree-sitter based JavaScript and TypeScript step-definition extraction.

Re-exports§

pub use crate::source_adapter::Extraction;
pub use crate::source_adapter::ExtractionDiagnostic;
pub use crate::source_adapter::ExtractionDiagnosticLevel;
pub use crate::source_adapter::SourceFile;
pub use crate::source_adapter::SourceLanguage;

Functions§

extract
Extracts step definitions from in-memory source using file for syntax and locations.
extract_detailed
Extracts definitions and localized diagnostics from in-memory source.
extract_file
Reads and extracts step definitions from a discovered JavaScript or TypeScript file.
extract_file_detailed
Reads a source file and returns definitions plus localized extraction diagnostics.
normalize_matcher
Canonicalizes matcher text for stable equivalence comparisons.