Skip to content
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions packages/bolt/tests/snapshots/bolt__parse_166__0.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ item replace block ~ ~2 ~ container.26 with minecraft:spruce_sapling 4
<class 'mecha.ast.AstCommand'>
location: SourceLocation(pos=0, lineno=1, colno=1)
end_location: SourceLocation(pos=70, lineno=1, colno=71)
identifier: 'item:replace:block:pos:slot:with:item:count'
identifier: 'item:replace:block:target:slots:with:item:count'
arguments:
<class 'mecha.ast.AstVector3'>
location: SourceLocation(pos=19, lineno=1, colno=20)
Expand All @@ -30,7 +30,7 @@ item replace block ~ ~2 ~ container.26 with minecraft:spruce_sapling 4
end_location: SourceLocation(pos=25, lineno=1, colno=26)
type: 'relative'
value: 0
<class 'mecha.ast.AstItemSlot'>
<class 'mecha.ast.AstItemSlots'>
location: SourceLocation(pos=26, lineno=1, colno=27)
end_location: SourceLocation(pos=38, lineno=1, colno=39)
value: 'container.26'
Expand Down
6 changes: 3 additions & 3 deletions packages/bolt/tests/snapshots/bolt__parse_167__0.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ item replace entity @s weapon.offhand from entity @s weapon.mainhand
<class 'mecha.ast.AstCommand'>
location: SourceLocation(pos=17, lineno=2, colno=1)
end_location: SourceLocation(pos=85, lineno=2, colno=69)
identifier: 'item:replace:entity:targets:slot:from:entity:source:sourceSlot'
identifier: 'item:replace:entity:target:slots:from:entity:source:sourceSlots'
arguments:
<class 'mecha.ast.AstSelector'>
location: SourceLocation(pos=37, lineno=2, colno=21)
end_location: SourceLocation(pos=39, lineno=2, colno=23)
variable: 's'
arguments:
<empty>
<class 'mecha.ast.AstItemSlot'>
<class 'mecha.ast.AstItemSlots'>
location: SourceLocation(pos=40, lineno=2, colno=24)
end_location: SourceLocation(pos=54, lineno=2, colno=38)
value: 'weapon.offhand'
Expand All @@ -47,7 +47,7 @@ item replace entity @s weapon.offhand from entity @s weapon.mainhand
variable: 's'
arguments:
<empty>
<class 'mecha.ast.AstItemSlot'>
<class 'mecha.ast.AstItemSlots'>
location: SourceLocation(pos=70, lineno=2, colno=54)
end_location: SourceLocation(pos=85, lineno=2, colno=69)
value: 'weapon.mainhand'
6 changes: 3 additions & 3 deletions packages/bolt/tests/snapshots/bolt__parse_167__1.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ _bolt_refs[0]
<class 'mecha.ast.AstCommand'>
location: SourceLocation(pos=17, lineno=2, colno=1)
end_location: SourceLocation(pos=85, lineno=2, colno=69)
identifier: 'item:replace:entity:targets:slot:from:entity:source:sourceSlot'
identifier: 'item:replace:entity:target:slots:from:entity:source:sourceSlots'
arguments:
<class 'mecha.ast.AstSelector'>
<class 'mecha.ast.AstItemSlot'>
<class 'mecha.ast.AstItemSlots'>
<class 'mecha.ast.AstSelector'>
<class 'mecha.ast.AstItemSlot'>
<class 'mecha.ast.AstItemSlots'>
_bolt_refs[1]
<class 'mecha.ast.AstRoot'>
location: SourceLocation(pos=0, lineno=1, colno=1)
Expand Down
6 changes: 3 additions & 3 deletions packages/bolt/tests/snapshots/bolt__parse_168__0.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ item replace entity @s my_weapon.offhand from entity @s my_weapon.mainhand
<class 'mecha.ast.AstCommand'>
location: SourceLocation(pos=69, lineno=2, colno=1)
end_location: SourceLocation(pos=143, lineno=2, colno=75)
identifier: 'item:replace:entity:targets:slot:from:entity:source:sourceSlot'
identifier: 'item:replace:entity:target:slots:from:entity:source:sourceSlots'
arguments:
<class 'mecha.ast.AstSelector'>
location: SourceLocation(pos=89, lineno=2, colno=21)
Expand All @@ -68,7 +68,7 @@ item replace entity @s my_weapon.offhand from entity @s my_weapon.mainhand
end_location: SourceLocation(pos=109, lineno=2, colno=41)
prefix: None
unpack: None
converter: 'item_slot'
converter: 'item_slots'
value:
<class 'bolt.ast.AstAttribute'>
location: SourceLocation(pos=92, lineno=2, colno=24)
Expand All @@ -90,7 +90,7 @@ item replace entity @s my_weapon.offhand from entity @s my_weapon.mainhand
end_location: SourceLocation(pos=143, lineno=2, colno=75)
prefix: None
unpack: None
converter: 'item_slot'
converter: 'item_slots'
value:
<class 'bolt.ast.AstAttribute'>
location: SourceLocation(pos=125, lineno=2, colno=57)
Expand Down
12 changes: 6 additions & 6 deletions packages/bolt/tests/snapshots/bolt__parse_168__1.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
_bolt_lineno = [1, 13], [1, 2]
_bolt_helper_get_attribute_handler = _bolt_runtime.helpers['get_attribute_handler']
_bolt_helper_interpolate_item_slot = _bolt_runtime.helpers['interpolate_item_slot']
_bolt_helper_interpolate_item_slots = _bolt_runtime.helpers['interpolate_item_slots']
_bolt_helper_children = _bolt_runtime.helpers['children']
_bolt_helper_replace = _bolt_runtime.helpers['replace']
with _bolt_runtime.scope() as __bolt_var7:
Expand All @@ -12,10 +12,10 @@ with _bolt_runtime.scope() as __bolt_var7:
my_weapon = __bolt_var4
__bolt_var5 = my_weapon
__bolt_var5 = _bolt_helper_get_attribute_handler(__bolt_var5)["offhand"]
__bolt_var5 = _bolt_helper_interpolate_item_slot(__bolt_var5, _bolt_refs[0])
__bolt_var5 = _bolt_helper_interpolate_item_slots(__bolt_var5, _bolt_refs[0])
__bolt_var6 = my_weapon
__bolt_var6 = _bolt_helper_get_attribute_handler(__bolt_var6)["mainhand"]
__bolt_var6 = _bolt_helper_interpolate_item_slot(__bolt_var6, _bolt_refs[2])
__bolt_var6 = _bolt_helper_interpolate_item_slots(__bolt_var6, _bolt_refs[2])
_bolt_runtime.commands.append(_bolt_helper_replace(_bolt_refs[4], arguments=_bolt_helper_children([_bolt_refs[1], __bolt_var5, _bolt_refs[3], __bolt_var6])))
__bolt_var8 = _bolt_helper_replace(_bolt_refs[5], commands=_bolt_helper_children(__bolt_var7))
---
Expand All @@ -27,7 +27,7 @@ _bolt_refs[0]
end_location: SourceLocation(pos=109, lineno=2, colno=41)
prefix: None
unpack: None
converter: 'item_slot'
converter: 'item_slots'
value:
<class 'bolt.ast.AstAttribute'>
_bolt_refs[1]
Expand All @@ -43,7 +43,7 @@ _bolt_refs[2]
end_location: SourceLocation(pos=143, lineno=2, colno=75)
prefix: None
unpack: None
converter: 'item_slot'
converter: 'item_slots'
value:
<class 'bolt.ast.AstAttribute'>
_bolt_refs[3]
Expand All @@ -57,7 +57,7 @@ _bolt_refs[4]
<class 'mecha.ast.AstCommand'>
location: SourceLocation(pos=69, lineno=2, colno=1)
end_location: SourceLocation(pos=143, lineno=2, colno=75)
identifier: 'item:replace:entity:targets:slot:from:entity:source:sourceSlot'
identifier: 'item:replace:entity:target:slots:from:entity:source:sourceSlots'
arguments:
<class 'mecha.ast.AstSelector'>
<class 'bolt.ast.AstInterpolation'>
Expand Down
2 changes: 1 addition & 1 deletion packages/bolt/tests/snapshots/bolt__parse_230__0.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
macro foo:
pass
#>ERROR Expected colon, literal 'advancement', literal 'align', literal 'anchored', literal 'append', literal 'as' or 207 other tokens but got literal 'foo'.
#>ERROR Expected colon, literal 'advancement', literal 'advancement_tag', literal 'align', literal 'anchored', literal 'append' or 256 other tokens but got literal 'foo'.
# line 3, column 7
# 2 | pass
# 3 | as @p foo
Expand Down
2 changes: 1 addition & 1 deletion packages/bolt/tests/snapshots/bolt__parse_305__0.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#>ERROR Expected literal 'advancement', literal 'align', literal 'anchored', literal 'append', literal 'as', literal 'at' or 224 other tokens but got literal 'foo'.
#>ERROR Expected literal 'advancement', literal 'advancement_tag', literal 'align', literal 'anchored', literal 'append', literal 'as' or 273 other tokens but got literal 'foo'.
# line 1, column 11
# 1 | as @a run foo = "bar"
# : ^^^
Expand Down
2 changes: 1 addition & 1 deletion packages/bolt/tests/snapshots/bolt__parse_352__0.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
macro hello thing=subcommand:
pass
#>ERROR Expected assignment, literal 'advancement', literal 'align', literal 'anchored', literal 'append', literal 'as' or 226 other tokens but got literal 'print(123)'.
#>ERROR Expected assignment, literal 'advancement', literal 'advancement_tag', literal 'align', literal 'anchored', literal 'append' or 275 other tokens but got literal 'print(123)'.
# line 3, column 7
# 2 | pass
# 3 | hello print(123)
Expand Down
2 changes: 1 addition & 1 deletion packages/bolt/tests/snapshots/bolt__parse_358__0.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#>ERROR Expected literal 'advancement', literal 'align', literal 'anchored', literal 'append', literal 'as', literal 'at' or 224 other tokens but got literal '"not'.
#>ERROR Expected literal 'advancement', literal 'advancement_tag', literal 'align', literal 'anchored', literal 'append', literal 'as' or 273 other tokens but got literal '"not'.
# line 1, column 13
# 1 | execute run "not docstring"
# : ^^^^
Expand Down
2 changes: 1 addition & 1 deletion packages/bolt/tests/snapshots/bolt__parse_38__0.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#>ERROR Expected bracket '[', curly '{', docstring, ellipsis, false, identifier or 17 other tokens but reached end of file.
#>ERROR Expected bracket '[', curly '{', docstring, ellipsis, false, identifier or 18 other tokens but reached end of file.
# line 1, column 3
# 1 | if
if
2 changes: 1 addition & 1 deletion packages/bolt/tests/snapshots/bolt__parse_48__0.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
1 * 2
#>ERROR Expected bracket '[', curly '{', decorator, docstring, ellipsis, false or 237 other tokens but got literal '*'.
#>ERROR Expected bracket '[', curly '{', decorator, docstring, ellipsis, false or 286 other tokens but got literal '*'.
# line 2, column 1
# 1 | 1 * 2
# 2 | * 3
Expand Down
2 changes: 1 addition & 1 deletion packages/bolt/tests/snapshots/bolt__parse_98__0.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#>ERROR Expected literal 'biome', literal 'block', literal 'blocks', literal 'data', literal 'dimension', literal 'entity' or 6 other tokens but got literal '"foo"'.
#>ERROR Expected literal 'biome', literal 'block', literal 'blocks', literal 'data', literal 'dimension', literal 'entity' or 7 other tokens but got literal '"foo"'.
# line 1, column 10
# 1 | at @s if "foo" == "bar":
# : ^^^^^
Expand Down
2 changes: 1 addition & 1 deletion packages/bolt/tests/snapshots/bolt__parse_99__0.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#>ERROR Expected colon, literal 'advancement', literal 'align', literal 'anchored', literal 'append', literal 'as' or 207 other tokens but got literal 'for'.
#>ERROR Expected colon, literal 'advancement', literal 'advancement_tag', literal 'align', literal 'anchored', literal 'append' or 256 other tokens but got literal 'for'.
# line 1, column 7
# 1 | at @s for i in "foo":
# : ^^^
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
{
"pack": {
"min_format": [
107,
1
121,
0
],
"max_format": [
107,
1
121,
0
],
"description": ""
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
{
"pack": {
"min_format": [
88,
0
97,
1
],
"max_format": [
88,
0
97,
1
],
"description": ""
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
{
"pack": {
"min_format": [
107,
1
121,
0
],
"max_format": [
107,
1
121,
0
],
"description": ""
}
Expand Down Expand Up @@ -691,12 +691,12 @@ say json loaded!
{
"pack": {
"min_format": [
88,
0
97,
1
],
"max_format": [
88,
0
97,
1
],
"description": ""
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
{
"pack": {
"min_format": [
107,
1
121,
0
],
"max_format": [
107,
1
121,
0
],
"description": ""
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
{
"pack": {
"min_format": [
107,
1
121,
0
],
"max_format": [
107,
1
121,
0
],
"description": ""
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
{
"pack": {
"min_format": [
107,
1
121,
0
],
"max_format": [
107,
1
121,
0
],
"description": ""
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
{
"pack": {
"min_format": [
107,
1
121,
0
],
"max_format": [
107,
1
121,
0
],
"description": ""
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
{
"pack": {
"min_format": [
107,
1
121,
0
],
"max_format": [
107,
1
121,
0
],
"description": ""
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
{
"pack": {
"min_format": [
107,
1
121,
0
],
"max_format": [
107,
1
121,
0
],
"description": ""
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
{
"pack": {
"min_format": [
107,
1
121,
0
],
"max_format": [
107,
1
121,
0
],
"description": ""
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
{
"pack": {
"min_format": [
107,
1
121,
0
],
"max_format": [
107,
1
121,
0
],
"description": ""
}
Expand Down
Loading