This commit is contained in:
Бондарев Иван 2016-05-02 20:40:47 +02:00
parent 9f403ae4b6
commit 8e05ec06c7
2 changed files with 11 additions and 1 deletions

View file

@ -2524,6 +2524,11 @@ namespace CodeCompletion
SymScope[] names = returned_scopes.ToArray();
List<expression> parameters = new List<expression>();
TypeScope obj = null;
if (names.Length > 0 && names[0] is TypeScope)
{
returned_scope = names[0];
return;
}
foreach (SymScope ss in names)
{
if (ss is ProcScope && (ss as ProcScope).is_extension)

View file

@ -893,7 +893,12 @@ namespace CodeCompletion
returned_scope = names[0];
return;
}
ProcScope ps = select_method(names,_method_call.parameters!=null?_method_call.parameters.expressions.ToArray():null);
if (names.Length > 0 && names[0] is TypeScope)
{
returned_scope = names[0];
return;
}
ProcScope ps = select_method(names,_method_call.parameters!=null?_method_call.parameters.expressions.ToArray():null);
returned_scope = ps;
if (ps == null && names.Length > 0)
{