@@ -515,8 +515,6 @@ func convertASTValue(f *ast.FileNode, v ast.ValueNode) ast2.ValueNode {
515
515
return convertASTCompoundStringLiteral (f , v )
516
516
case * ast.UintLiteralNode :
517
517
return convertASTUintLiteral (f , v )
518
- case * ast.PositiveUintLiteralNode :
519
- return convertASTPositiveUintLiteral (f , v )
520
518
case * ast.NegativeIntLiteralNode :
521
519
return convertASTNegativeIntLiteral (f , v )
522
520
case * ast.FloatLiteralNode :
@@ -593,8 +591,6 @@ func convertASTInt(f *ast.FileNode, n ast.IntValueNode) ast2.IntValueNode {
593
591
switch n := n .(type ) {
594
592
case * ast.UintLiteralNode :
595
593
return convertASTUintLiteral (f , n )
596
- case * ast.PositiveUintLiteralNode :
597
- return convertASTPositiveUintLiteral (f , n )
598
594
case * ast.NegativeIntLiteralNode :
599
595
return convertASTNegativeIntLiteral (f , n )
600
596
default :
@@ -606,10 +602,6 @@ func convertASTUintLiteral(f *ast.FileNode, n *ast.UintLiteralNode) *ast2.UintLi
606
602
return ast2 .NewUintLiteralNode (n .Val , convertASTTokenInfo (f , n .Token ()))
607
603
}
608
604
609
- func convertASTPositiveUintLiteral (f * ast.FileNode , n * ast.PositiveUintLiteralNode ) * ast2.PositiveUintLiteralNode {
610
- return ast2 .NewPositiveUintLiteralNode (convertASTRune (f , n .Plus ), convertASTUintLiteral (f , n .Uint ))
611
- }
612
-
613
605
func convertASTNegativeIntLiteral (f * ast.FileNode , n * ast.NegativeIntLiteralNode ) * ast2.NegativeIntLiteralNode {
614
606
return ast2 .NewNegativeIntLiteralNode (convertASTRune (f , n .Minus ), convertASTUintLiteral (f , n .Uint ))
615
607
}
0 commit comments