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);
3258
SetResult
(node, GetAdjustedResult(type.ToTypeWithState(), slot), type);
3616
SetResult
(withExpr, resultState, resultType);
3797
SetResult
(node, result, LvalueResultType);
5376
SetResult
(node, type.ToTypeWithState(), type);
5598
SetResult
(binary, TypeWithState.ForType(binary.Type), TypeWithAnnotations.Create(binary.Type));
5613
SetResult
(binary, inferredResult, inferredResult.ToTypeWithAnnotations(compilation));
6526
SetResult
(node, TypeWithState.Create(refResultType, rValueState), TypeWithAnnotations.Create(refResultType, lValueAnnotation));
6958
SetResult
(node, returnState, method.ReturnTypeWithAnnotations);
11191
SetResult
(node, rvalueResult, lvalueResult);
11200
SetResult
(node, GetAdjustedResult(typeWithState, slot), parameterType);
11260
SetResult
(left, rightState, lvalueType, isLvalue: true);
11261
SetResult
(node, rightState, lvalueType);
11265
SetResult
(node, TypeWithState.Create(leftLValueType.Type, rightState.State), leftLValueType);
12143
SetResult
(node, typeWithState, typeWithAnnotations);
12185
SetResult
(node, resultType, indexer.TypeWithAnnotations);
12200
SetResult
(node, ResultType, LvalueResultType);
12307
SetResult
(node, resultType, type);
13564
SetResult
(node, rValueType, result);
13662
SetResult
(node.Expression, typeWithAnnotations.ToTypeWithState(), typeWithAnnotations);
13700
SetResult
(node, result.RValueType, result.LValueType);
13779
SetResult
(node, returnTypeWithAnnotations.ToTypeWithState(), returnTypeWithAnnotations);
FlowAnalysis\NullableWalker_Patterns.cs (2)
1078
SetResult
(node, resultType, inferredTypeWithAnnotations);
1084
SetResult
(node, resultType, inferredTypeWithAnnotations, updateAnalyzedNullability: false);