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);
3223
SetResult
(node, GetAdjustedResult(type.ToTypeWithState(), slot), type);
3581
SetResult
(withExpr, resultState, resultType);
3735
SetResult
(node, result, LvalueResultType);
5110
SetResult
(node, type.ToTypeWithState(), type);
5332
SetResult
(binary, TypeWithState.ForType(binary.Type), TypeWithAnnotations.Create(binary.Type));
5347
SetResult
(binary, inferredResult, inferredResult.ToTypeWithAnnotations(compilation));
6258
SetResult
(node, TypeWithState.Create(refResultType, rValueState), TypeWithAnnotations.Create(refResultType, lValueAnnotation));
6643
SetResult
(node, returnState, method.ReturnTypeWithAnnotations);
10538
SetResult
(node, rvalueResult, lvalueResult);
10547
SetResult
(node, GetAdjustedResult(typeWithState, slot), parameterType);
10607
SetResult
(left, rightState, lvalueType, isLvalue: true);
10608
SetResult
(node, rightState, lvalueType);
10612
SetResult
(node, TypeWithState.Create(leftLValueType.Type, rightState.State), leftLValueType);
11471
SetResult
(node, typeWithState, typeWithAnnotations);
11513
SetResult
(node, resultType, indexer.TypeWithAnnotations);
11528
SetResult
(node, ResultType, LvalueResultType);
11610
SetResult
(node, resultType, type);
12874
SetResult
(node, rValueType, result);
12970
SetResult
(node.Expression, typeWithAnnotations.ToTypeWithState(), typeWithAnnotations);
13004
SetResult
(node, result.RValueType, result.LValueType);
13035
SetResult
(node, returnTypeWithAnnotations.ToTypeWithState(), returnTypeWithAnnotations);
FlowAnalysis\NullableWalker_Patterns.cs (2)
978
SetResult
(node, resultType, inferredTypeWithAnnotations);
984
SetResult
(node, resultType, inferredTypeWithAnnotations, updateAnalyzedNullability: false);