2 writes to DeclarationKind
Microsoft.CodeAnalysis.CSharp (2)
Generated\BoundNodes.xml.Generated.cs (2)
4513
this.
DeclarationKind
= declarationKind;
4526
this.
DeclarationKind
= declarationKind;
15 references to DeclarationKind
Microsoft.CodeAnalysis.CSharp (15)
Binder\Binder.ValueChecks.cs (2)
2389
if (argument is BoundDeconstructValuePlaceholder { VariableSymbol: not null } or BoundLocal {
DeclarationKind
: not BoundLocalDeclarationKind.None })
2767
BoundLocal {
DeclarationKind
: not BoundLocalDeclarationKind.None } l => l.LocalSymbol,
Binder\Binder_Deconstruct.cs (1)
642
BoundLocal {
DeclarationKind
: BoundLocalDeclarationKind.WithExplicitType or BoundLocalDeclarationKind.WithInferredType, LocalSymbol: var symbol } => symbol,
BoundTree\BoundExpression.cs (1)
310
return this.Update(localSymbol, this.
DeclarationKind
, constantValueOpt, this.IsNullableUnknown, type);
FlowAnalysis\NullableWalker.cs (3)
7545
if (argument is BoundLocal local && local.
DeclarationKind
== BoundLocalDeclarationKind.WithInferredType)
7991
if (argument is BoundLocal {
DeclarationKind
: BoundLocalDeclarationKind.WithInferredType } || IsTargetTypedExpression(argument))
10274
if (variable.Expression is BoundLocal {
DeclarationKind
: BoundLocalDeclarationKind.WithInferredType } local)
FlowAnalysis\NullableWalker_Patterns.cs (1)
684
var inferredType = value.ToTypeWithAnnotations(compilation, asAnnotatedType: boundLocal.
DeclarationKind
== BoundLocalDeclarationKind.WithInferredType);
FlowAnalysis\VariablesDeclaredWalker.cs (1)
179
if (IsInside && node.
DeclarationKind
!= BoundLocalDeclarationKind.None)
Generated\BoundNodes.xml.Generated.cs (5)
4542
if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(localSymbol, this.LocalSymbol) || declarationKind != this.
DeclarationKind
|| constantValueOpt != this.ConstantValueOpt || isNullableUnknown != this.IsNullableUnknown || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
11474
return node.Update(node.LocalSymbol, node.
DeclarationKind
, node.ConstantValueOpt, node.IsNullableUnknown, type);
13551
updatedNode = node.Update(localSymbol, node.
DeclarationKind
, node.ConstantValueOpt, node.IsNullableUnknown, infoAndType.Type!);
13556
updatedNode = node.Update(localSymbol, node.
DeclarationKind
, node.ConstantValueOpt, node.IsNullableUnknown, node.Type);
15989
new TreeDumperNode("declarationKind", node.
DeclarationKind
, null),
Operations\CSharpOperationFactory.cs (1)
555
bool isDeclaration = boundLocal.
DeclarationKind
!= BoundLocalDeclarationKind.None;