[refactoring] update ast structure of "StmtPropertyList", "StmtTraitAdaptationList", "StmtTraitMethodRef" and "StmtTraitUseAlias" nodes

This commit is contained in:
Vadym Slizov
2020-11-29 21:50:33 +02:00
parent 5bd63d90ba
commit 43f6fab862
5 changed files with 1406 additions and 1378 deletions

View File

@@ -670,9 +670,11 @@ func (n *StmtProperty) Accept(v NodeVisitor) {
// StmtPropertyList node
type StmtPropertyList struct {
Node
Modifiers []Vertex
Type Vertex
Properties []Vertex
Modifiers []Vertex
Type Vertex
Properties []Vertex
SeparatorTkns []*token.Token
SemiColonTkn *token.Token
}
func (n *StmtPropertyList) Accept(v NodeVisitor) {
@@ -780,7 +782,9 @@ func (n *StmtTrait) Accept(v NodeVisitor) {
// StmtTraitAdaptationList node
type StmtTraitAdaptationList struct {
Node
Adaptations []Vertex
OpenParenthesisTkn *token.Token
Adaptations []Vertex
CloseParenthesisTkn *token.Token
}
func (n *StmtTraitAdaptationList) Accept(v NodeVisitor) {
@@ -790,8 +794,9 @@ func (n *StmtTraitAdaptationList) Accept(v NodeVisitor) {
// StmtTraitMethodRef node
type StmtTraitMethodRef struct {
Node
Trait Vertex
Method Vertex
Trait Vertex
DoubleColonTkn *token.Token
Method Vertex
}
func (n *StmtTraitMethodRef) Accept(v NodeVisitor) {
@@ -815,6 +820,7 @@ func (n *StmtTraitUse) Accept(v NodeVisitor) {
type StmtTraitUseAlias struct {
Node
Ref Vertex
AsTkn *token.Token
Modifier Vertex
Alias Vertex
}