|
|
|
|
@ -870,6 +870,8 @@ namespace ICSharpCode.NRefactory.CSharp.Completion
@@ -870,6 +870,8 @@ namespace ICSharpCode.NRefactory.CSharp.Completion
|
|
|
|
|
if (this.currentMember != null) { |
|
|
|
|
var def = ctx.CurrentTypeDefinition ?? Compilation.MainAssembly.GetTypeDefinition (currentType); |
|
|
|
|
foreach (var member in def.GetMembers ()) { |
|
|
|
|
if (member is IMethod && ((IMethod)member).FullName == "System.Object.Finalize") |
|
|
|
|
continue; |
|
|
|
|
if (memberPred == null || memberPred (member)) |
|
|
|
|
wrapper.AddMember (member); |
|
|
|
|
} |
|
|
|
|
@ -1854,6 +1856,12 @@ namespace ICSharpCode.NRefactory.CSharp.Completion
@@ -1854,6 +1856,12 @@ namespace ICSharpCode.NRefactory.CSharp.Completion
|
|
|
|
|
baseUnit = ParseStub ("a;", false); |
|
|
|
|
type = baseUnit.GetNodeAt<MemberType> (location); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (type == null) { |
|
|
|
|
baseUnit = ParseStub ("A a;", false); |
|
|
|
|
type = baseUnit.GetNodeAt<MemberType> (location); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (type != null) { |
|
|
|
|
// insert target type into compilation unit, to respect the
|
|
|
|
|
var target = type.Target; |
|
|
|
|
|