Add parsing of dot operator
Signed-off-by: Marcel Müller <neikos@neikos.email>
This commit is contained in:
parent
145d305c94
commit
a590839b21
2 changed files with 33 additions and 0 deletions
|
|
@ -0,0 +1,21 @@
|
|||
---
|
||||
source: src/parser/mod.rs
|
||||
expression: ast
|
||||
---
|
||||
TemplateAst {
|
||||
root: [
|
||||
Interpolation {
|
||||
prev_whitespace_content: None,
|
||||
expression: Operation {
|
||||
op: Dot,
|
||||
lhs: ConditionalAccess(
|
||||
[Ident]"foo" (4..7),
|
||||
),
|
||||
rhs: VariableAccess(
|
||||
[Ident]"bar" (9..12),
|
||||
),
|
||||
},
|
||||
post_whitespace_content: None,
|
||||
},
|
||||
],
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue