remove meta.HaltCompilerToken
This commit is contained in:
@@ -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, "(")
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user