10 references to CatchVariable
Microsoft.CodeAnalysis.CSharp (10)
Binder\Binder_Statements.cs (1)
3331
if (local?.DeclarationKind == LocalDeclarationKind.
CatchVariable
)
Binder\CatchClauseBinder.cs (1)
34
locals.Add(SourceLocalSymbol.MakeLocal(this.ContainingMemberOrLambda, this, allowRefKind: false, allowScoped: false, declarationOpt.Type, declarationOpt.Identifier, LocalDeclarationKind.
CatchVariable
, initializer: null));
Compilation\CSharpSemanticModel.cs (1)
3321
return ((object)local != null && local.DeclarationKind == LocalDeclarationKind.
CatchVariable
)
FlowAnalysis\DataFlowsOutWalker.cs (1)
162
return local?.DeclarationKind == LocalDeclarationKind.
CatchVariable
? local : null;
FlowAnalysis\DefiniteAssignment.cs (1)
2691
ReportIfUnused(local, assigned: local.DeclarationKind != LocalDeclarationKind.
CatchVariable
);
FlowAnalysis\NullableWalker.cs (1)
12012
if (local.DeclarationKind == LocalDeclarationKind.
CatchVariable
)
FlowAnalysis\VariablesDeclaredWalker.cs (1)
150
if (local?.DeclarationKind == LocalDeclarationKind.
CatchVariable
)
Symbols\LocalSymbol.cs (2)
221
return this.DeclarationKind == LocalDeclarationKind.
CatchVariable
;
281
/// tracked by the EnC diffing algorithm. For example, for <see cref="LocalDeclarationKind.
CatchVariable
"/> variable
Symbols\Source\SourceLocalSymbol.cs (1)
446
case LocalDeclarationKind.
CatchVariable
: