From db19caaa86f80ddc6cf8d0cd7d167d22e4e1c25b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20Kr=C3=BCger?= Date: Fri, 3 Nov 2017 10:13:17 +0100 Subject: 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. --- ICSharpCode.NRefactory/TypeSystem/IMethod.cs | 2 ++ .../TypeSystem/Implementation/TypeParameterReference.cs | 6 ++++++ 2 files changed, 8 insertions(+) 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 /// 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; -- cgit v1.2.3