6 overrides of DeclarationKind
Microsoft.CodeAnalysis.CSharp (6)
CodeGen\Optimizer.cs (1)
2344
internal override LocalDeclarationKind
DeclarationKind
FlowAnalysis\NullableWalker.PlaceholderLocal.cs (1)
53
internal override LocalDeclarationKind
DeclarationKind
=> LocalDeclarationKind.None;
Symbols\Source\SourceLocalSymbol.cs (1)
222
internal override LocalDeclarationKind
DeclarationKind
Symbols\Synthesized\SynthesizedLocal.cs (1)
108
internal sealed override LocalDeclarationKind
DeclarationKind
Symbols\Synthesized\TypeSubstitutedLocalSymbol.cs (1)
37
internal override LocalDeclarationKind
DeclarationKind
Symbols\UpdatedContainingSymbolLocal.cs (1)
84
internal override LocalDeclarationKind
DeclarationKind
=> _underlyingLocal.DeclarationKind;
20 references to DeclarationKind
Microsoft.CodeAnalysis.CSharp (20)
Binder\Binder_Statements.cs (1)
3334
if (local?.
DeclarationKind
== LocalDeclarationKind.CatchVariable)
Binder\ForEachLoopBinder.cs (1)
428
iterationVariables.All(local => local.
DeclarationKind
== LocalDeclarationKind.ForEachIterationVariable),
CodeGen\EmitStatement.cs (1)
1787
if (local.
DeclarationKind
== LocalDeclarationKind.FixedVariable && local.IsPinned) // Excludes pointer local and string local in fixed string case.
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 (3)
2261
if (local.
DeclarationKind
== LocalDeclarationKind.UsingVariable)
2325
if (symbol.
DeclarationKind
!= LocalDeclarationKind.PatternVariable && !string.IsNullOrEmpty(symbol.Name)) // avoid diagnostics for parser-inserted names
2691
ReportIfUnused(local, assigned: local.
DeclarationKind
!= LocalDeclarationKind.CatchVariable);
FlowAnalysis\NullableWalker.cs (2)
3445
if (local.
DeclarationKind
!= LocalDeclarationKind.None)
12009
if (local.
DeclarationKind
== LocalDeclarationKind.CatchVariable)
FlowAnalysis\VariablesDeclaredWalker.cs (1)
150
if (local?.
DeclarationKind
== LocalDeclarationKind.CatchVariable)
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (1)
545
Debug.Assert(l.LocalSymbol.
DeclarationKind
== LocalDeclarationKind.PatternVariable);
Lowering\MethodToClassRewriter.cs (1)
505
Debug.Assert(leftLocal.LocalSymbol.
DeclarationKind
== LocalDeclarationKind.None);
Symbols\LocalSymbol.cs (6)
221
return this.
DeclarationKind
== LocalDeclarationKind.CatchVariable;
232
return this.
DeclarationKind
== LocalDeclarationKind.Constant;
249
return this.
DeclarationKind
== LocalDeclarationKind.UsingVariable;
260
return this.
DeclarationKind
== LocalDeclarationKind.FixedVariable;
271
return this.
DeclarationKind
== LocalDeclarationKind.ForEachIterationVariable;
304
switch (this.
DeclarationKind
)
Symbols\Synthesized\TypeSubstitutedLocalSymbol.cs (1)
39
get { return _originalVariable.
DeclarationKind
; }