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>)"/>.
2301AssignmentKind assignmentKind = AssignmentKind.Assignment,
2329ReportDiagnostic(assignmentKind == AssignmentKind.Return ? ErrorCode.WRN_NullReferenceReturn : ErrorCode.WRN_NullAsNonNullable, location);
2331else if (assignmentKind == AssignmentKind.Argument)
2351ReportDiagnostic(assignmentKind == AssignmentKind.Return ? ErrorCode.WRN_NullReferenceReturn : ErrorCode.WRN_NullReferenceAssignment, location);
2854assignmentKind: AssignmentKind.Assignment);
2906returnState = VisitOptionalImplicitConversion(expr, returnType, useLegacyWarnings: false, trackMembers: false, AssignmentKind.Return);
3501valueType = VisitOptionalImplicitConversion(initializer, targetTypeOpt: inferredType ? default : type, useLegacyWarnings: true, trackMembers: true, AssignmentKind.Assignment);
3719useLegacyWarnings: false, trackMembers: false, AssignmentKind.Assignment, delayCompletionForTargetType: true).completion;
3734useLegacyWarnings: false, trackMembers: false, AssignmentKind.Assignment, delayCompletionForTargetType: true).completion;
4266VisitOptionalImplicitConversion(node.Right, type, useLegacyWarnings: false, trackMembers: true, AssignmentKind.Assignment, delayCompletionForType);
4586_ = VisitOptionalImplicitConversion(expr, elementType, useLegacyWarnings: false, trackMembers: false, AssignmentKind.Assignment);
4631fromExplicitCast: false, useLegacyWarnings: false, AssignmentKind.Assignment, reportRemainingWarnings: true, reportTopLevelWarnings: false);
4643checkConversion: true, fromExplicitCast: false, useLegacyWarnings: false, AssignmentKind.Assignment, reportRemainingWarnings: false);
4745checkConversion: false, fromExplicitCast: false, useLegacyWarnings: false, AssignmentKind.Return,
5131AssignmentKind.Argument,
5169AssignmentKind.Argument);
5571TypeWithState rightResult = VisitOptionalImplicitConversion(rightOperand, targetType, useLegacyWarnings: UseLegacyWarnings(leftOperand), trackMembers: false, AssignmentKind.Assignment);
5666AssignmentKind.Assignment,
5707assignmentKind: AssignmentKind.Assignment);
6133AssignmentKind.Assignment,
7385assignmentKind: AssignmentKind.Argument,
8293AssignmentKind.Assignment,
8307private TypeWithState VisitOptionalImplicitConversion(BoundExpression expr, TypeWithAnnotations targetTypeOpt, bool useLegacyWarnings, bool trackMembers, AssignmentKind assignmentKind)
8324AssignmentKind assignmentKind,
8336bool useLegacyWarnings, bool trackMembers, AssignmentKind assignmentKind,
8370Func<TypeWithAnnotations, TypeWithState> visitConversionAsContinuation(BoundExpression expr, bool useLegacyWarnings, bool trackMembers, AssignmentKind assignmentKind, BoundExpression operand, Conversion conversion, TypeWithState operandType)
8528AssignmentKind assignmentKind,
8783AssignmentKind assignmentKind,
9107if (assignmentKind == AssignmentKind.Argument)
9333AssignmentKind assignmentKind,
9401AssignmentKind.Argument,
9552AssignmentKind assignmentKind,
9564if (assignmentKind == AssignmentKind.Argument)
9959rightState = VisitOptionalImplicitConversion(right, targetTypeOpt: discarded ? default : leftLValueType, UseLegacyWarnings(left), trackMembers: true, AssignmentKind.Assignment);
10280valueType = VisitOptionalImplicitConversion(rightPart, lvalueType, useLegacyWarnings: true, trackMembers: true, AssignmentKind.Assignment);
10297AssignmentKind.Assignment,
10425AssignmentKind assignmentKind = AssignmentKind.Assignment;
10437assignmentKind = AssignmentKind.Argument;
10490AssignmentKind.Assignment);
10559assignmentKind: AssignmentKind.Assignment);
10601ReportNullableAssignmentIfNecessary(argument, paramType, argumentType, useLegacyWarnings: false, AssignmentKind.Argument, parameterOpt: parameter);
10962AssignmentKind.Assignment);
11137AssignmentKind.ForEachIterationVariable,
11273assignmentKind: AssignmentKind.Argument,
11998_ = VisitOptionalImplicitConversion(expr, elementType, useLegacyWarnings: false, trackMembers: false, AssignmentKind.Return);