remove meta.QuestionMarkToken from node.Nullable
This commit is contained in:
@@ -465,8 +465,6 @@ func (p *Printer) printNodeNullable(n node.Node) {
|
||||
nn := n.(*node.Nullable)
|
||||
p.printMeta(nn, meta.NodeStart)
|
||||
|
||||
p.printMeta(nn, meta.QuestionMarkToken)
|
||||
|
||||
io.WriteString(p.w, "?")
|
||||
p.Print(nn.Expr)
|
||||
|
||||
|
||||
@@ -217,7 +217,7 @@ func TestPrinterPrintNullable(t *testing.T) {
|
||||
&meta.Data{
|
||||
Type: meta.WhiteSpaceType,
|
||||
Value: " ",
|
||||
TokenName: meta.QuestionMarkToken,
|
||||
TokenName: meta.NodeStart,
|
||||
},
|
||||
},
|
||||
Expr: &node.Parameter{
|
||||
|
||||
Reference in New Issue
Block a user