2022-11-29 02:33:01 +01:00
|
|
|
[
|
2022-12-01 13:55:04 +01:00
|
|
|
BracedNamespace {
|
2022-11-29 02:33:01 +01:00
|
|
|
name: None,
|
|
|
|
body: [
|
|
|
|
Function {
|
|
|
|
name: Identifier {
|
|
|
|
name: "globalFunc",
|
|
|
|
},
|
2022-12-04 16:12:23 +01:00
|
|
|
attributes: [],
|
2022-11-29 02:33:01 +01:00
|
|
|
params: [],
|
|
|
|
body: [],
|
|
|
|
return_type: None,
|
|
|
|
by_ref: false,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
2022-12-01 13:55:04 +01:00
|
|
|
BracedNamespace {
|
2022-11-29 02:33:01 +01:00
|
|
|
name: Some(
|
|
|
|
"foo",
|
|
|
|
),
|
|
|
|
body: [
|
|
|
|
Expression {
|
|
|
|
expr: Infix {
|
|
|
|
lhs: Variable {
|
|
|
|
name: "a",
|
|
|
|
},
|
|
|
|
op: Assign,
|
|
|
|
rhs: Closure {
|
|
|
|
params: [],
|
2022-12-04 16:12:23 +01:00
|
|
|
attributes: [],
|
2022-11-29 02:33:01 +01:00
|
|
|
uses: [],
|
|
|
|
return_type: None,
|
|
|
|
body: [],
|
|
|
|
static: false,
|
|
|
|
by_ref: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
Expression {
|
|
|
|
expr: Infix {
|
|
|
|
lhs: Variable {
|
|
|
|
name: "b",
|
|
|
|
},
|
|
|
|
op: Assign,
|
|
|
|
rhs: Closure {
|
|
|
|
params: [
|
|
|
|
Param {
|
|
|
|
name: Variable {
|
|
|
|
name: "b",
|
|
|
|
},
|
2022-12-04 16:12:23 +01:00
|
|
|
attributes: [],
|
2022-11-29 02:33:01 +01:00
|
|
|
type: None,
|
|
|
|
variadic: false,
|
|
|
|
default: None,
|
2022-11-30 01:43:37 +01:00
|
|
|
flags: [],
|
2022-11-29 02:33:01 +01:00
|
|
|
by_ref: true,
|
|
|
|
},
|
|
|
|
],
|
2022-12-04 16:12:23 +01:00
|
|
|
attributes: [],
|
2022-11-29 02:33:01 +01:00
|
|
|
uses: [],
|
|
|
|
return_type: None,
|
|
|
|
body: [],
|
|
|
|
static: false,
|
|
|
|
by_ref: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
Expression {
|
|
|
|
expr: Infix {
|
|
|
|
lhs: Variable {
|
|
|
|
name: "c",
|
|
|
|
},
|
|
|
|
op: Assign,
|
|
|
|
rhs: Closure {
|
|
|
|
params: [],
|
2022-12-04 16:12:23 +01:00
|
|
|
attributes: [],
|
2022-11-29 02:33:01 +01:00
|
|
|
uses: [],
|
|
|
|
return_type: None,
|
|
|
|
body: [],
|
|
|
|
static: false,
|
|
|
|
by_ref: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
Expression {
|
|
|
|
expr: Infix {
|
|
|
|
lhs: Variable {
|
|
|
|
name: "d",
|
|
|
|
},
|
|
|
|
op: Assign,
|
|
|
|
rhs: Closure {
|
|
|
|
params: [
|
|
|
|
Param {
|
|
|
|
name: Variable {
|
|
|
|
name: "b",
|
|
|
|
},
|
2022-12-04 16:12:23 +01:00
|
|
|
attributes: [],
|
2022-11-29 02:33:01 +01:00
|
|
|
type: None,
|
|
|
|
variadic: false,
|
|
|
|
default: None,
|
2022-11-30 01:43:37 +01:00
|
|
|
flags: [],
|
2022-11-29 02:33:01 +01:00
|
|
|
by_ref: true,
|
|
|
|
},
|
|
|
|
],
|
2022-12-04 16:12:23 +01:00
|
|
|
attributes: [],
|
2022-11-29 02:33:01 +01:00
|
|
|
uses: [],
|
|
|
|
return_type: None,
|
|
|
|
body: [
|
|
|
|
Return {
|
|
|
|
value: Some(
|
|
|
|
Variable {
|
|
|
|
name: "b",
|
|
|
|
},
|
|
|
|
),
|
|
|
|
},
|
|
|
|
],
|
|
|
|
static: false,
|
|
|
|
by_ref: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
Expression {
|
|
|
|
expr: Infix {
|
|
|
|
lhs: Variable {
|
|
|
|
name: "e",
|
|
|
|
},
|
|
|
|
op: Assign,
|
|
|
|
rhs: ArrowFunction {
|
|
|
|
params: [],
|
2022-12-04 16:12:23 +01:00
|
|
|
attributes: [],
|
2022-11-29 02:33:01 +01:00
|
|
|
return_type: None,
|
|
|
|
expr: Null,
|
|
|
|
by_ref: false,
|
|
|
|
static: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
Expression {
|
|
|
|
expr: Infix {
|
|
|
|
lhs: Variable {
|
|
|
|
name: "f",
|
|
|
|
},
|
|
|
|
op: Assign,
|
|
|
|
rhs: ArrowFunction {
|
|
|
|
params: [
|
|
|
|
Param {
|
|
|
|
name: Variable {
|
|
|
|
name: "b",
|
|
|
|
},
|
2022-12-04 16:12:23 +01:00
|
|
|
attributes: [],
|
2022-11-29 02:33:01 +01:00
|
|
|
type: None,
|
|
|
|
variadic: false,
|
|
|
|
default: None,
|
2022-11-30 01:43:37 +01:00
|
|
|
flags: [],
|
2022-11-29 02:33:01 +01:00
|
|
|
by_ref: true,
|
|
|
|
},
|
|
|
|
],
|
2022-12-04 16:12:23 +01:00
|
|
|
attributes: [],
|
2022-11-29 02:33:01 +01:00
|
|
|
return_type: None,
|
|
|
|
expr: Null,
|
|
|
|
by_ref: false,
|
|
|
|
static: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
Expression {
|
|
|
|
expr: Infix {
|
|
|
|
lhs: Variable {
|
|
|
|
name: "g",
|
|
|
|
},
|
|
|
|
op: Assign,
|
|
|
|
rhs: ArrowFunction {
|
|
|
|
params: [],
|
2022-12-04 16:12:23 +01:00
|
|
|
attributes: [],
|
2022-11-29 02:33:01 +01:00
|
|
|
return_type: None,
|
|
|
|
expr: Null,
|
|
|
|
by_ref: true,
|
|
|
|
static: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
Expression {
|
|
|
|
expr: Infix {
|
|
|
|
lhs: Variable {
|
|
|
|
name: "h",
|
|
|
|
},
|
|
|
|
op: Assign,
|
|
|
|
rhs: ArrowFunction {
|
|
|
|
params: [
|
|
|
|
Param {
|
|
|
|
name: Variable {
|
|
|
|
name: "b",
|
|
|
|
},
|
2022-12-04 16:12:23 +01:00
|
|
|
attributes: [],
|
2022-11-29 02:33:01 +01:00
|
|
|
type: None,
|
|
|
|
variadic: false,
|
|
|
|
default: None,
|
2022-11-30 01:43:37 +01:00
|
|
|
flags: [],
|
2022-11-29 02:33:01 +01:00
|
|
|
by_ref: true,
|
|
|
|
},
|
|
|
|
],
|
2022-12-04 16:12:23 +01:00
|
|
|
attributes: [],
|
2022-11-29 02:33:01 +01:00
|
|
|
return_type: None,
|
|
|
|
expr: Variable {
|
|
|
|
name: "b",
|
|
|
|
},
|
|
|
|
by_ref: true,
|
|
|
|
static: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
2022-12-01 13:55:04 +01:00
|
|
|
BracedNamespace {
|
2022-11-29 02:33:01 +01:00
|
|
|
name: Some(
|
|
|
|
"bar",
|
|
|
|
),
|
|
|
|
body: [
|
|
|
|
Expression {
|
|
|
|
expr: Infix {
|
|
|
|
lhs: Variable {
|
|
|
|
name: "a",
|
|
|
|
},
|
|
|
|
op: Assign,
|
|
|
|
rhs: Closure {
|
|
|
|
params: [],
|
2022-12-04 16:12:23 +01:00
|
|
|
attributes: [],
|
2022-11-29 02:33:01 +01:00
|
|
|
uses: [],
|
|
|
|
return_type: None,
|
|
|
|
body: [],
|
|
|
|
static: true,
|
|
|
|
by_ref: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
Expression {
|
|
|
|
expr: Infix {
|
|
|
|
lhs: Variable {
|
|
|
|
name: "b",
|
|
|
|
},
|
|
|
|
op: Assign,
|
|
|
|
rhs: Closure {
|
|
|
|
params: [
|
|
|
|
Param {
|
|
|
|
name: Variable {
|
|
|
|
name: "b",
|
|
|
|
},
|
2022-12-04 16:12:23 +01:00
|
|
|
attributes: [],
|
2022-11-29 02:33:01 +01:00
|
|
|
type: None,
|
|
|
|
variadic: false,
|
|
|
|
default: None,
|
2022-11-30 01:43:37 +01:00
|
|
|
flags: [],
|
2022-11-29 02:33:01 +01:00
|
|
|
by_ref: true,
|
|
|
|
},
|
|
|
|
],
|
2022-12-04 16:12:23 +01:00
|
|
|
attributes: [],
|
2022-11-29 02:33:01 +01:00
|
|
|
uses: [],
|
|
|
|
return_type: None,
|
|
|
|
body: [],
|
|
|
|
static: true,
|
|
|
|
by_ref: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
Expression {
|
|
|
|
expr: Infix {
|
|
|
|
lhs: Variable {
|
|
|
|
name: "c",
|
|
|
|
},
|
|
|
|
op: Assign,
|
|
|
|
rhs: Closure {
|
|
|
|
params: [],
|
2022-12-04 16:12:23 +01:00
|
|
|
attributes: [],
|
2022-11-29 02:33:01 +01:00
|
|
|
uses: [],
|
|
|
|
return_type: None,
|
|
|
|
body: [],
|
|
|
|
static: true,
|
|
|
|
by_ref: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
Expression {
|
|
|
|
expr: Infix {
|
|
|
|
lhs: Variable {
|
|
|
|
name: "d",
|
|
|
|
},
|
|
|
|
op: Assign,
|
|
|
|
rhs: Closure {
|
|
|
|
params: [
|
|
|
|
Param {
|
|
|
|
name: Variable {
|
|
|
|
name: "b",
|
|
|
|
},
|
2022-12-04 16:12:23 +01:00
|
|
|
attributes: [],
|
2022-11-29 02:33:01 +01:00
|
|
|
type: None,
|
|
|
|
variadic: false,
|
|
|
|
default: None,
|
2022-11-30 01:43:37 +01:00
|
|
|
flags: [],
|
2022-11-29 02:33:01 +01:00
|
|
|
by_ref: true,
|
|
|
|
},
|
|
|
|
],
|
2022-12-04 16:12:23 +01:00
|
|
|
attributes: [],
|
2022-11-29 02:33:01 +01:00
|
|
|
uses: [],
|
|
|
|
return_type: None,
|
|
|
|
body: [
|
|
|
|
Return {
|
|
|
|
value: Some(
|
|
|
|
Variable {
|
|
|
|
name: "b",
|
|
|
|
},
|
|
|
|
),
|
|
|
|
},
|
|
|
|
],
|
|
|
|
static: true,
|
|
|
|
by_ref: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
Expression {
|
|
|
|
expr: Infix {
|
|
|
|
lhs: Variable {
|
|
|
|
name: "e",
|
|
|
|
},
|
|
|
|
op: Assign,
|
|
|
|
rhs: ArrowFunction {
|
|
|
|
params: [],
|
2022-12-04 16:12:23 +01:00
|
|
|
attributes: [],
|
2022-11-29 02:33:01 +01:00
|
|
|
return_type: None,
|
|
|
|
expr: Null,
|
|
|
|
by_ref: false,
|
|
|
|
static: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
Expression {
|
|
|
|
expr: Infix {
|
|
|
|
lhs: Variable {
|
|
|
|
name: "f",
|
|
|
|
},
|
|
|
|
op: Assign,
|
|
|
|
rhs: ArrowFunction {
|
|
|
|
params: [
|
|
|
|
Param {
|
|
|
|
name: Variable {
|
|
|
|
name: "b",
|
|
|
|
},
|
2022-12-04 16:12:23 +01:00
|
|
|
attributes: [],
|
2022-11-29 02:33:01 +01:00
|
|
|
type: None,
|
|
|
|
variadic: false,
|
|
|
|
default: None,
|
2022-11-30 01:43:37 +01:00
|
|
|
flags: [],
|
2022-11-29 02:33:01 +01:00
|
|
|
by_ref: true,
|
|
|
|
},
|
|
|
|
],
|
2022-12-04 16:12:23 +01:00
|
|
|
attributes: [],
|
2022-11-29 02:33:01 +01:00
|
|
|
return_type: None,
|
|
|
|
expr: Null,
|
|
|
|
by_ref: false,
|
|
|
|
static: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
Expression {
|
|
|
|
expr: Infix {
|
|
|
|
lhs: Variable {
|
|
|
|
name: "g",
|
|
|
|
},
|
|
|
|
op: Assign,
|
|
|
|
rhs: ArrowFunction {
|
|
|
|
params: [],
|
2022-12-04 16:12:23 +01:00
|
|
|
attributes: [],
|
2022-11-29 02:33:01 +01:00
|
|
|
return_type: None,
|
|
|
|
expr: Null,
|
|
|
|
by_ref: true,
|
|
|
|
static: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
Expression {
|
|
|
|
expr: Infix {
|
|
|
|
lhs: Variable {
|
|
|
|
name: "h",
|
|
|
|
},
|
|
|
|
op: Assign,
|
|
|
|
rhs: ArrowFunction {
|
|
|
|
params: [
|
|
|
|
Param {
|
|
|
|
name: Variable {
|
|
|
|
name: "b",
|
|
|
|
},
|
2022-12-04 16:12:23 +01:00
|
|
|
attributes: [],
|
2022-11-29 02:33:01 +01:00
|
|
|
type: None,
|
|
|
|
variadic: false,
|
|
|
|
default: None,
|
2022-11-30 01:43:37 +01:00
|
|
|
flags: [],
|
2022-11-29 02:33:01 +01:00
|
|
|
by_ref: true,
|
|
|
|
},
|
|
|
|
],
|
2022-12-04 16:12:23 +01:00
|
|
|
attributes: [],
|
2022-11-29 02:33:01 +01:00
|
|
|
return_type: None,
|
|
|
|
expr: Variable {
|
|
|
|
name: "b",
|
|
|
|
},
|
|
|
|
by_ref: true,
|
|
|
|
static: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
2022-12-01 13:55:04 +01:00
|
|
|
BracedNamespace {
|
2022-11-29 02:33:01 +01:00
|
|
|
name: Some(
|
|
|
|
"baz",
|
|
|
|
),
|
|
|
|
body: [
|
|
|
|
Function {
|
|
|
|
name: Identifier {
|
|
|
|
name: "a",
|
|
|
|
},
|
2022-12-04 16:12:23 +01:00
|
|
|
attributes: [],
|
2022-11-29 02:33:01 +01:00
|
|
|
params: [
|
|
|
|
Param {
|
|
|
|
name: Variable {
|
|
|
|
name: "b",
|
|
|
|
},
|
2022-12-04 16:12:23 +01:00
|
|
|
attributes: [],
|
2022-11-29 02:33:01 +01:00
|
|
|
type: None,
|
|
|
|
variadic: false,
|
|
|
|
default: None,
|
2022-11-30 01:43:37 +01:00
|
|
|
flags: [],
|
2022-11-29 02:33:01 +01:00
|
|
|
by_ref: true,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
body: [],
|
|
|
|
return_type: None,
|
|
|
|
by_ref: false,
|
|
|
|
},
|
|
|
|
Function {
|
|
|
|
name: Identifier {
|
|
|
|
name: "b",
|
|
|
|
},
|
2022-12-04 16:12:23 +01:00
|
|
|
attributes: [],
|
2022-11-29 02:33:01 +01:00
|
|
|
params: [
|
|
|
|
Param {
|
|
|
|
name: Variable {
|
|
|
|
name: "b",
|
|
|
|
},
|
2022-12-04 16:12:23 +01:00
|
|
|
attributes: [],
|
2022-11-29 02:33:01 +01:00
|
|
|
type: None,
|
|
|
|
variadic: false,
|
|
|
|
default: None,
|
2022-11-30 01:43:37 +01:00
|
|
|
flags: [],
|
2022-11-29 02:33:01 +01:00
|
|
|
by_ref: false,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
body: [
|
|
|
|
Return {
|
|
|
|
value: Some(
|
|
|
|
Variable {
|
|
|
|
name: "b",
|
|
|
|
},
|
|
|
|
),
|
|
|
|
},
|
|
|
|
],
|
|
|
|
return_type: None,
|
|
|
|
by_ref: true,
|
|
|
|
},
|
|
|
|
Function {
|
|
|
|
name: Identifier {
|
|
|
|
name: "c",
|
|
|
|
},
|
2022-12-04 16:12:23 +01:00
|
|
|
attributes: [],
|
2022-11-29 02:33:01 +01:00
|
|
|
params: [],
|
|
|
|
body: [
|
|
|
|
Return {
|
|
|
|
value: Some(
|
|
|
|
Variable {
|
|
|
|
name: "b",
|
|
|
|
},
|
|
|
|
),
|
|
|
|
},
|
|
|
|
],
|
|
|
|
return_type: None,
|
|
|
|
by_ref: true,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
]
|