21 references to BoundLocalDeclarationKind
Microsoft.CodeAnalysis.CSharp (21)
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 (3)
642
BoundLocal { DeclarationKind:
BoundLocalDeclarationKind
.WithExplicitType or
BoundLocalDeclarationKind
.WithInferredType, LocalSymbol: var symbol } => symbol,
910
return new BoundLocal(syntax, localSymbol,
BoundLocalDeclarationKind
.WithExplicitType, constantValueOpt: null, isNullableUnknown: false, type: declTypeWithAnnotations.Type, hasErrors: hasErrors);
Binder\Binder_Expressions.cs (2)
2069
return new BoundLocal(node, localSymbol,
BoundLocalDeclarationKind
.None, constantValueOpt: constantValueOpt, isNullableUnknown: isNullableUnknown, type: type, hasErrors: isError);
3191
return new BoundLocal(declarationExpression, localSymbol,
BoundLocalDeclarationKind
.WithExplicitType, constantValueOpt: null, isNullableUnknown: false, type: declType.Type);
Binder\Binder_Patterns.cs (2)
900
syntax: designation, localSymbol: localSymbol, localSymbol.IsVar ?
BoundLocalDeclarationKind
.WithInferredType :
BoundLocalDeclarationKind
.WithExplicitType, constantValueOpt: null, isNullableUnknown: false, type: declType.Type);
BoundTree\BoundExpression.cs (1)
304
: this(syntax, localSymbol,
BoundLocalDeclarationKind
.None, constantValueOpt, false, type, hasErrors)
BoundTree\VariablePendingInference.cs (1)
76
return new BoundLocal(this.Syntax, localSymbol,
BoundLocalDeclarationKind
.WithInferredType, constantValueOpt: null, isNullableUnknown: false, type: type.Type, hasErrors: this.HasErrors || inferenceFailed).WithWasConverted();
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 (4)
4505
public BoundLocal(SyntaxNode syntax, LocalSymbol localSymbol,
BoundLocalDeclarationKind
declarationKind, ConstantValue? constantValueOpt, bool isNullableUnknown, TypeSymbol type, bool hasErrors)
4518
public BoundLocal(SyntaxNode syntax, LocalSymbol localSymbol,
BoundLocalDeclarationKind
declarationKind, ConstantValue? constantValueOpt, bool isNullableUnknown, TypeSymbol type)
4533
public
BoundLocalDeclarationKind
DeclarationKind { get; }
4540
public BoundLocal Update(LocalSymbol localSymbol,
BoundLocalDeclarationKind
declarationKind, ConstantValue? constantValueOpt, bool isNullableUnknown, TypeSymbol type)
Operations\CSharpOperationFactory.cs (1)
555
bool isDeclaration = boundLocal.DeclarationKind !=
BoundLocalDeclarationKind
.None;