Lines Matching refs:node
1 //! Parsing interface for parsing a token stream into a syntax tree node.
4 //! and produce a [`Result<T>`] where `T` is some syntax tree node. Underlying
95 //! obvious default way. These functions can return any syntax tree node that
458 /// Parses a syntax tree node of type `T`, advancing the position of our
464 /// Calls the given parser function to parse a syntax tree node of type `T`
1073 let (node, rest) = function(StepCursor {
1079 Ok(node)
1232 /// Parser that can parse Rust tokens into a particular syntax tree node.
1240 /// Parse a proc-macro2 token stream into the chosen syntax tree node.
1246 /// Parse tokens of source code into the chosen syntax tree node.
1256 /// Parse a string of Rust code into the chosen syntax tree node.
1294 let node = self(&state)?;
1299 Ok(node)
1309 let node = self(&state)?;
1314 Ok(node)
1324 /// An empty syntax tree node that consumes no tokens when parsed.