replace meta.FunctionToken
This commit is contained in:
@@ -2229,7 +2229,6 @@ func (p *Printer) printStmtFunction(n node.Node) {
|
||||
nn := n.(*stmt.Function)
|
||||
p.printMeta(nn, meta.NodeStart)
|
||||
|
||||
p.printMeta(nn, meta.FunctionToken)
|
||||
io.WriteString(p.w, "function")
|
||||
|
||||
if nn.ReturnsRef {
|
||||
|
||||
@@ -6951,7 +6951,7 @@ func TestPrinterPrintStmtFunction(t *testing.T) {
|
||||
&meta.Data{
|
||||
Type: meta.WhiteSpaceType,
|
||||
Value: " ",
|
||||
TokenName: meta.FunctionToken,
|
||||
TokenName: meta.NodeStart,
|
||||
},
|
||||
&meta.Data{
|
||||
Type: meta.WhiteSpaceType,
|
||||
|
||||
Reference in New Issue
Block a user