48 references to AssignmentKind
Microsoft.CodeAnalysis.CSharp (48)
FlowAnalysis\NullableWalker.cs (48)
247/// The delegate is invoked by <see cref="VisitConversion(BoundConversion, BoundExpression, Conversion, TypeWithAnnotations, TypeWithState, bool, bool, bool, AssignmentKind, ParameterSymbol, bool, bool, bool, bool, Optional<LocalState>,bool, Location, ArrayBuilder<VisitResult>)"/>.
2362AssignmentKind assignmentKind = AssignmentKind.Assignment,
2390ReportDiagnostic(assignmentKind == AssignmentKind.Return ? ErrorCode.WRN_NullReferenceReturn : ErrorCode.WRN_NullAsNonNullable, location);
2392else if (assignmentKind == AssignmentKind.Argument)
2412ReportDiagnostic(assignmentKind == AssignmentKind.Return ? ErrorCode.WRN_NullReferenceReturn : ErrorCode.WRN_NullReferenceAssignment, location);
2915assignmentKind: AssignmentKind.Assignment);
2967returnState = VisitOptionalImplicitConversion(expr, returnType, useLegacyWarnings: false, trackMembers: false, AssignmentKind.Return);
3562valueType = VisitOptionalImplicitConversion(initializer, targetTypeOpt: inferredType ? default : type, useLegacyWarnings: true, trackMembers: true, AssignmentKind.Assignment);
3780useLegacyWarnings: false, trackMembers: false, AssignmentKind.Assignment, delayCompletionForTargetType: true).completion;
3795useLegacyWarnings: false, trackMembers: false, AssignmentKind.Assignment, delayCompletionForTargetType: true).completion;
4327VisitOptionalImplicitConversion(node.Right, type, useLegacyWarnings: false, trackMembers: true, AssignmentKind.Assignment, delayCompletionForType);
4647_ = VisitOptionalImplicitConversion(expr, elementType, useLegacyWarnings: false, trackMembers: false, AssignmentKind.Assignment);
4692fromExplicitCast: false, useLegacyWarnings: false, AssignmentKind.Assignment, reportRemainingWarnings: true, reportTopLevelWarnings: false);
4704checkConversion: true, fromExplicitCast: false, useLegacyWarnings: false, AssignmentKind.Assignment, reportRemainingWarnings: false);
4806checkConversion: false, fromExplicitCast: false, useLegacyWarnings: false, AssignmentKind.Return,
5192AssignmentKind.Argument,
5230AssignmentKind.Argument);
5632TypeWithState rightResult = VisitOptionalImplicitConversion(rightOperand, targetType, useLegacyWarnings: UseLegacyWarnings(leftOperand), trackMembers: false, AssignmentKind.Assignment);
5727AssignmentKind.Assignment,
5768assignmentKind: AssignmentKind.Assignment);
6194AssignmentKind.Assignment,
7446assignmentKind: AssignmentKind.Argument,
8354AssignmentKind.Assignment,
8368private TypeWithState VisitOptionalImplicitConversion(BoundExpression expr, TypeWithAnnotations targetTypeOpt, bool useLegacyWarnings, bool trackMembers, AssignmentKind assignmentKind)
8385AssignmentKind assignmentKind,
8397bool useLegacyWarnings, bool trackMembers, AssignmentKind assignmentKind,
8431Func<TypeWithAnnotations, TypeWithState> visitConversionAsContinuation(BoundExpression expr, bool useLegacyWarnings, bool trackMembers, AssignmentKind assignmentKind, BoundExpression operand, Conversion conversion, TypeWithState operandType)
8589AssignmentKind assignmentKind,
8844AssignmentKind assignmentKind,
9168if (assignmentKind == AssignmentKind.Argument)
9394AssignmentKind assignmentKind,
9462AssignmentKind.Argument,
9613AssignmentKind assignmentKind,
9625if (assignmentKind == AssignmentKind.Argument)
10020rightState = VisitOptionalImplicitConversion(right, targetTypeOpt: discarded ? default : leftLValueType, UseLegacyWarnings(left), trackMembers: true, AssignmentKind.Assignment);
10341valueType = VisitOptionalImplicitConversion(rightPart, lvalueType, useLegacyWarnings: true, trackMembers: true, AssignmentKind.Assignment);
10358AssignmentKind.Assignment,
10486AssignmentKind assignmentKind = AssignmentKind.Assignment;
10498assignmentKind = AssignmentKind.Argument;
10551AssignmentKind.Assignment);
10620assignmentKind: AssignmentKind.Assignment);
10662ReportNullableAssignmentIfNecessary(argument, paramType, argumentType, useLegacyWarnings: false, AssignmentKind.Argument, parameterOpt: parameter);
11023AssignmentKind.Assignment);
11198AssignmentKind.ForEachIterationVariable,
11334assignmentKind: AssignmentKind.Argument,
12059_ = VisitOptionalImplicitConversion(expr, elementType, useLegacyWarnings: false, trackMembers: false, AssignmentKind.Return);