Skip to content

Commit ab60c40

Browse files
update
1 parent 9d65db2 commit ab60c40

File tree

40 files changed

+534
-1036
lines changed

40 files changed

+534
-1036
lines changed

crates/djls-template-ast/src/snapshots/djls_template_ast__parser__tests__comments__parse_comments.snap

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,15 @@ source: crates/djls-template-ast/src/parser.rs
33
expression: ast
44
---
55
nodes:
6-
- Text: "<!-- HTML comment -->"
7-
- Comment: Django comment
6+
- Text:
7+
content: "<!-- HTML comment -->"
8+
span:
9+
start: 0
10+
length: 21
11+
- Comment:
12+
content: Django comment
13+
span:
14+
start: 21
15+
length: 18
16+
line_offsets: []
817
errors: []

crates/djls-template-ast/src/snapshots/djls_template_ast__parser__tests__comments__parse_comments.snap.new

Lines changed: 0 additions & 19 deletions
This file was deleted.

crates/djls-template-ast/src/snapshots/djls_template_ast__parser__tests__django__parse_complex_if_elif.snap

Lines changed: 40 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@ nodes:
1212
- ">"
1313
- "0"
1414
children:
15-
- Text: Positive
15+
- Text:
16+
content: Positive
17+
span:
18+
start: 14
19+
length: 8
1620
- Block:
1721
block_type: Branch
1822
name: elif
@@ -21,16 +25,49 @@ nodes:
2125
- "<"
2226
- "0"
2327
children:
24-
- Text: Negative
28+
- Text:
29+
content: Negative
30+
span:
31+
start: 38
32+
length: 8
33+
span:
34+
start: 0
35+
length: 8
36+
tag_span:
37+
start: 0
38+
length: 8
2539
- Block:
2640
block_type: Branch
2741
name: else
2842
bits: []
2943
children:
30-
- Text: Zero
44+
- Text:
45+
content: Zero
46+
span:
47+
start: 56
48+
length: 4
49+
span:
50+
start: 0
51+
length: 8
52+
tag_span:
53+
start: 0
54+
length: 8
3155
- Block:
3256
block_type: Closing
3357
name: endif
3458
bits: []
3559
children: ~
60+
span:
61+
start: 60
62+
length: 5
63+
tag_span:
64+
start: 0
65+
length: 8
66+
span:
67+
start: 0
68+
length: 65
69+
tag_span:
70+
start: 0
71+
length: 8
72+
line_offsets: []
3673
errors: []

crates/djls-template-ast/src/snapshots/djls_template_ast__parser__tests__django__parse_complex_if_elif.snap.new

Lines changed: 0 additions & 75 deletions
This file was deleted.

crates/djls-template-ast/src/snapshots/djls_template_ast__parser__tests__django__parse_django_for_block.snap

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,41 @@ nodes:
1616
bits:
1717
- item
1818
filters: []
19+
span:
20+
start: 23
21+
length: 4
1922
- Block:
2023
block_type: Branch
2124
name: empty
2225
bits: []
2326
children:
24-
- Text: No items
27+
- Text:
28+
content: No items
29+
span:
30+
start: 44
31+
length: 8
32+
span:
33+
start: 0
34+
length: 17
35+
tag_span:
36+
start: 0
37+
length: 17
2538
- Block:
2639
block_type: Closing
2740
name: endfor
2841
bits: []
2942
children: ~
43+
span:
44+
start: 52
45+
length: 6
46+
tag_span:
47+
start: 0
48+
length: 17
49+
span:
50+
start: 0
51+
length: 58
52+
tag_span:
53+
start: 0
54+
length: 17
55+
line_offsets: []
3056
errors: []

crates/djls-template-ast/src/snapshots/djls_template_ast__parser__tests__django__parse_django_for_block.snap.new

Lines changed: 0 additions & 58 deletions
This file was deleted.

crates/djls-template-ast/src/snapshots/djls_template_ast__parser__tests__django__parse_django_if_block.snap

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,27 @@ nodes:
1010
- if
1111
- user.is_authenticated
1212
children:
13-
- Text: Welcome
13+
- Text:
14+
content: Welcome
15+
span:
16+
start: 30
17+
length: 7
1418
- Block:
1519
block_type: Closing
1620
name: endif
1721
bits: []
1822
children: ~
23+
span:
24+
start: 37
25+
length: 5
26+
tag_span:
27+
start: 0
28+
length: 24
29+
span:
30+
start: 0
31+
length: 42
32+
tag_span:
33+
start: 0
34+
length: 24
35+
line_offsets: []
1936
errors: []

crates/djls-template-ast/src/snapshots/djls_template_ast__parser__tests__django__parse_django_if_block.snap.new

Lines changed: 0 additions & 38 deletions
This file was deleted.

crates/djls-template-ast/src/snapshots/djls_template_ast__parser__tests__django__parse_django_variable.snap

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,11 @@ nodes:
1010
filters:
1111
- name: title
1212
arguments: []
13+
span:
14+
start: 10
15+
length: 5
16+
span:
17+
start: 0
18+
length: 15
19+
line_offsets: []
1320
errors: []

crates/djls-template-ast/src/snapshots/djls_template_ast__parser__tests__django__parse_django_variable.snap.new

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)