remove meta.CatchToken
This commit is contained in:
@@ -3538,7 +3538,7 @@ yydefault:
|
||||
catch.SetPosition(yylex.(*Parser).positionBuilder.NewTokensPosition(yyDollar[1].token, yyDollar[8].token))
|
||||
|
||||
// save comments
|
||||
yyDollar[1].token.Meta.SetTokenName(meta.CatchToken).AppendTo(catch.GetMeta())
|
||||
yyDollar[1].token.Meta.SetTokenName(meta.NodeStart).AppendTo(catch.GetMeta())
|
||||
yyDollar[2].token.Meta.SetTokenName(meta.OpenParenthesisToken).AppendTo(catch.GetMeta())
|
||||
yyDollar[4].token.Meta.SetTokenName(meta.NodeStart).AppendTo(variable.GetMeta())
|
||||
yylex.(*Parser).appendMeta(variable, &meta.Data{"$", meta.TokenType, nil, meta.NodeStart}, meta.NodeStart)
|
||||
@@ -3618,7 +3618,7 @@ yydefault:
|
||||
yyVAL.node.SetPosition(yylex.(*Parser).positionBuilder.NewTokensPosition(yyDollar[1].token, yyDollar[8].token))
|
||||
|
||||
// save comments
|
||||
yyDollar[1].token.Meta.SetTokenName(meta.CatchToken).AppendTo(yyVAL.node.GetMeta())
|
||||
yyDollar[1].token.Meta.SetTokenName(meta.NodeStart).AppendTo(yyVAL.node.GetMeta())
|
||||
yyDollar[2].token.Meta.SetTokenName(meta.OpenParenthesisToken).AppendTo(yyVAL.node.GetMeta())
|
||||
yyDollar[4].token.Meta.SetTokenName(meta.NodeStart).AppendTo(variable.GetMeta())
|
||||
yylex.(*Parser).appendMeta(variable, &meta.Data{"$", meta.TokenType, nil, meta.NodeStart}, meta.NodeStart)
|
||||
|
||||
@@ -1385,7 +1385,7 @@ catch_statement:
|
||||
catch.SetPosition(yylex.(*Parser).positionBuilder.NewTokensPosition($1, $8))
|
||||
|
||||
// save comments
|
||||
$1.Meta.SetTokenName(meta.CatchToken).AppendTo(catch.GetMeta())
|
||||
$1.Meta.SetTokenName(meta.NodeStart).AppendTo(catch.GetMeta())
|
||||
$2.Meta.SetTokenName(meta.OpenParenthesisToken).AppendTo(catch.GetMeta())
|
||||
$4.Meta.SetTokenName(meta.NodeStart).AppendTo(variable.GetMeta())
|
||||
yylex.(*Parser).appendMeta(variable, &meta.Data{"$", meta.TokenType, nil, meta.NodeStart}, meta.NodeStart)
|
||||
@@ -1463,7 +1463,7 @@ additional_catch:
|
||||
$$.SetPosition(yylex.(*Parser).positionBuilder.NewTokensPosition($1, $8))
|
||||
|
||||
// save comments
|
||||
$1.Meta.SetTokenName(meta.CatchToken).AppendTo($$.GetMeta())
|
||||
$1.Meta.SetTokenName(meta.NodeStart).AppendTo($$.GetMeta())
|
||||
$2.Meta.SetTokenName(meta.OpenParenthesisToken).AppendTo($$.GetMeta())
|
||||
$4.Meta.SetTokenName(meta.NodeStart).AppendTo(variable.GetMeta())
|
||||
yylex.(*Parser).appendMeta(variable, &meta.Data{"$", meta.TokenType, nil, meta.NodeStart}, meta.NodeStart)
|
||||
|
||||
Reference in New Issue
Block a user