|
|
|
@ -152,7 +152,7 @@ namespace ICSharpCode.NRefactory.CSharp.Completion
@@ -152,7 +152,7 @@ namespace ICSharpCode.NRefactory.CSharp.Completion
|
|
|
|
|
if (invoke.Node is ConstructorInitializer) { |
|
|
|
|
var init = (ConstructorInitializer)invoke.Node; |
|
|
|
|
if (init.ConstructorInitializerType == ConstructorInitializerType.This) { |
|
|
|
|
return factory.CreateConstructorProvider(document.GetOffset(invoke.Node.StartLocation), ctx.CurrentTypeDefinition); |
|
|
|
|
return factory.CreateConstructorProvider(document.GetOffset(invoke.Node.StartLocation), ctx.CurrentTypeDefinition, init); |
|
|
|
|
} else { |
|
|
|
|
var baseType = ctx.CurrentTypeDefinition.DirectBaseTypes.FirstOrDefault(bt => bt.Kind != TypeKind.Interface); |
|
|
|
|
if (baseType == null) { |
|
|
|
|