diff options
author | Mike Krüger <mkrueger@Mikes-iMac.fritz.box> | 2017-11-03 12:13:17 +0300 |
---|---|---|
committer | Mike Krüger <mkrueger@Mikes-iMac.fritz.box> | 2017-11-03 12:13:17 +0300 |
commit | db19caaa86f80ddc6cf8d0cd7d167d22e4e1c25b (patch) | |
tree | 6d490264c55fd9ce5f1aeda07863fbe029052b08 | |
parent | 95c3d31cb750b48051e3e9b604d05a69fada118f (diff) |
Added some getters to the unresolved type system.
I need to generate id strings using the unresolved type system and these are required for that.
-rw-r--r-- | ICSharpCode.NRefactory/TypeSystem/IMethod.cs | 2 | ||||
-rw-r--r-- | ICSharpCode.NRefactory/TypeSystem/Implementation/TypeParameterReference.cs | 6 |
2 files changed, 8 insertions, 0 deletions
diff --git a/ICSharpCode.NRefactory/TypeSystem/IMethod.cs b/ICSharpCode.NRefactory/TypeSystem/IMethod.cs index d73616d3..a8c79aed 100644 --- a/ICSharpCode.NRefactory/TypeSystem/IMethod.cs +++ b/ICSharpCode.NRefactory/TypeSystem/IMethod.cs @@ -47,6 +47,8 @@ namespace ICSharpCode.NRefactory.TypeSystem /// </summary> bool IsAsync { get; } + bool IsExtensionMethod { get; } + [Obsolete("Use IsPartial && !HasBody instead")] bool IsPartialMethodDeclaration { get; } diff --git a/ICSharpCode.NRefactory/TypeSystem/Implementation/TypeParameterReference.cs b/ICSharpCode.NRefactory/TypeSystem/Implementation/TypeParameterReference.cs index e6ef9400..a32e99fd 100644 --- a/ICSharpCode.NRefactory/TypeSystem/Implementation/TypeParameterReference.cs +++ b/ICSharpCode.NRefactory/TypeSystem/Implementation/TypeParameterReference.cs @@ -49,6 +49,12 @@ namespace ICSharpCode.NRefactory.TypeSystem.Implementation readonly SymbolKind ownerType; readonly int index; + public SymbolKind OwnerType { + get { + return ownerType; + } + } + public int Index { get { return index; |