private static void WriteConversionExpression(BoundConversionExpression node, IndentedTextWriter writer) { writer.WriteIdentifier(node.Type.Name); writer.WritePunctuation(SyntaxKind.OpenParenthesisToken); node.Expression.WriteTo(writer); writer.WritePunctuation(SyntaxKind.CloseParenthesisToken); }
private static void WriteConversionExpression(BoundConversionExpression node, IndentedTextWriter writer) { writer.WriteIdentifier(node.Type.Name); writer.WritePunctuation("("); node.Expression.WriteTo(writer); writer.WritePunctuation(")"); }
protected virtual BoundExpression RewriteConversionExpression(BoundConversionExpression node) { var expression = RewriteExpression(node.Expression); if (expression == node.Expression) return node; return new BoundConversionExpression(node.Type, expression); }
protected virtual BoundExpression RewriteConversionExpression(BoundConversionExpression node) { var expression = RewriteExpression(node.Expression); if (expression == node.Expression) { return(node); } return(new BoundConversionExpression(node.Syntax, node.Type, expression)); }