2 instantiations of TryExpression
System.Core (2)
Microsoft\Scripting\Ast\TryExpression.cs (1)
198return new TryExpression(type ?? body.Type, body, @finally, fault, @catch);
Microsoft\Scripting\Compiler\StackSpiller.cs (1)
905expr = new TryExpression(node.Type, body.Node, @finally.Node, fault.Node, handlers);
27 references to TryExpression
System.Core (27)
Microsoft\Scripting\Actions\CallSite.cs (1)
600var tryRule = Expression.TryFinally(
Microsoft\Scripting\Ast\DebugViewWriter.cs (1)
1051protected internal override Expression VisitTry(TryExpression node) {
Microsoft\Scripting\Ast\Expression.DebuggerProxy.cs (2)
404private readonly TryExpression _node; 406public TryExpressionProxy(TryExpression node) {
Microsoft\Scripting\Ast\ExpressionStringBuilder.cs (1)
756protected internal override Expression VisitTry(TryExpression node) {
Microsoft\Scripting\Ast\ExpressionVisitor.cs (2)
502/// Visits the children of the <see cref="TryExpression" />. 507protected internal virtual Expression VisitTry(TryExpression node) {
Microsoft\Scripting\Ast\TryExpression.cs (16)
120public TryExpression Update(Expression body, IEnumerable<CatchBlock> handlers, Expression @finally, Expression fault) { 131/// Creates a <see cref="TryExpression"/> representing a try block with a fault block and no catch statements. 135/// <returns>The created <see cref="TryExpression"/>.</returns> 136public static TryExpression TryFault(Expression body, Expression fault) { 141/// Creates a <see cref="TryExpression"/> representing a try block with a finally block and no catch statements. 145/// <returns>The created <see cref="TryExpression"/>.</returns> 146public static TryExpression TryFinally(Expression body, Expression @finally) { 151/// Creates a <see cref="TryExpression"/> representing a try block with any number of catch statements and neither a fault nor finally block. 155/// <returns>The created <see cref="TryExpression"/>.</returns> 156public static TryExpression TryCatch(Expression body, params CatchBlock[] handlers) { 161/// Creates a <see cref="TryExpression"/> representing a try block with any number of catch statements and a finally block. 166/// <returns>The created <see cref="TryExpression"/>.</returns> 167public static TryExpression TryCatchFinally(Expression body, Expression @finally, params CatchBlock[] handlers) { 172/// Creates a <see cref="TryExpression"/> representing a try block with the specified elements. 179/// <returns>The created <see cref="TryExpression"/>.</returns> 180public static TryExpression MakeTry(Type type, Expression body, Expression @finally, Expression fault, IEnumerable<CatchBlock> handlers) {
Microsoft\Scripting\Compiler\LambdaCompiler.Statements.cs (2)
698var node = (TryExpression)expr;
Microsoft\Scripting\Compiler\StackSpiller.cs (2)
845TryExpression node = (TryExpression)expr;