parser/tests/0014/ast.txt
Saif Eddin Gmati 017b2e19c3
chore: use new integration test runner instead of assert_ast() (#127)
Signed-off-by: azjezz <azjezz@protonmail.com>

Signed-off-by: azjezz <azjezz@protonmail.com>
2022-11-29 01:33:01 +00:00

133 lines
3.4 KiB
Plaintext

[
Class {
name: Identifier {
name: "Foo2",
},
extends: None,
implements: [],
body: [
TraitUse {
traits: [
Identifier {
name: "B",
},
],
adaptations: [
Alias {
trait: None,
method: Identifier {
name: "foo",
},
alias: Identifier {
name: "bar",
},
visibility: Some(
Protected,
),
},
],
},
],
flag: None,
},
Class {
name: Identifier {
name: "Bar2",
},
extends: None,
implements: [],
body: [
TraitUse {
traits: [
Identifier {
name: "B",
},
Identifier {
name: "C",
},
],
adaptations: [
Precedence {
trait: Some(
Identifier {
name: "B",
},
),
method: Identifier {
name: "foo",
},
insteadof: [
Identifier {
name: "C",
},
],
},
],
},
],
flag: None,
},
Class {
name: Identifier {
name: "Bar3",
},
extends: None,
implements: [],
body: [
TraitUse {
traits: [
Identifier {
name: "B",
},
],
adaptations: [
Alias {
trait: Some(
Identifier {
name: "B",
},
),
method: Identifier {
name: "foo",
},
alias: Identifier {
name: "bar",
},
visibility: None,
},
],
},
],
flag: None,
},
Class {
name: Identifier {
name: "Bar4",
},
extends: None,
implements: [],
body: [
TraitUse {
traits: [
Identifier {
name: "B",
},
],
adaptations: [
Alias {
trait: None,
method: Identifier {
name: "foo",
},
alias: Identifier {
name: "bar",
},
visibility: None,
},
],
},
],
flag: None,
},
]