55 lines
1.7 KiB
Text
55 lines
1.7 KiB
Text
---
|
|
source: src/ast/mod.rs
|
|
expression: ast
|
|
---
|
|
TemplateAst {
|
|
root: [
|
|
ConditionalChain {
|
|
chain: [
|
|
Block {
|
|
prev_whitespace_content: None,
|
|
expression: IfConditional {
|
|
expression: VariableAccess(
|
|
[Ident]"foo" (6..9),
|
|
),
|
|
},
|
|
post_whitespace_content: Some(
|
|
[Whitespace]" " (12..13),
|
|
),
|
|
},
|
|
ConditionalContent {
|
|
content: [
|
|
StaticContent(
|
|
[Content]"foo" (13..16),
|
|
),
|
|
],
|
|
},
|
|
Block {
|
|
prev_whitespace_content: Some(
|
|
[Whitespace]" " (16..17),
|
|
),
|
|
expression: ElseConditional {
|
|
expression: None,
|
|
},
|
|
post_whitespace_content: Some(
|
|
[Whitespace]" " (27..28),
|
|
),
|
|
},
|
|
ConditionalContent {
|
|
content: [
|
|
StaticContent(
|
|
[Content]"bar" (28..31),
|
|
),
|
|
],
|
|
},
|
|
Block {
|
|
prev_whitespace_content: Some(
|
|
[Whitespace]" " (31..32),
|
|
),
|
|
expression: EndBlock,
|
|
post_whitespace_content: None,
|
|
},
|
|
],
|
|
},
|
|
],
|
|
}
|