nomo/src/ast/snapshots/nomo__ast__tests__check_function_call.snap
Marcel Müller 52a63a7066 Add emitting of function calls
Signed-off-by: Marcel Müller <neikos@neikos.email>
2026-03-14 10:52:29 +01:00

49 lines
1.6 KiB
Text

---
source: src/ast/mod.rs
expression: ast
---
TemplateAst {
root: [
Interpolation {
prev_whitespace_content: None,
expression: FunctionCall {
name: [Ident]"foo" (4..7),
args: [
Operation {
op: Times,
lhs: Literal {
source: [Literal(Integer(2))]"2" (8..9),
value: Integer {
value: 2,
},
},
rhs: Literal {
source: [Literal(Integer(3))]"3" (12..13),
value: Integer {
value: 3,
},
},
},
FunctionCall {
name: [Ident]"bar" (15..18),
args: [
Operation {
op: Plus,
lhs: Literal {
source: [Literal(Integer(2))]"2" (19..20),
value: Integer {
value: 2,
},
},
rhs: VariableAccess(
[Ident]"baz" (23..26),
),
},
],
},
],
},
post_whitespace_content: None,
},
],
}