MCPcopy Create free account
hub / github.com/aspizu/goboscript / increment

Method increment

src/ast/stmt.rs:98–104  ·  view source on GitHub ↗
(name: Name)

Source from the content-addressed store, hash-verified

96 }
97
98 pub fn increment(name: Name) -> Self {
99 let span = name.span();
100 Self::ChangeVar {
101 name,
102 value: Box::new(Value::from(1.0).to_expr(span)),
103 }
104 }
105
106 pub fn decrement(name: Name) -> Self {
107 let span = name.span();

Callers

nothing calls this directly

Calls 3

newFunction · 0.85
to_exprMethod · 0.80
spanMethod · 0.45

Tested by

no test coverage detected