Crate biome_js_syntax
source ·Expand description
A crate for generated Syntax node definitions and utility macros. Both rome_js_lexer and biome_js_parser rely on these definitions, therefore they are wrapped in this crate to prevent cyclic dependencies
Re-exports§
- pub use expr_ext::*;
- pub use file_source::*;
- pub use function_ext::*;
- pub use identifier_ext::*;
- pub use import_ext::*;
- pub use modifier_ext::*;
- pub use stmt_ext::*;
Modules§
- Extensions for things which are not easily generated in ast expr nodes
- Generated file, do not edit by hand, seextask/codegen
- Generated file, do not edit by hand, seextask/codegen
- JS Number parsing.
- Extended AST node definitions for statements which are unique and special enough to generate code for manually
Macros§
- Utility macro for creating a SyntaxKind through simple macro syntax
- Reconstruct an AstNode from a SyntaxNode
Structs§
- A range in text, represented as a pair ofTextSize.
- A measure of text length. Also, equivalently, an index into text.
- Reference to the text of a SyntaxToken without having to worry about the lifetime of&str.
Enums§
- The kind of syntax node, e.g.IDENT,FUNCTION_KW, orFOR_STMT.
- There might be zero, one or two leaves at a given offset.
- WalkEventdescribes tree walking process.
Traits§
- Primitives with a textual length that can be passed toTextSize::of.
Functions§
- Similar to JsSyntaxToken::text_trimmed(), but removes the quotes of string literals.