MCPcopy Create free account
hub / github.com/arialang/aria / from_parse_tree

Method from_parse_tree

parser-lib/src/ast/nodes/continue_statement.rs:12–18  ·  view source on GitHub ↗
(p: pest::iterators::Pair<'_, Rule>, source: &SourceBuffer)

Source from the content-addressed store, hash-verified

10
11impl Derive for ContinueStatement {
12 fn from_parse_tree(p: pest::iterators::Pair<'_, Rule>, source: &SourceBuffer) -> Self {
13 assert!(p.as_rule() == Rule::continue_stmt);
14 let loc = From::from(&p.as_span());
15 Self {
16 loc: source.pointer(loc),
17 }
18 }
19}
20
21impl PrettyPrintable for ContinueStatement {

Callers

nothing calls this directly

Calls 1

pointerMethod · 0.80

Tested by

no test coverage detected