Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions templates/Rust.stg
Original file line number Diff line number Diff line change
Expand Up @@ -962,8 +962,9 @@ fn <t.name>(&self) -> Option\<Rc\<TerminalNode\<'input,<parser.name>ContextType>
ContextTokenListGetterDecl(t) ::=<<
/// Retrieves all `TerminalNode`s corresponding to token <t.name> in current rule
fn <t.name>_all(&self) -> Vec\<Rc\<TerminalNode\<'input,<parser.name>ContextType>\>> where Self:Sized{
self.children_of_type()
}>>
self.get_tokens(<t.name>)
}
>>
ContextTokenListIndexedGetterDecl(t) ::= <<
/// Retrieves 'i's TerminalNode corresponding to token <t.name>, starting from 0.
/// Returns `None` if number of children corresponding to token <t.name> is less or equal than `i`.
Expand Down