1 write to ExceptionTypeOpt
Microsoft.CodeAnalysis.CSharp (1)
Generated\BoundNodes.xml.Generated.cs (1)
4269
this.
ExceptionTypeOpt
= exceptionTypeOpt;
17 references to ExceptionTypeOpt
Microsoft.CodeAnalysis.CSharp (17)
BoundTree\BoundNode_Source.cs (1)
39
append(catchBlock.
ExceptionTypeOpt
?.Name);
CodeGen\EmitStatement.cs (4)
1048
var exceptionType = ((object)catchBlock.
ExceptionTypeOpt
!= null) ?
1049
_module.Translate(catchBlock.
ExceptionTypeOpt
, catchBlock.Syntax, _diagnostics.DiagnosticBag) :
1094
if ((object)catchBlock.
ExceptionTypeOpt
!= null)
1096
var exceptionType = _module.Translate(catchBlock.
ExceptionTypeOpt
, catchBlock.Syntax, _diagnostics.DiagnosticBag);
CodeGen\Optimizer.cs (2)
1742
var exceptionTypeOpt = this.VisitType(node.
ExceptionTypeOpt
);
2289
var type = node.
ExceptionTypeOpt
;
Generated\BoundNodes.xml.Generated.cs (4)
4289
if (locals != this.Locals || exceptionSourceOpt != this.ExceptionSourceOpt || !TypeSymbol.Equals(exceptionTypeOpt, this.
ExceptionTypeOpt
, TypeCompareKind.ConsiderEverything) || exceptionFilterPrologueOpt != this.ExceptionFilterPrologueOpt || exceptionFilterOpt != this.ExceptionFilterOpt || body != this.Body || isSynthesizedAsyncCatchAll != this.IsSynthesizedAsyncCatchAll)
11439
TypeSymbol? exceptionTypeOpt = this.VisitType(node.
ExceptionTypeOpt
);
13465
TypeSymbol? exceptionTypeOpt = GetUpdatedSymbol(node, node.
ExceptionTypeOpt
);
15935
new TreeDumperNode("exceptionTypeOpt", node.
ExceptionTypeOpt
, null),
Lowering\AsyncRewriter\AsyncExceptionHandlerRewriter.cs (1)
554
var catchType = node.
ExceptionTypeOpt
?? _F.SpecialType(SpecialType.System_Object);
Lowering\ClosureConversion\ClosureConversion.cs (1)
1275
var exceptionTypeOpt = this.VisitType(node.
ExceptionTypeOpt
);
Lowering\LocalRewriter\LocalRewriter_TryStatement.cs (1)
90
TypeSymbol? rewrittenExceptionTypeOpt = this.VisitType(node.
ExceptionTypeOpt
);
Lowering\MethodToClassRewriter.cs (1)
138
this.VisitType(node.
ExceptionTypeOpt
),
Lowering\SpillSequenceSpiller.cs (1)
724
TypeSymbol exceptionTypeOpt = this.VisitType(node.
ExceptionTypeOpt
);
Operations\CSharpOperationFactory.cs (1)
2012
ITypeSymbol exceptionType = boundCatchBlock.
ExceptionTypeOpt
.GetPublicSymbol() ?? _semanticModel.Compilation.ObjectType;