remove meta.ForeachToken
This commit is contained in:
@@ -1753,7 +1753,6 @@ func (p *Printer) printStmtAltForeach(n node.Node) {
|
||||
nn := n.(*stmt.AltForeach)
|
||||
p.printMeta(nn, meta.NodeStart)
|
||||
|
||||
p.printMeta(nn, meta.ForeachToken)
|
||||
io.WriteString(p.w, "foreach")
|
||||
p.printMeta(nn, meta.OpenParenthesisToken)
|
||||
io.WriteString(p.w, "(")
|
||||
@@ -2217,7 +2216,6 @@ func (p *Printer) printStmtForeach(n node.Node) {
|
||||
nn := n.(*stmt.Foreach)
|
||||
p.printMeta(nn, meta.NodeStart)
|
||||
|
||||
p.printMeta(nn, meta.ForeachToken)
|
||||
io.WriteString(p.w, "foreach")
|
||||
p.printMeta(nn, meta.OpenParenthesisToken)
|
||||
io.WriteString(p.w, "(")
|
||||
|
||||
@@ -5054,7 +5054,7 @@ func TestPrinterPrintAltForeach(t *testing.T) {
|
||||
&meta.Data{
|
||||
Type: meta.WhiteSpaceType,
|
||||
Value: " ",
|
||||
TokenName: meta.ForeachToken,
|
||||
TokenName: meta.NodeStart,
|
||||
},
|
||||
&meta.Data{
|
||||
Type: meta.WhiteSpaceType,
|
||||
@@ -6874,7 +6874,7 @@ func TestPrinterPrintStmtForeach(t *testing.T) {
|
||||
&meta.Data{
|
||||
Type: meta.WhiteSpaceType,
|
||||
Value: " ",
|
||||
TokenName: meta.ForeachToken,
|
||||
TokenName: meta.NodeStart,
|
||||
},
|
||||
&meta.Data{
|
||||
Type: meta.WhiteSpaceType,
|
||||
|
||||
Reference in New Issue
Block a user