24 references to SetResult
Microsoft.CodeAnalysis.CSharp (24)
FlowAnalysis\NullableWalker.cs (22)
298
SetResult
(expression, resultType: type, lvalueType: type.ToTypeWithAnnotations(compilation), updateAnalyzedNullability: updateAnalyzedNullability);
322
SetResult
(expression, resultType: type.ToTypeWithState(), lvalueType: type);
330
SetResult
(expression, LvalueResultType.ToTypeWithState(), LvalueResultType, isLvalue: true);
333
private void SetInvalidResult() =>
SetResult
(expression: null, _invalidType, _invalidType.ToTypeWithAnnotations(compilation), updateAnalyzedNullability: false);
3039
SetResult
(node, GetAdjustedResult(type.ToTypeWithState(), slot), type);
3397
SetResult
(withExpr, resultState, resultType);
3553
SetResult
(node, result, LvalueResultType);
4831
SetResult
(node, type.ToTypeWithState(), type);
5068
SetResult
(binary, inferredResult, inferredResult.ToTypeWithAnnotations(compilation));
5921
SetResult
(node, TypeWithState.Create(refResultType, rValueState), TypeWithAnnotations.Create(refResultType, lValueAnnotation));
6300
SetResult
(node, returnState, method.ReturnTypeWithAnnotations);
9918
SetResult
(node, rvalueResult, lvalueResult);
9927
SetResult
(node, GetAdjustedResult(typeWithState, slot), parameterType);
9973
SetResult
(left, rightState, lvalueType, isLvalue: true);
9974
SetResult
(node, rightState, lvalueType);
9978
SetResult
(node, TypeWithState.Create(leftLValueType.Type, rightState.State), leftLValueType);
10703
SetResult
(node, resultType, indexer.TypeWithAnnotations);
10718
SetResult
(node, ResultType, LvalueResultType);
10799
SetResult
(node, resultType, type);
11953
SetResult
(node, rValueType, result);
12049
SetResult
(node.Expression, typeWithAnnotations.ToTypeWithState(), typeWithAnnotations);
12114
SetResult
(node, returnTypeWithAnnotations.ToTypeWithState(), returnTypeWithAnnotations);
FlowAnalysis\NullableWalker_Patterns.cs (2)
976
SetResult
(node, resultType, inferredTypeWithAnnotations);
982
SetResult
(node, resultType, inferredTypeWithAnnotations, updateAnalyzedNullability: false);