remove meta.DoubleQuoteToken

This commit is contained in:
z7zmey
2018-10-25 13:50:40 +03:00
parent 3aa4406a95
commit 11882949a7
8 changed files with 7 additions and 11 deletions

View File

@@ -578,13 +578,10 @@ func (p *Printer) printScalarEncapsed(n node.Node) {
nn := n.(*scalar.Encapsed)
p.printMeta(nn, meta.NodeStart)
p.printMeta(nn, meta.DoubleQuoteToken)
io.WriteString(p.w, "\"")
for _, part := range nn.Parts {
p.Print(part)
}
io.WriteString(p.w, "\"")
p.printMeta(nn, meta.NodeEnd)

View File

@@ -620,7 +620,7 @@ func TestPrinterPrintScalarEncapsed(t *testing.T) {
&meta.Data{
Type: meta.WhiteSpaceType,
Value: " ",
TokenName: meta.DoubleQuoteToken,
TokenName: meta.NodeStart,
},
},
Parts: []node.Node{