MCPcopy Create free account
hub / github.com/Glyphack/enderpy / from

Method from

parser/src/ast.rs:50–52  ·  view source on GitHub ↗
(val: Node)

Source from the content-addressed store, hash-verified

48
49impl From<Node> for SourceSpan {
50 fn from(val: Node) -> Self {
51 Self::new(SourceOffset::from(val.start as usize), val.len() as usize)
52 }
53}
54
55// The following structs are used to represent the AST

Callers

nothing calls this directly

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected