Add UnaryExprOrTypeTraitExpr first child types to transpiler
* Support UnaryExprOrTypeTraitExpr->CStyleCastExpr
* Support UnaryExprOrTypeTraitExpr->ConditionalOperator
* Support UnaryExprOrTypeTraitExpr->BinaryOperator
* Support UnaryExprOrTypeTraitExpr->IntegerLiteral
* Support UnaryExprOrTypeTraitExpr->StringLiteral
Fixes
Fixes
Fixes
Fixes
Fixes
@@ -717,6 +717,21 @@ func transpileUnaryExprOrTypeTraitExpr(n *ast.UnaryExprOrTypeTraitExpr, p *progr
case *ast.CallExpr:
t = ty.Type
+ case *ast.CStyleCastExpr:
+ t = ty.Type
+
+ case *ast.ConditionalOperator:
+ t = ty.Type
+
+ case *ast.BinaryOperator:
+ t = ty.Type
+
+ case *ast.IntegerLiteral:
+ t = ty.Type
+
+ case *ast.StringLiteral:
+ t = ty.Type
+
default:
panic(fmt.Sprintf("cannot do unary on: %#v", ty))
}
