parser/tests/fixtures/0207/ast.txt
2022-12-06 09:51:13 +01:00

113 lines
3.3 KiB
Plaintext

[
Class {
name: Identifier {
start: (
3,
7,
),
name: "foo",
end: (
3,
11,
),
},
attributes: [],
extends: None,
implements: [],
body: [
TraitUse {
traits: [
Identifier {
start: (
4,
9,
),
name: "a",
end: (
4,
10,
),
},
Identifier {
start: (
4,
12,
),
name: "b",
end: (
4,
13,
),
},
Identifier {
start: (
4,
15,
),
name: "c",
end: (
4,
17,
),
},
],
adaptations: [
Precedence {
trait: Some(
Identifier {
start: (
5,
9,
),
name: "a",
end: (
5,
10,
),
},
),
method: Identifier {
start: (
5,
12,
),
name: "s",
end: (
5,
14,
),
},
insteadof: [
Identifier {
start: (
5,
24,
),
name: "b",
end: (
5,
25,
),
},
Identifier {
start: (
5,
27,
),
name: "c",
end: (
5,
28,
),
},
],
},
],
},
],
modifiers: ClassModifierGroup {
modifiers: [],
},
},
]