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