parser/tests/0014/ast.txt

137 lines
3.5 KiB
Plaintext
Raw Normal View History

[
Class {
name: Identifier {
name: "Foo2",
},
attributes: [],
extends: None,
implements: [],
body: [
TraitUse {
traits: [
Identifier {
name: "B",
},
],
adaptations: [
Alias {
trait: None,
method: Identifier {
name: "foo",
},
alias: Identifier {
name: "bar",
},
visibility: Some(
Protected,
),
},
],
},
],
flags: [],
},
Class {
name: Identifier {
name: "Bar2",
},
attributes: [],
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",
},
],
},
],
},
],
flags: [],
},
Class {
name: Identifier {
name: "Bar3",
},
attributes: [],
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,
},
],
},
],
flags: [],
},
Class {
name: Identifier {
name: "Bar4",
},
attributes: [],
extends: None,
implements: [],
body: [
TraitUse {
traits: [
Identifier {
name: "B",
},
],
adaptations: [
Alias {
trait: None,
method: Identifier {
name: "foo",
},
alias: Identifier {
name: "bar",
},
visibility: None,
},
],
},
],
flags: [],
},
]