27 references to DeclarationBehavior
Microsoft.CodeAnalysis.Features (27)
ExtractMethod\MethodExtractor.Analyzer.cs (3)
502
variableStyle.ParameterStyle.DeclarationBehavior !=
DeclarationBehavior
.None)
504
Contract.ThrowIfFalse(variableStyle.ParameterStyle.DeclarationBehavior ==
DeclarationBehavior
.MoveIn || variableStyle.ParameterStyle.DeclarationBehavior ==
DeclarationBehavior
.SplitIn);
ExtractMethod\MethodExtractor.AnalyzerResult.cs (6)
70
v => v.GetDeclarationBehavior() is
DeclarationBehavior
.SplitIn or
DeclarationBehavior
.MoveIn);
77
=> Variables.Where(v => v.GetDeclarationBehavior() ==
DeclarationBehavior
.MoveIn);
80
=> Variables.Where(v => v.GetDeclarationBehavior() is
DeclarationBehavior
.MoveOut);
83
=> Variables.Where(v => v.GetDeclarationBehavior() is
DeclarationBehavior
.SplitOut or
DeclarationBehavior
.MoveOut);
ExtractMethod\MethodExtractor.CodeGenerator.cs (2)
319
DeclarationBehavior
.MoveOut or
320
DeclarationBehavior
.MoveIn);
ExtractMethod\MethodExtractor.VariableInfo.cs (1)
66
public
DeclarationBehavior
GetDeclarationBehavior()
ExtractMethod\ParameterStyle.cs (10)
9
DeclarationBehavior
DeclarationBehavior)
12
new(ParameterBehavior.None,
DeclarationBehavior
.None);
15
new(ParameterBehavior.Input,
DeclarationBehavior
.None);
18
new(ParameterBehavior.None,
DeclarationBehavior
.MoveOut);
21
new(ParameterBehavior.None,
DeclarationBehavior
.SplitOut);
24
new(ParameterBehavior.None,
DeclarationBehavior
.MoveIn);
27
new(ParameterBehavior.None,
DeclarationBehavior
.SplitIn);
30
new(ParameterBehavior.Out,
DeclarationBehavior
.None);
33
new(ParameterBehavior.Ref,
DeclarationBehavior
.None);
36
new(ParameterBehavior.Out,
DeclarationBehavior
.MoveOut);
ExtractMethod\ReturnStyle.cs (5)
10
DeclarationBehavior
DeclarationBehavior)
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);