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);
3222
SetResult
(node, GetAdjustedResult(type.ToTypeWithState(), slot), type);
3580
SetResult
(withExpr, resultState, resultType);
3761
SetResult
(node, result, LvalueResultType);
5336
SetResult
(node, type.ToTypeWithState(), type);
5558
SetResult
(binary, TypeWithState.ForType(binary.Type), TypeWithAnnotations.Create(binary.Type));
5573
SetResult
(binary, inferredResult, inferredResult.ToTypeWithAnnotations(compilation));
6486
SetResult
(node, TypeWithState.Create(refResultType, rValueState), TypeWithAnnotations.Create(refResultType, lValueAnnotation));
6918
SetResult
(node, returnState, method.ReturnTypeWithAnnotations);
11141
SetResult
(node, rvalueResult, lvalueResult);
11150
SetResult
(node, GetAdjustedResult(typeWithState, slot), parameterType);
11210
SetResult
(left, rightState, lvalueType, isLvalue: true);
11211
SetResult
(node, rightState, lvalueType);
11215
SetResult
(node, TypeWithState.Create(leftLValueType.Type, rightState.State), leftLValueType);
12088
SetResult
(node, typeWithState, typeWithAnnotations);
12130
SetResult
(node, resultType, indexer.TypeWithAnnotations);
12145
SetResult
(node, ResultType, LvalueResultType);
12252
SetResult
(node, resultType, type);
13509
SetResult
(node, rValueType, result);
13607
SetResult
(node.Expression, typeWithAnnotations.ToTypeWithState(), typeWithAnnotations);
13645
SetResult
(node, result.RValueType, result.LValueType);
13723
SetResult
(node, returnTypeWithAnnotations.ToTypeWithState(), returnTypeWithAnnotations);
FlowAnalysis\NullableWalker_Patterns.cs (2)
1076
SetResult
(node, resultType, inferredTypeWithAnnotations);
1082
SetResult
(node, resultType, inferredTypeWithAnnotations, updateAnalyzedNullability: false);