[refactoring] update ast structure of "ClassMethod", "Function", "ArrowFunction" and "Closure" nodes

This commit is contained in:
Vadym Slizov
2020-12-04 12:22:06 +02:00
parent f3203c0b5f
commit 132db0e06b
5 changed files with 1252 additions and 1224 deletions

View File

@@ -269,6 +269,7 @@ type StmtClassMethod struct {
MethodName Vertex
OpenParenthesisTkn *token.Token
Params []Vertex
SeparatorTkns []*token.Token
CloseParenthesisTkn *token.Token
ColonTkn *token.Token
ReturnType Vertex
@@ -482,6 +483,7 @@ type StmtFunction struct {
FunctionName Vertex
OpenParenthesisTkn *token.Token
Params []Vertex
SeparatorTkns []*token.Token
CloseParenthesisTkn *token.Token
ColonTkn *token.Token
ReturnType Vertex
@@ -955,6 +957,7 @@ type ExprArrowFunction struct {
AmpersandTkn *token.Token
OpenParenthesisTkn *token.Token
Params []Vertex
SeparatorTkns []*token.Token
CloseParenthesisTkn *token.Token
ColonTkn *token.Token
ReturnType Vertex
@@ -1019,6 +1022,7 @@ type ExprClosure struct {
AmpersandTkn *token.Token
OpenParenthesisTkn *token.Token
Params []Vertex
SeparatorTkns []*token.Token
CloseParenthesisTkn *token.Token
ClosureUse *ExprClosureUse
ColonTkn *token.Token