remove meta.IncludeOnceToken

This commit is contained in:
z7zmey
2018-10-26 12:02:41 +03:00
parent fb6d21fe6e
commit 6995b20aef
8 changed files with 7 additions and 11 deletions

View File

@@ -1364,11 +1364,8 @@ func (p *Printer) printExprInclude(n node.Node) {
func (p *Printer) printExprIncludeOnce(n node.Node) {
nn := n.(*expr.IncludeOnce)
p.printMeta(nn, meta.NodeStart)
p.printMeta(nn, meta.IncludeOnceToken)
io.WriteString(p.w, "include_once")
p.Print(nn.Expr)
p.printMeta(nn, meta.NodeEnd)
}

View File

@@ -3565,7 +3565,7 @@ func TestPrinterPrintIncludeOnce(t *testing.T) {
&meta.Data{
Type: meta.WhiteSpaceType,
Value: " ",
TokenName: meta.IncludeOnceToken,
TokenName: meta.NodeStart,
},
}, Expr: &scalar.String{Value: "'path'"},
})