This commit is contained in:
parent
c26a672334
commit
7a1b680fa7
|
|
@ -3980,8 +3980,6 @@ namespace CodeCompletion
|
|||
{
|
||||
if (members != null && !is_static)
|
||||
{
|
||||
bool has_def_constr = false;
|
||||
|
||||
foreach (SymScope ss in members)
|
||||
{
|
||||
ProcScope ps = ss as ProcScope;
|
||||
|
|
@ -3993,10 +3991,14 @@ namespace CodeCompletion
|
|||
|
||||
ProcScope other_constr = this.FindNameOnlyInType("Create") as ProcScope;
|
||||
ProcScope constr = new ProcScope("Create", this, true);
|
||||
constr.si.acc_mod = access_modifer.public_modifer;
|
||||
if (other_constr != null && other_constr.declaringType == this)
|
||||
constr.si.acc_mod = access_modifer.protected_modifer;
|
||||
else
|
||||
constr.si.acc_mod = access_modifer.public_modifer;
|
||||
//constr.head_loc = this.loc;
|
||||
//constr.loc = this.loc;
|
||||
constr.is_constructor = true;
|
||||
|
||||
constr.Complete();
|
||||
constr.nextProc = other_constr;
|
||||
members.Insert(0, constr);
|
||||
|
|
|
|||
Loading…
Reference in a new issue