7 references to WithInferredType
Microsoft.CodeAnalysis.CSharp (7)
Binder\Binder_Deconstruct.cs (1)
642
BoundLocal { DeclarationKind: BoundLocalDeclarationKind.WithExplicitType or BoundLocalDeclarationKind.
WithInferredType
, LocalSymbol: var symbol } => symbol,
Binder\Binder_Patterns.cs (1)
900
syntax: designation, localSymbol: localSymbol, localSymbol.IsVar ? BoundLocalDeclarationKind.
WithInferredType
: BoundLocalDeclarationKind.WithExplicitType, constantValueOpt: null, isNullableUnknown: false, type: declType.Type);
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
);