Skip to main content

entry_type

Function entry_type 

Source
pub fn entry_type(entry: &SyntaxNode) -> Option<String>
Expand description

The entry type of an ENTRY / STRING_ENTRY / … node — the word following @ (e.g. "article", "string"). None for a malformed entry with no ENTRY_TYPE child. Case is preserved; callers normalize.