Also emit TokenKind in debug
Signed-off-by: Marcel Müller <neikos@neikos.email>
This commit is contained in:
parent
13eb4ca1d0
commit
08b480705b
14 changed files with 205 additions and 205 deletions
|
|
@ -456,7 +456,7 @@ mod tests {
|
|||
TemplateAst {
|
||||
root: [
|
||||
StaticContent(
|
||||
"Hello World" (0..11),
|
||||
[Content]"Hello World" (0..11),
|
||||
),
|
||||
],
|
||||
}
|
||||
|
|
@ -475,14 +475,14 @@ mod tests {
|
|||
TemplateAst {
|
||||
root: [
|
||||
StaticContent(
|
||||
"Hello" (0..5),
|
||||
[Content]"Hello" (0..5),
|
||||
),
|
||||
Interpolation {
|
||||
prev_whitespace_content: Some(
|
||||
" " (5..6),
|
||||
[Whitespace]" " (5..6),
|
||||
),
|
||||
expression: VariableAccess(
|
||||
"world" (10..15),
|
||||
[Ident]"world" (10..15),
|
||||
),
|
||||
post_whitespace_content: None,
|
||||
},
|
||||
|
|
@ -508,20 +508,20 @@ mod tests {
|
|||
if_block: Block {
|
||||
prev_whitespace_content: None,
|
||||
expression: VariableAccess(
|
||||
"foo" (6..9),
|
||||
[Ident]"foo" (6..9),
|
||||
),
|
||||
post_whitespace_content: Some(
|
||||
" " (12..13),
|
||||
[Whitespace]" " (12..13),
|
||||
),
|
||||
},
|
||||
content: [
|
||||
StaticContent(
|
||||
"Hiii" (13..17),
|
||||
[Content]"Hiii" (13..17),
|
||||
),
|
||||
],
|
||||
end_block: Block {
|
||||
prev_whitespace_content: Some(
|
||||
" " (17..18),
|
||||
[Whitespace]" " (17..18),
|
||||
),
|
||||
expression: EndBlock,
|
||||
post_whitespace_content: None,
|
||||
|
|
@ -604,11 +604,11 @@ mod tests {
|
|||
insta::assert_debug_snapshot!(result, @r#"
|
||||
(
|
||||
[
|
||||
"{{" (0..2),
|
||||
" " (2..3),
|
||||
"foo" (3..6),
|
||||
" " (6..7),
|
||||
"}}" (7..9),
|
||||
[LeftDelim]"{{" (0..2),
|
||||
[Whitespace]" " (2..3),
|
||||
[Ident]"foo" (3..6),
|
||||
[Whitespace]" " (6..7),
|
||||
[RightDelim]"}}" (7..9),
|
||||
],
|
||||
None,
|
||||
[
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue