10 references to ReturnBehavior
Microsoft.CodeAnalysis.Features (10)
ExtractMethod\MethodExtractor.CodeGenerator.cs (1)
263
if (variables.Any(v => v.ReturnBehavior ==
ReturnBehavior
.Initialization))
ExtractMethod\MethodExtractor.VariableInfo.cs (4)
36
Contract.ThrowIfFalse(!_useAsReturnValue || _variableStyle.ReturnStyle.ReturnBehavior !=
ReturnBehavior
.None);
45
return _variableStyle.ReturnStyle.ReturnBehavior !=
ReturnBehavior
.None;
71
public
ReturnBehavior
ReturnBehavior
80
return
ReturnBehavior
.None;
ExtractMethod\ReturnStyle.cs (5)
9
ReturnBehavior
ReturnBehavior,
13
new(ParameterBehavior.None,
ReturnBehavior
.None, DeclarationBehavior.None);
16
new(ParameterBehavior.Input,
ReturnBehavior
.Assignment, DeclarationBehavior.None);
19
new(ParameterBehavior.None,
ReturnBehavior
.Assignment, DeclarationBehavior.SplitIn);
22
new(ParameterBehavior.None,
ReturnBehavior
.Initialization, DeclarationBehavior.SplitOut);