1
// Copyright (c) 2010-2013 AlphaSierraPapa for the SharpDevelop Team
3
// Permission is hereby granted, free of charge, to any person obtaining a copy of this
4
// software and associated documentation files (the "Software"), to deal in the Software
5
// without restriction, including without limitation the rights to use, copy, modify, merge,
6
// publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons
7
// to whom the Software is furnished to do so, subject to the following conditions:
9
// The above copyright notice and this permission notice shall be included in all copies or
10
// substantial portions of the Software.
12
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
13
// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
14
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
15
// FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
16
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
17
// DEALINGS IN THE SOFTWARE.
20
using System.Collections.Generic;
21
using System.Diagnostics.Contracts;
23
namespace ICSharpCode.NRefactory.TypeSystem
25
public interface IUnresolvedParameter
28
/// Gets the name of the variable.
33
/// Gets the declaration region of the variable.
35
DomRegion Region { get; }
38
/// Gets the type of the variable.
40
ITypeReference Type { get; }
43
/// Gets the list of attributes.
45
IList<IUnresolvedAttribute> Attributes { get; }
48
/// Gets whether this parameter is a C# 'ref' parameter.
53
/// Gets whether this parameter is a C# 'out' parameter.
58
/// Gets whether this parameter is a C# 'params' parameter.
60
bool IsParams { get; }
63
/// Gets whether this parameter is optional.
65
bool IsOptional { get; }
67
IParameter CreateResolvedParameter(ITypeResolveContext context);
70
public interface IParameter : IVariable
73
/// Gets the list of attributes.
75
IList<IAttribute> Attributes { get; }
78
/// Gets whether this parameter is a C# 'ref' parameter.
83
/// Gets whether this parameter is a C# 'out' parameter.
88
/// Gets whether this parameter is a C# 'params' parameter.
90
bool IsParams { get; }
93
/// Gets whether this parameter is optional.
94
/// The default value is given by the <see cref="IVariable.ConstantValue"/> property.
96
bool IsOptional { get; }