leo/tests/expectations/parser/functions/annotated_context.out
2022-09-06 12:14:37 -07:00

88 lines
2.2 KiB
Plaintext

---
namespace: Parse
expectation: Pass
outputs:
- name: ""
network: ""
expected_input: []
imports: {}
circuits: {}
mappings: {}
functions:
"{\"name\":\"f\",\"span\":\"{\\\"lo\\\":20,\\\"hi\\\":21}\"}":
annotations:
- identifier: "{\"name\":\"context\",\"span\":\"{\\\"lo\\\":3,\\\"hi\\\":10}\"}"
span:
lo: 2
hi: 10
identifier: "{\"name\":\"f\",\"span\":\"{\\\"lo\\\":20,\\\"hi\\\":21}\"}"
input: []
output:
- mode: None
type_:
Integer: U8
span:
lo: 27
hi: 29
output_type:
Integer: U8
block:
statements:
- Return:
expression:
Literal:
Integer:
- U8
- "1"
- span:
lo: 43
hi: 46
span:
lo: 36
hi: 46
span:
lo: 30
hi: 49
finalize: ~
span:
lo: 11
hi: 49
"{\"name\":\"g\",\"span\":\"{\\\"lo\\\":89,\\\"hi\\\":90}\"}":
annotations:
- identifier: "{\"name\":\"context\",\"span\":\"{\\\"lo\\\":52,\\\"hi\\\":59}\"}"
span:
lo: 51
hi: 59
identifier: "{\"name\":\"g\",\"span\":\"{\\\"lo\\\":89,\\\"hi\\\":90}\"}"
input: []
output:
- mode: None
type_:
Integer: U8
span:
lo: 96
hi: 98
output_type:
Integer: U8
block:
statements:
- Return:
expression:
Literal:
Integer:
- U8
- "2"
- span:
lo: 112
hi: 115
span:
lo: 105
hi: 115
span:
lo: 99
hi: 118
finalize: ~
span:
lo: 80
hi: 118