40 references to SetResultType
Microsoft.CodeAnalysis.CSharp (40)
FlowAnalysis\NullableWalker.cs (40)
3023SetResultType(node, TypeWithState.ForType(node.Type));
3674SetResultType(node, TypeWithState.Create(null, NullableFlowState.NotNull));
3682SetResultType(node, TypeWithState.Create(null, NullableFlowState.NotNull));
3878SetResultType(node, result, updateAnalyzedNullability: false);
4410SetResultType(node, TypeWithState.Create(node.Type, NullableFlowState.NotNull));
4523SetResultType(node, TypeWithState.Create(anonymousType, NullableFlowState.NotNull));
4555SetResultType(node, TypeWithState.Create(node.Type, NullableFlowState.NotNull));
4560SetResultType(node, TypeWithState.Create(arrayType, NullableFlowState.NotNull));
5577SetResultType(node, resultType);
5595SetResultType(node, TypeWithState.Create(node.Type, rightUnconditionalResult.State));
5629SetResultType(node, TypeWithState.Create(resultType, rightResult.State.Join(leftState)));
5708SetResultType(boundConversion, result);
5845SetResultType(node, TypeWithState.Create(resultType, NullableFlowState.MaybeDefault));
5985SetResultType(node, TypeWithState.Create(resultType, default));
6000SetResultType(node, typeWithState, updateAnalyzedNullability: false);
6168SetResultType(node, TypeWithState.Create(rvalueType, NullableFlowState.NotNull));
7396SetResultType(argumentNoConversion, stateAfterConversion, updateAnalyzedNullability: false);
8283SetResultType(node,
8425SetResultType(node, TypeWithState.Create(null, NullableFlowState.NotNull));
8450SetResultType(node, TypeWithState.Create(tupleOpt, NullableFlowState.NotNull));
9626SetResultType(node, result, updateAnalyzedNullability: false);
10152SetResultType(right, rightResultOpt.Value);
10497SetResultType(node, resultType);
10565SetResultType(node, resultTypeWithState);
10585SetResultType(node.Expression, TypeWithState.Create(node.Expression.Type, ResultType.State));
11061SetResultType(expression: null, currentPropertyGetterTypeWithState);
11286SetResultType(node, resultType);
11401SetResultType(node, InferResultNullabilityOfBinaryLogicalOperator(node, leftType, rightType));
11446SetResultType(node, reinferredGetResult.ReturnTypeWithAnnotations.ToTypeWithState());
11455SetResultType(node, TypeWithState.Create(node.Type, NullableFlowState.NotNull));
11477SetResultType(node, TypeWithState.Create(node.Type, NullableFlowState.MaybeDefault));
11497SetResultType(node, TypeWithState.ForType(type));
11559SetResultType(node, TypeWithState.Create(type, resultState));
11591SetResultType(node, TypeWithState.Create(node.Type, node.Type?.CanContainNull() != false && node.ConstantValueOpt?.IsNull == true ? NullableFlowState.MaybeDefault : NullableFlowState.NotNull));
11768SetResultType(expression, TypeWithState.Create(expression.Type, default));
11875SetResultType(node, TypeWithState.Create(node.Type, NullableFlowState.NotNull));
11890SetResultType(node, TypeWithState.Create(node.Type, NullableFlowState.NotNull));
11939SetResultType(node, TypeWithState.Create(node.Type, NullableFlowState.NotNull));
11945SetResultType(node, TypeWithState.Create(type, NullableFlowState.NotNull));
11960SetResultType(node, default);