40 references to SetResultType
Microsoft.CodeAnalysis.CSharp (40)
FlowAnalysis\NullableWalker.cs (40)
3084SetResultType(node, TypeWithState.ForType(node.Type));
3735SetResultType(node, TypeWithState.Create(null, NullableFlowState.NotNull));
3743SetResultType(node, TypeWithState.Create(null, NullableFlowState.NotNull));
3939SetResultType(node, result, updateAnalyzedNullability: false);
4471SetResultType(node, TypeWithState.Create(node.Type, NullableFlowState.NotNull));
4584SetResultType(node, TypeWithState.Create(anonymousType, NullableFlowState.NotNull));
4616SetResultType(node, TypeWithState.Create(node.Type, NullableFlowState.NotNull));
4621SetResultType(node, TypeWithState.Create(arrayType, NullableFlowState.NotNull));
5638SetResultType(node, resultType);
5656SetResultType(node, TypeWithState.Create(node.Type, rightUnconditionalResult.State));
5690SetResultType(node, TypeWithState.Create(resultType, rightResult.State.Join(leftState)));
5769SetResultType(boundConversion, result);
5906SetResultType(node, TypeWithState.Create(resultType, NullableFlowState.MaybeDefault));
6046SetResultType(node, TypeWithState.Create(resultType, default));
6061SetResultType(node, typeWithState, updateAnalyzedNullability: false);
6229SetResultType(node, TypeWithState.Create(rvalueType, NullableFlowState.NotNull));
7457SetResultType(argumentNoConversion, stateAfterConversion, updateAnalyzedNullability: false);
8344SetResultType(node,
8486SetResultType(node, TypeWithState.Create(null, NullableFlowState.NotNull));
8511SetResultType(node, TypeWithState.Create(tupleOpt, NullableFlowState.NotNull));
9687SetResultType(node, result, updateAnalyzedNullability: false);
10213SetResultType(right, rightResultOpt.Value);
10558SetResultType(node, resultType);
10626SetResultType(node, resultTypeWithState);
10646SetResultType(node.Expression, TypeWithState.Create(node.Expression.Type, ResultType.State));
11122SetResultType(expression: null, currentPropertyGetterTypeWithState);
11347SetResultType(node, resultType);
11462SetResultType(node, InferResultNullabilityOfBinaryLogicalOperator(node, leftType, rightType));
11507SetResultType(node, reinferredGetResult.ReturnTypeWithAnnotations.ToTypeWithState());
11516SetResultType(node, TypeWithState.Create(node.Type, NullableFlowState.NotNull));
11538SetResultType(node, TypeWithState.Create(node.Type, NullableFlowState.MaybeDefault));
11558SetResultType(node, TypeWithState.ForType(type));
11620SetResultType(node, TypeWithState.Create(type, resultState));
11652SetResultType(node, TypeWithState.Create(node.Type, node.Type?.CanContainNull() != false && node.ConstantValueOpt?.IsNull == true ? NullableFlowState.MaybeDefault : NullableFlowState.NotNull));
11829SetResultType(expression, TypeWithState.Create(expression.Type, default));
11936SetResultType(node, TypeWithState.Create(node.Type, NullableFlowState.NotNull));
11951SetResultType(node, TypeWithState.Create(node.Type, NullableFlowState.NotNull));
12000SetResultType(node, TypeWithState.Create(node.Type, NullableFlowState.NotNull));
12006SetResultType(node, TypeWithState.Create(type, NullableFlowState.NotNull));
12021SetResultType(node, default);