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);
3220
SetResult
(node, GetAdjustedResult(type.ToTypeWithState(), slot), type);
3578
SetResult
(withExpr, resultState, resultType);
3732
SetResult
(node, result, LvalueResultType);
5106
SetResult
(node, type.ToTypeWithState(), type);
5328
SetResult
(binary, TypeWithState.ForType(binary.Type), TypeWithAnnotations.Create(binary.Type));
5343
SetResult
(binary, inferredResult, inferredResult.ToTypeWithAnnotations(compilation));
6254
SetResult
(node, TypeWithState.Create(refResultType, rValueState), TypeWithAnnotations.Create(refResultType, lValueAnnotation));
6681
SetResult
(node, returnState, method.ReturnTypeWithAnnotations);
10574
SetResult
(node, rvalueResult, lvalueResult);
10583
SetResult
(node, GetAdjustedResult(typeWithState, slot), parameterType);
10643
SetResult
(left, rightState, lvalueType, isLvalue: true);
10644
SetResult
(node, rightState, lvalueType);
10648
SetResult
(node, TypeWithState.Create(leftLValueType.Type, rightState.State), leftLValueType);
11503
SetResult
(node, typeWithState, typeWithAnnotations);
11545
SetResult
(node, resultType, indexer.TypeWithAnnotations);
11560
SetResult
(node, ResultType, LvalueResultType);
11642
SetResult
(node, resultType, type);
12910
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);