This commit is contained in:
Бондарев Иван 2018-05-08 20:07:55 +02:00
parent 061c066a71
commit 05e298882a

View file

@ -4179,8 +4179,8 @@ namespace CodeCompletion
List<SymInfo> lst = new List<SymInfo>();
foreach (SymScope ss in members)
{
if (ss is ProcScope && (ss as ProcScope).IsConstructor())
continue;
//if (ss is ProcScope && (ss as ProcScope).IsConstructor())
// continue;
if (!ss.si.name.StartsWith("$"))
{
if (ss.si.acc_mod == access_modifer.private_modifer)
@ -5838,6 +5838,14 @@ namespace CodeCompletion
//syms.Add(new SymInfo(mi.Name,SymbolKind.Event,mi.Name));
}
break;
case MemberTypes.Constructor:
if (((mi as ConstructorInfo).IsPublic || (mi as ConstructorInfo).IsFamily))
{
SymInfo si2 = new SymInfo(null, SymbolKind.Method, null);
si2 = new CompiledConstructorScope(si2, mi as ConstructorInfo, this).si;
syms.Add(si2);
}
break;
}
}
}