Skip to main content

expand_once_partial

Function expand_once_partial 

Source
pub fn expand_once_partial(token: Token) -> Result<bool>
Expand description

Expand token, just read, ONE level if read_x_token(Some(false), ..) would expand it, pushing the expansion back onto the input, and report whether it did. A reader that must look at every token an expansion yields before expanding it further (the case changer’s l3text checks) steps with this; a token it leaves alone is still the caller’s to handle (unread it for read_x_token to return, stub or resolve).