remove meta.StartHeredocToken

This commit is contained in:
z7zmey
2018-10-25 13:52:44 +03:00
parent 11882949a7
commit 5144644d92
8 changed files with 16 additions and 19 deletions

View File

@@ -591,8 +591,6 @@ func (p *Printer) printScalarHeredoc(n node.Node) {
nn := n.(*scalar.Heredoc)
p.printMeta(nn, meta.NodeStart)
p.printMeta(nn, meta.StartHeredocToken)
io.WriteString(p.w, "<<<")
io.WriteString(p.w, nn.Label)
io.WriteString(p.w, "\n")

View File

@@ -653,7 +653,7 @@ func TestPrinterPrintScalarHeredoc(t *testing.T) {
&meta.Data{
Type: meta.WhiteSpaceType,
Value: " ",
TokenName: meta.StartHeredocToken,
TokenName: meta.NodeStart,
},
},
Label: "LBL",
@@ -692,7 +692,7 @@ func TestPrinterPrintScalarNowdoc(t *testing.T) {
&meta.Data{
Type: meta.WhiteSpaceType,
Value: " ",
TokenName: meta.StartHeredocToken,
TokenName: meta.NodeStart,
},
},
Label: "'LBL'",