#70: [php7] fix saving meta for *expr.NewArrayDimFetch at encaps_var
This commit is contained in:
parent
e8cd06a391
commit
1ee63c5e63
@ -1,3 +1,5 @@
|
||||
// Code generated by goyacc -o php7/php7.go php7/php7.y. DO NOT EDIT.
|
||||
|
||||
//line php7/php7.y:2
|
||||
package php7
|
||||
|
||||
@ -8028,9 +8030,9 @@ yydefault:
|
||||
// save comments
|
||||
yylex.(*Parser).appendMeta(variable, &meta.Data{"$", meta.TokenType, nil, meta.NodeStart}, meta.NodeStart)
|
||||
yyDollar[2].token.Meta.SetTokenName(meta.OpenSquareBracket).AppendTo(yyVAL.node.GetMeta())
|
||||
yylex.(*Parser).appendMetaToken(yyVAL.node, yyDollar[2].token, meta.OpenCurlyBracesToken)
|
||||
yylex.(*Parser).appendMetaToken(yyVAL.node, yyDollar[2].token, meta.OpenSquareBracket)
|
||||
yyDollar[4].token.Meta.SetTokenName(meta.CloseSquareBracket).AppendTo(yyVAL.node.GetMeta())
|
||||
yylex.(*Parser).appendMetaToken(yyVAL.node, yyDollar[4].token, meta.CloseCurlyBracesToken)
|
||||
yylex.(*Parser).appendMetaToken(yyVAL.node, yyDollar[4].token, meta.CloseSquareBracket)
|
||||
|
||||
yylex.(*Parser).returnTokenToPool(yyDollar, &yyVAL)
|
||||
}
|
||||
|
@ -5355,9 +5355,9 @@ encaps_var:
|
||||
// save comments
|
||||
yylex.(*Parser).appendMeta(variable, &meta.Data{"$", meta.TokenType, nil, meta.NodeStart}, meta.NodeStart)
|
||||
$2.Meta.SetTokenName(meta.OpenSquareBracket).AppendTo($$.GetMeta())
|
||||
yylex.(*Parser).appendMetaToken($$, $2, meta.OpenCurlyBracesToken)
|
||||
yylex.(*Parser).appendMetaToken($$, $2, meta.OpenSquareBracket)
|
||||
$4.Meta.SetTokenName(meta.CloseSquareBracket).AppendTo($$.GetMeta())
|
||||
yylex.(*Parser).appendMetaToken($$, $4, meta.CloseCurlyBracesToken)
|
||||
yylex.(*Parser).appendMetaToken($$, $4, meta.CloseSquareBracket)
|
||||
|
||||
yylex.(*Parser).returnTokenToPool(yyDollar, &yyVAL)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user