1 instantiation of CatchBlock
System.Core (1)
Microsoft\Scripting\Ast\CatchBlock.cs (1)
175return 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. 97public 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> 114public 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> 124public 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> 137public 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> 149public 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> 163public static CatchBlock MakeCatchBlock(Type type, ParameterExpression variable, Expression body, Expression filter) {
Microsoft\Scripting\Ast\DebugViewWriter.cs (2)
1034protected override CatchBlock VisitCatchBlock(CatchBlock node) {
Microsoft\Scripting\Ast\Expression.DebuggerProxy.cs (3)
69private readonly CatchBlock _node; 71public CatchBlockProxy(CatchBlock node) { 415public ReadOnlyCollection<CatchBlock> Handlers { get { return _node.Handlers; } }
Microsoft\Scripting\Ast\ExpressionStringBuilder.cs (3)
125internal static string CatchBlockToString(CatchBlock node) { 747protected override CatchBlock VisitCatchBlock(CatchBlock node) {
Microsoft\Scripting\Ast\ExpressionVisitor.cs (3)
492/// Visits the children of the <see cref="CatchBlock" />. 497protected 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. 47private readonly ReadOnlyCollection<CatchBlock> _handlers; 51internal 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. 85public ReadOnlyCollection<CatchBlock> Handlers { 120public 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> 156public 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> 167public 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> 180public static TryExpression MakeTry(Type type, Expression body, Expression @finally, Expression fault, IEnumerable<CatchBlock> handlers) { 202private static void ValidateTryAndCatchHaveSameType(Type type, Expression tryBody, ReadOnlyCollection<CatchBlock> handlers) { 209foreach (var cb in handlers) { 217foreach (CatchBlock cb in handlers) { 225foreach (CatchBlock cb in handlers) {
Microsoft\Scripting\Compiler\CompilerScope.cs (1)
453return new[] { ((CatchBlock)scope).Variable };
Microsoft\Scripting\Compiler\ExpressionQuoter.cs (2)
101protected override CatchBlock VisitCatchBlock(CatchBlock node) {
Microsoft\Scripting\Compiler\LambdaCompiler.Statements.cs (4)
122return ((CatchBlock)node).Variable != null; 686private void EmitSaveExceptionOrPop(CatchBlock cb) { 726foreach (CatchBlock cb in node.Handlers) { 788private void EmitCatchStart(CatchBlock cb) {
Microsoft\Scripting\Compiler\StackSpiller.cs (4)
850ReadOnlyCollection<CatchBlock> handlers = node.Handlers; 851CatchBlock[] clone = null; 858CatchBlock handler = handlers[i]; 902handlers = new ReadOnlyCollection<CatchBlock>(clone);
Microsoft\Scripting\Compiler\VariableBinder.cs (2)
128protected override CatchBlock VisitCatchBlock(CatchBlock node) {