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