Skip to main content

validate_new_name

Function validate_new_name 

Source
pub fn validate_new_name(name: &str) -> Result<(), String>
Expand description

A new name must lex as exactly one identifier (keywords lex as their own token kinds, so they fail this check).