blob: 9f7d8625c4568632051d51717adba0c1330be40d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
namespace ICSharpCode.NRefactory6.CSharp.ExtractMethod
{
class ReturnStyle
{
public ParameterBehavior ParameterBehavior { get; private set; }
public ReturnBehavior ReturnBehavior { get; private set; }
public DeclarationBehavior DeclarationBehavior { get; private set; }
public static readonly ReturnStyle None =
new ReturnStyle() { ParameterBehavior = ParameterBehavior.None, ReturnBehavior = ReturnBehavior.None, DeclarationBehavior = DeclarationBehavior.None };
public static readonly ReturnStyle AssignmentWithInput =
new ReturnStyle() { ParameterBehavior = ParameterBehavior.Input, ReturnBehavior = ReturnBehavior.Assignment, DeclarationBehavior = DeclarationBehavior.None };
public static readonly ReturnStyle AssignmentWithNoInput =
new ReturnStyle() { ParameterBehavior = ParameterBehavior.None, ReturnBehavior = ReturnBehavior.Assignment, DeclarationBehavior = DeclarationBehavior.SplitIn };
public static readonly ReturnStyle Initialization =
new ReturnStyle() { ParameterBehavior = ParameterBehavior.None, ReturnBehavior = ReturnBehavior.Initialization, DeclarationBehavior = DeclarationBehavior.SplitOut };
}
}
|