105 lines
2.4 KiB
Text
105 lines
2.4 KiB
Text
---
|
|
source: tests/file_tests.rs
|
|
expression: emit
|
|
info:
|
|
input: "{{= _name }}\n{{= a_name }}\n{{= name }}\n{{= _name1 }}\n{{= _namE }}\n{{= name1 }}"
|
|
context:
|
|
a_name: Foo
|
|
_name: Foo
|
|
_name1: Foo
|
|
_namE: Foo
|
|
name1: Foo
|
|
name: Foo
|
|
---
|
|
VMInstructions {
|
|
labels: {},
|
|
instructions: [
|
|
LoadFromContextToSlot {
|
|
name: "_name" (4..9),
|
|
slot: VariableSlot {
|
|
index: 0,
|
|
},
|
|
fail_on_not_found: true,
|
|
},
|
|
EmitFromSlot {
|
|
slot: VariableSlot {
|
|
index: 0,
|
|
},
|
|
},
|
|
AppendContent {
|
|
content: "\n" (12..13),
|
|
},
|
|
LoadFromContextToSlot {
|
|
name: "a_name" (17..23),
|
|
slot: VariableSlot {
|
|
index: 1,
|
|
},
|
|
fail_on_not_found: true,
|
|
},
|
|
EmitFromSlot {
|
|
slot: VariableSlot {
|
|
index: 1,
|
|
},
|
|
},
|
|
AppendContent {
|
|
content: "\n" (26..27),
|
|
},
|
|
LoadFromContextToSlot {
|
|
name: "name" (31..35),
|
|
slot: VariableSlot {
|
|
index: 2,
|
|
},
|
|
fail_on_not_found: true,
|
|
},
|
|
EmitFromSlot {
|
|
slot: VariableSlot {
|
|
index: 2,
|
|
},
|
|
},
|
|
AppendContent {
|
|
content: "\n" (38..39),
|
|
},
|
|
LoadFromContextToSlot {
|
|
name: "_name1" (43..49),
|
|
slot: VariableSlot {
|
|
index: 3,
|
|
},
|
|
fail_on_not_found: true,
|
|
},
|
|
EmitFromSlot {
|
|
slot: VariableSlot {
|
|
index: 3,
|
|
},
|
|
},
|
|
AppendContent {
|
|
content: "\n" (52..53),
|
|
},
|
|
LoadFromContextToSlot {
|
|
name: "_namE" (57..62),
|
|
slot: VariableSlot {
|
|
index: 4,
|
|
},
|
|
fail_on_not_found: true,
|
|
},
|
|
EmitFromSlot {
|
|
slot: VariableSlot {
|
|
index: 4,
|
|
},
|
|
},
|
|
AppendContent {
|
|
content: "\n" (65..66),
|
|
},
|
|
LoadFromContextToSlot {
|
|
name: "name1" (70..75),
|
|
slot: VariableSlot {
|
|
index: 5,
|
|
},
|
|
fail_on_not_found: true,
|
|
},
|
|
EmitFromSlot {
|
|
slot: VariableSlot {
|
|
index: 5,
|
|
},
|
|
},
|
|
],
|
|
}
|