1 instantiation of CatchBlock
System.Core (1)
Microsoft\Scripting\Ast\CatchBlock.cs (1)
175
return new
CatchBlock
(type, variable, body, filter);
61 references to CatchBlock
System.Core (61)
Microsoft\Scripting\Ast\CatchBlock.cs (21)
72
/// Gets the body of the <see cref="
CatchBlock
"/>'s filter.
97
public
CatchBlock
Update(ParameterExpression variable, Expression filter, Expression body) {
107
/// Creates a <see cref="
CatchBlock
"/> representing a catch statement.
109
/// will be available for use in the <see cref="
CatchBlock
"/>.
111
/// <param name="type">The <see cref="Type"/> of <see cref="Exception"/> this <see cref="
CatchBlock
"/> will handle.</param>
113
/// <returns>The created <see cref="
CatchBlock
"/>.</returns>
114
public static
CatchBlock
Catch(Type type, Expression body) {
119
/// Creates a <see cref="
CatchBlock
"/> representing a catch statement with a reference to the caught object for use in the handler body.
123
/// <returns>The created <see cref="
CatchBlock
"/>.</returns>
124
public static
CatchBlock
Catch(ParameterExpression variable, Expression body) {
130
/// Creates a <see cref="
CatchBlock
"/> representing a catch statement with
133
/// <param name="type">The <see cref="Type"/> of <see cref="Exception"/> this <see cref="
CatchBlock
"/> will handle.</param>
136
/// <returns>The created <see cref="
CatchBlock
"/>.</returns>
137
public static
CatchBlock
Catch(Type type, Expression body, Expression filter) {
142
/// Creates a <see cref="
CatchBlock
"/> representing a catch statement with
148
/// <returns>The created <see cref="
CatchBlock
"/>.</returns>
149
public static
CatchBlock
Catch(ParameterExpression variable, Expression body, Expression filter) {
155
/// Creates a <see cref="
CatchBlock
"/> representing a catch statement with the specified elements.
157
/// <param name="type">The <see cref="Type"/> of <see cref="Exception"/> this <see cref="
CatchBlock
"/> will handle.</param>
161
/// <returns>The created <see cref="
CatchBlock
"/>.</returns>
163
public static
CatchBlock
MakeCatchBlock(Type type, ParameterExpression variable, Expression body, Expression filter) {
Microsoft\Scripting\Ast\DebugViewWriter.cs (2)
1034
protected override
CatchBlock
VisitCatchBlock(
CatchBlock
node) {
Microsoft\Scripting\Ast\Expression.DebuggerProxy.cs (3)
69
private readonly
CatchBlock
_node;
71
public CatchBlockProxy(
CatchBlock
node) {
415
public ReadOnlyCollection<
CatchBlock
> Handlers { get { return _node.Handlers; } }
Microsoft\Scripting\Ast\ExpressionStringBuilder.cs (3)
125
internal static string CatchBlockToString(
CatchBlock
node) {
747
protected override
CatchBlock
VisitCatchBlock(
CatchBlock
node) {
Microsoft\Scripting\Ast\ExpressionVisitor.cs (3)
492
/// Visits the children of the <see cref="
CatchBlock
" />.
497
protected virtual
CatchBlock
VisitCatchBlock(
CatchBlock
node) {
Microsoft\Scripting\Ast\TryExpression.cs (16)
35
/// The handlers consist of a set of <see cref="
CatchBlock
"/>s that can either be catch or filters.
47
private readonly ReadOnlyCollection<
CatchBlock
> _handlers;
51
internal TryExpression(Type type, Expression body, Expression @finally, Expression fault, ReadOnlyCollection<
CatchBlock
> handlers) {
83
/// Gets the collection of <see cref="
CatchBlock
"/>s associated with the try block.
85
public ReadOnlyCollection<
CatchBlock
> Handlers {
120
public TryExpression Update(Expression body, IEnumerable<
CatchBlock
> handlers, Expression @finally, Expression fault) {
154
/// <param name="handlers">The array of zero or more <see cref="
CatchBlock
"/>s representing the catch statements to be associated with the try block.</param>
156
public static TryExpression TryCatch(Expression body, params
CatchBlock
[] handlers) {
165
/// <param name="handlers">The array of zero or more <see cref="
CatchBlock
"/>s representing the catch statements to be associated with the try block.</param>
167
public static TryExpression TryCatchFinally(Expression body, Expression @finally, params
CatchBlock
[] handlers) {
178
/// <param name="handlers">A collection of <see cref="
CatchBlock
"/>s representing the catch statements to be associated with the try block.</param>
180
public static TryExpression MakeTry(Type type, Expression body, Expression @finally, Expression fault, IEnumerable<
CatchBlock
> handlers) {
202
private static void ValidateTryAndCatchHaveSameType(Type type, Expression tryBody, ReadOnlyCollection<
CatchBlock
> handlers) {
209
foreach (
var
cb in handlers) {
217
foreach (
CatchBlock
cb in handlers) {
225
foreach (
CatchBlock
cb in handlers) {
Microsoft\Scripting\Compiler\CompilerScope.cs (1)
453
return new[] { ((
CatchBlock
)scope).Variable };
Microsoft\Scripting\Compiler\ExpressionQuoter.cs (2)
101
protected override
CatchBlock
VisitCatchBlock(
CatchBlock
node) {
Microsoft\Scripting\Compiler\LambdaCompiler.Statements.cs (4)
122
return ((
CatchBlock
)node).Variable != null;
686
private void EmitSaveExceptionOrPop(
CatchBlock
cb) {
726
foreach (
CatchBlock
cb in node.Handlers) {
788
private void EmitCatchStart(
CatchBlock
cb) {
Microsoft\Scripting\Compiler\StackSpiller.cs (4)
850
ReadOnlyCollection<
CatchBlock
> handlers = node.Handlers;
851
CatchBlock
[] clone = null;
858
CatchBlock
handler = handlers[i];
902
handlers = new ReadOnlyCollection<
CatchBlock
>(clone);
Microsoft\Scripting\Compiler\VariableBinder.cs (2)
128
protected override
CatchBlock
VisitCatchBlock(
CatchBlock
node) {