27 references to SetResult
Microsoft.CodeAnalysis.CSharp (27)
FlowAnalysis\NullableWalker.cs (25)
323
SetResult
(expression, resultType: type, lvalueType: type.ToTypeWithAnnotations(compilation), updateAnalyzedNullability: updateAnalyzedNullability);
347
SetResult
(expression, resultType: type.ToTypeWithState(), lvalueType: type);
355
SetResult
(expression, LvalueResultType.ToTypeWithState(), LvalueResultType, isLvalue: true);
358
private void SetInvalidResult() =>
SetResult
(expression: null, _invalidType, _invalidType.ToTypeWithAnnotations(compilation), updateAnalyzedNullability: false);
3221
SetResult
(node, GetAdjustedResult(type.ToTypeWithState(), slot), type);
3579
SetResult
(withExpr, resultState, resultType);
3733
SetResult
(node, result, LvalueResultType);
5107
SetResult
(node, type.ToTypeWithState(), type);
5329
SetResult
(binary, TypeWithState.ForType(binary.Type), TypeWithAnnotations.Create(binary.Type));
5344
SetResult
(binary, inferredResult, inferredResult.ToTypeWithAnnotations(compilation));
6255
SetResult
(node, TypeWithState.Create(refResultType, rValueState), TypeWithAnnotations.Create(refResultType, lValueAnnotation));
6682
SetResult
(node, returnState, method.ReturnTypeWithAnnotations);
10576
SetResult
(node, rvalueResult, lvalueResult);
10585
SetResult
(node, GetAdjustedResult(typeWithState, slot), parameterType);
10645
SetResult
(left, rightState, lvalueType, isLvalue: true);
10646
SetResult
(node, rightState, lvalueType);
10650
SetResult
(node, TypeWithState.Create(leftLValueType.Type, rightState.State), leftLValueType);
11505
SetResult
(node, typeWithState, typeWithAnnotations);
11547
SetResult
(node, resultType, indexer.TypeWithAnnotations);
11562
SetResult
(node, ResultType, LvalueResultType);
11644
SetResult
(node, resultType, type);
12912
SetResult
(node, rValueType, result);
13008
SetResult
(node.Expression, typeWithAnnotations.ToTypeWithState(), typeWithAnnotations);
13042
SetResult
(node, result.RValueType, result.LValueType);
13073
SetResult
(node, returnTypeWithAnnotations.ToTypeWithState(), returnTypeWithAnnotations);
FlowAnalysis\NullableWalker_Patterns.cs (2)
978
SetResult
(node, resultType, inferredTypeWithAnnotations);
984
SetResult
(node, resultType, inferredTypeWithAnnotations, updateAnalyzedNullability: false);