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);
5264
SetResult
(node, type.ToTypeWithState(), type);
5486
SetResult
(binary, TypeWithState.ForType(binary.Type), TypeWithAnnotations.Create(binary.Type));
5501
SetResult
(binary, inferredResult, inferredResult.ToTypeWithAnnotations(compilation));
6412
SetResult
(node, TypeWithState.Create(refResultType, rValueState), TypeWithAnnotations.Create(refResultType, lValueAnnotation));
6844
SetResult
(node, returnState, method.ReturnTypeWithAnnotations);
10742
SetResult
(node, rvalueResult, lvalueResult);
10751
SetResult
(node, GetAdjustedResult(typeWithState, slot), parameterType);
10811
SetResult
(left, rightState, lvalueType, isLvalue: true);
10812
SetResult
(node, rightState, lvalueType);
10816
SetResult
(node, TypeWithState.Create(leftLValueType.Type, rightState.State), leftLValueType);
11681
SetResult
(node, typeWithState, typeWithAnnotations);
11723
SetResult
(node, resultType, indexer.TypeWithAnnotations);
11738
SetResult
(node, ResultType, LvalueResultType);
11826
SetResult
(node, resultType, type);
13095
SetResult
(node, rValueType, result);
13193
SetResult
(node.Expression, typeWithAnnotations.ToTypeWithState(), typeWithAnnotations);
13227
SetResult
(node, result.RValueType, result.LValueType);
13258
SetResult
(node, returnTypeWithAnnotations.ToTypeWithState(), returnTypeWithAnnotations);
FlowAnalysis\NullableWalker_Patterns.cs (2)
978
SetResult
(node, resultType, inferredTypeWithAnnotations);
984
SetResult
(node, resultType, inferredTypeWithAnnotations, updateAnalyzedNullability: false);