parser/tests/fixtures/0278/ast.txt
Saif Eddin Gmati 6a6d4d0e5f
chore: refactor ident and dynamic var parsers (#192)
Signed-off-by: azjezz <azjezz@protonmail.com>
2022-12-10 15:24:55 +01:00

419 lines
9.3 KiB
Plaintext

[
Function(
Function {
start: (
3,
1,
),
end: (
3,
24,
),
name: SimpleIdentifier {
span: (
3,
10,
),
name: "true",
},
attributes: [],
parameters: FunctionParameterList {
start: (
3,
14,
),
end: (
3,
16,
),
members: [],
},
return_type: Some(
Void,
),
by_ref: false,
body: [],
},
),
Function(
Function {
start: (
4,
1,
),
end: (
4,
25,
),
name: SimpleIdentifier {
span: (
4,
10,
),
name: "false",
},
attributes: [],
parameters: FunctionParameterList {
start: (
4,
15,
),
end: (
4,
17,
),
members: [],
},
return_type: Some(
Void,
),
by_ref: false,
body: [],
},
),
Function(
Function {
start: (
5,
1,
),
end: (
5,
24,
),
name: SimpleIdentifier {
span: (
5,
10,
),
name: "null",
},
attributes: [],
parameters: FunctionParameterList {
start: (
5,
14,
),
end: (
5,
16,
),
members: [],
},
return_type: Some(
Void,
),
by_ref: false,
body: [],
},
),
Function(
Function {
start: (
6,
1,
),
end: (
6,
28,
),
name: SimpleIdentifier {
span: (
6,
10,
),
name: "readonly",
},
attributes: [],
parameters: FunctionParameterList {
start: (
6,
18,
),
end: (
6,
20,
),
members: [],
},
return_type: Some(
Void,
),
by_ref: false,
body: [],
},
),
Function(
Function {
start: (
7,
1,
),
end: (
7,
24,
),
name: SimpleIdentifier {
span: (
7,
10,
),
name: "self",
},
attributes: [],
parameters: FunctionParameterList {
start: (
7,
14,
),
end: (
7,
16,
),
members: [],
},
return_type: Some(
Void,
),
by_ref: false,
body: [],
},
),
Function(
Function {
start: (
8,
1,
),
end: (
8,
26,
),
name: SimpleIdentifier {
span: (
8,
10,
),
name: "parent",
},
attributes: [],
parameters: FunctionParameterList {
start: (
8,
16,
),
end: (
8,
18,
),
members: [],
},
return_type: Some(
Void,
),
by_ref: false,
body: [],
},
),
Function(
Function {
start: (
9,
1,
),
end: (
9,
24,
),
name: SimpleIdentifier {
span: (
9,
10,
),
name: "enum",
},
attributes: [],
parameters: FunctionParameterList {
start: (
9,
14,
),
end: (
9,
16,
),
members: [],
},
return_type: Some(
Void,
),
by_ref: false,
body: [],
},
),
Function(
Function {
start: (
10,
1,
),
end: (
10,
24,
),
name: SimpleIdentifier {
span: (
10,
10,
),
name: "from",
},
attributes: [],
parameters: FunctionParameterList {
start: (
10,
14,
),
end: (
10,
16,
),
members: [],
},
return_type: Some(
Void,
),
by_ref: false,
body: [],
},
),
Expression {
expr: Call {
target: Identifier(
SimpleIdentifier(
SimpleIdentifier {
span: (
12,
1,
),
name: "true",
},
),
),
args: [],
},
},
Expression {
expr: Call {
target: Identifier(
SimpleIdentifier(
SimpleIdentifier {
span: (
13,
1,
),
name: "false",
},
),
),
args: [],
},
},
Expression {
expr: Call {
target: Identifier(
SimpleIdentifier(
SimpleIdentifier {
span: (
14,
1,
),
name: "null",
},
),
),
args: [],
},
},
Expression {
expr: Call {
target: Identifier(
SimpleIdentifier(
SimpleIdentifier {
span: (
15,
1,
),
name: "readonly",
},
),
),
args: [],
},
},
Expression {
expr: Call {
target: Identifier(
SimpleIdentifier(
SimpleIdentifier {
span: (
16,
1,
),
name: "self",
},
),
),
args: [],
},
},
Expression {
expr: Call {
target: Identifier(
SimpleIdentifier(
SimpleIdentifier {
span: (
17,
1,
),
name: "parent",
},
),
),
args: [],
},
},
Expression {
expr: Call {
target: Identifier(
SimpleIdentifier(
SimpleIdentifier {
span: (
18,
1,
),
name: "enum",
},
),
),
args: [],
},
},
Expression {
expr: Call {
target: Identifier(
SimpleIdentifier(
SimpleIdentifier {
span: (
19,
1,
),
name: "from",
},
),
),
args: [],
},
},
]