remove meta.HaltCompilerToken

This commit is contained in:
z7zmey
2018-10-29 14:16:29 +02:00
parent 4ec92f57ee
commit a8295f8f72
8 changed files with 11 additions and 13 deletions

View File

@@ -2310,7 +2310,6 @@ func (p *Printer) printStmtHaltCompiler(n node.Node) {
nn := n.(*stmt.HaltCompiler)
p.printMeta(nn, meta.NodeStart)
p.printMeta(n, meta.HaltCompilerToken)
io.WriteString(p.w, "__halt_compiler")
p.printMeta(n, meta.OpenParenthesisToken)
io.WriteString(p.w, "(")

View File

@@ -7174,7 +7174,7 @@ func TestPrinterPrintHaltCompiler(t *testing.T) {
&meta.Data{
Type: meta.WhiteSpaceType,
Value: " ",
TokenName: meta.HaltCompilerToken,
TokenName: meta.NodeStart,
},
&meta.Data{
Type: meta.WhiteSpaceType,