25 references to SetResult
Microsoft.CodeAnalysis.CSharp (25)
FlowAnalysis\NullableWalker.cs (23)
304
SetResult
(expression, resultType: type, lvalueType: type.ToTypeWithAnnotations(compilation), updateAnalyzedNullability: updateAnalyzedNullability);
328
SetResult
(expression, resultType: type.ToTypeWithState(), lvalueType: type);
336
SetResult
(expression, LvalueResultType.ToTypeWithState(), LvalueResultType, isLvalue: true);
339
private void SetInvalidResult() =>
SetResult
(expression: null, _invalidType, _invalidType.ToTypeWithAnnotations(compilation), updateAnalyzedNullability: false);
3197
SetResult
(node, GetAdjustedResult(type.ToTypeWithState(), slot), type);
3555
SetResult
(withExpr, resultState, resultType);
3711
SetResult
(node, result, LvalueResultType);
4994
SetResult
(node, type.ToTypeWithState(), type);
5231
SetResult
(binary, inferredResult, inferredResult.ToTypeWithAnnotations(compilation));
6080
SetResult
(node, TypeWithState.Create(refResultType, rValueState), TypeWithAnnotations.Create(refResultType, lValueAnnotation));
6485
SetResult
(node, returnState, method.ReturnTypeWithAnnotations);
10276
SetResult
(node, rvalueResult, lvalueResult);
10285
SetResult
(node, GetAdjustedResult(typeWithState, slot), parameterType);
10345
SetResult
(left, rightState, lvalueType, isLvalue: true);
10346
SetResult
(node, rightState, lvalueType);
10350
SetResult
(node, TypeWithState.Create(leftLValueType.Type, rightState.State), leftLValueType);
11098
SetResult
(node, typeWithState, typeWithAnnotations);
11140
SetResult
(node, resultType, indexer.TypeWithAnnotations);
11155
SetResult
(node, ResultType, LvalueResultType);
11237
SetResult
(node, resultType, type);
12391
SetResult
(node, rValueType, result);
12487
SetResult
(node.Expression, typeWithAnnotations.ToTypeWithState(), typeWithAnnotations);
12552
SetResult
(node, returnTypeWithAnnotations.ToTypeWithState(), returnTypeWithAnnotations);
FlowAnalysis\NullableWalker_Patterns.cs (2)
976
SetResult
(node, resultType, inferredTypeWithAnnotations);
982
SetResult
(node, resultType, inferredTypeWithAnnotations, updateAnalyzedNullability: false);