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