2 instantiations of TryExpression
System.Core (2)
Microsoft\Scripting\Ast\TryExpression.cs (1)
198
return new
TryExpression
(type ?? body.Type, body, @finally, fault, @catch);
Microsoft\Scripting\Compiler\StackSpiller.cs (1)
905
expr = new
TryExpression
(node.Type, body.Node, @finally.Node, fault.Node, handlers);
27 references to TryExpression
System.Core (27)
Microsoft\Scripting\Actions\CallSite.cs (1)
600
var
tryRule = Expression.TryFinally(
Microsoft\Scripting\Ast\DebugViewWriter.cs (1)
1051
protected internal override Expression VisitTry(
TryExpression
node) {
Microsoft\Scripting\Ast\Expression.DebuggerProxy.cs (2)
404
private readonly
TryExpression
_node;
406
public TryExpressionProxy(
TryExpression
node) {
Microsoft\Scripting\Ast\ExpressionStringBuilder.cs (1)
756
protected internal override Expression VisitTry(
TryExpression
node) {
Microsoft\Scripting\Ast\ExpressionVisitor.cs (2)
502
/// Visits the children of the <see cref="
TryExpression
" />.
507
protected internal virtual Expression VisitTry(
TryExpression
node) {
Microsoft\Scripting\Ast\TryExpression.cs (16)
120
public
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>
136
public 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>
146
public 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>
156
public 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>
167
public 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>
180
public static
TryExpression
MakeTry(Type type, Expression body, Expression @finally, Expression fault, IEnumerable<CatchBlock> handlers) {
Microsoft\Scripting\Compiler\LambdaCompiler.Statements.cs (2)
698
var
node = (
TryExpression
)expr;
Microsoft\Scripting\Compiler\StackSpiller.cs (2)
845
TryExpression
node = (
TryExpression
)expr;