27 references to SetResult
Microsoft.CodeAnalysis.CSharp (27)
FlowAnalysis\NullableWalker_Patterns.cs (2)
1170
SetResult
(node, resultType, inferredTypeWithAnnotations);
1176
SetResult
(node, resultType, inferredTypeWithAnnotations, updateAnalyzedNullability: false);
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);
3309
SetResult
(node, GetAdjustedResult(type.ToTypeWithState(), slot), type);
3667
SetResult
(withExpr, resultState, resultType);
3848
SetResult
(node, result, LvalueResultType);
5416
SetResult
(node, type.ToTypeWithState(), type);
5654
SetResult
(binary, TypeWithState.ForType(binary.Type), TypeWithAnnotations.Create(binary.Type));
5669
SetResult
(binary, inferredResult, inferredResult.ToTypeWithAnnotations(compilation));
6582
SetResult
(node, TypeWithState.Create(refResultType, rValueState), TypeWithAnnotations.Create(refResultType, lValueAnnotation));
7014
SetResult
(node, returnState, method.ReturnTypeWithAnnotations);
11282
SetResult
(node, rvalueResult, lvalueResult);
11291
SetResult
(node, GetAdjustedResult(typeWithState, slot), parameterType);
11351
SetResult
(left, rightState, lvalueType, isLvalue: true);
11352
SetResult
(node, rightState, lvalueType);
11356
SetResult
(node, TypeWithState.Create(leftLValueType.Type, rightState.State), leftLValueType);
12270
SetResult
(node, typeWithState, typeWithAnnotations);
12322
SetResult
(node, resultType, indexer.TypeWithAnnotations);
12337
SetResult
(node, ResultType, LvalueResultType);
12444
SetResult
(node, resultType, type);
13710
SetResult
(node, rValueType, result);
13808
SetResult
(node.Expression, typeWithAnnotations.ToTypeWithState(), typeWithAnnotations);
13846
SetResult
(node, result.RValueType, result.LValueType);
13925
SetResult
(node, returnTypeWithAnnotations.ToTypeWithState(), returnTypeWithAnnotations);