remove meta.MagicConstantToken
This commit is contained in:
@@ -608,11 +608,7 @@ func (p *Printer) printScalarHeredoc(n node.Node) {
|
||||
func (p *Printer) printScalarMagicConstant(n node.Node) {
|
||||
nn := n.(*scalar.MagicConstant)
|
||||
p.printMeta(nn, meta.NodeStart)
|
||||
|
||||
p.printMeta(nn, meta.MagicConstantToken)
|
||||
|
||||
io.WriteString(p.w, nn.Value)
|
||||
|
||||
p.printMeta(nn, meta.NodeEnd)
|
||||
}
|
||||
|
||||
|
||||
@@ -720,7 +720,7 @@ func TestPrinterPrintScalarMagicConstant(t *testing.T) {
|
||||
&meta.Data{
|
||||
Type: meta.WhiteSpaceType,
|
||||
Value: " ",
|
||||
TokenName: meta.MagicConstantToken,
|
||||
TokenName: meta.NodeStart,
|
||||
},
|
||||
},
|
||||
Value: "__DIR__",
|
||||
|
||||
Reference in New Issue
Block a user