remove meta.IncludeToken

This commit is contained in:
z7zmey
2018-10-26 12:01:47 +03:00
parent 5159b0f473
commit fb6d21fe6e
8 changed files with 7 additions and 11 deletions

View File

@@ -1356,11 +1356,8 @@ func (p *Printer) printExprFunctionCall(n node.Node) {
func (p *Printer) printExprInclude(n node.Node) {
nn := n.(*expr.Include)
p.printMeta(nn, meta.NodeStart)
p.printMeta(nn, meta.IncludeToken)
io.WriteString(p.w, "include")
p.Print(nn.Expr)
p.printMeta(nn, meta.NodeEnd)
}

View File

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