Skip to main content

dummy_token

Function dummy_token 

Source
pub fn dummy_token(literal: &str, token_type: TokenType) -> Token
Expand description

Helper to create a dummy token for internal AST construction. Use dummy_token_clone() when literal doesn’t matter to avoid allocation.