parser/tests/fixtures/0207/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

90 lines
3.0 KiB
Plaintext

[
Class(
Class {
start: (
3,
1,
),
end: (
7,
1,
),
name: SimpleIdentifier {
span: (
3,
7,
),
name: "foo",
},
extends: None,
implements: None,
attributes: [],
members: [
TraitUsage(
TraitUsage {
traits: [
SimpleIdentifier {
span: (
4,
9,
),
name: "a",
},
SimpleIdentifier {
span: (
4,
12,
),
name: "b",
},
SimpleIdentifier {
span: (
4,
15,
),
name: "c",
},
],
adaptations: [
Precedence {
trait: Some(
SimpleIdentifier {
span: (
5,
9,
),
name: "a",
},
),
method: SimpleIdentifier {
span: (
5,
12,
),
name: "s",
},
insteadof: [
SimpleIdentifier {
span: (
5,
24,
),
name: "b",
},
SimpleIdentifier {
span: (
5,
27,
),
name: "c",
},
],
},
],
},
),
],
},
),
]