This commit is contained in:
Ivan Bondarev 2020-12-31 10:44:37 +01:00
parent 5acf2515ba
commit ed9defc566
3 changed files with 16 additions and 0 deletions

View file

@ -2921,6 +2921,13 @@ namespace CodeCompletion
} }
} }
else if (returned_scope is ProcScope)
{
method_call mc = new method_call(_dot_node, new expression_list());
search_all = true;
mc.visit(this);
return;
}
} }
if (returned_scope != null && returned_scope is ProcScope && (returned_scope as ProcScope).return_type != null) if (returned_scope != null && returned_scope is ProcScope && (returned_scope as ProcScope).return_type != null)

View file

@ -902,6 +902,12 @@ namespace CodeCompletion
return; return;
} }
} }
else if (ps != null)
{
method_call mc = new method_call(_dot_node, new expression_list());
mc.visit(this);
return;
}
if (tmp_tn is ElementScope && stv != null) if (tmp_tn is ElementScope && stv != null)
{ {
List<ProcScope> procs = stv.entry_scope.GetExtensionMethods((_dot_node.right as ident).name, (tmp_tn as ElementScope).sc as TypeScope); List<ProcScope> procs = stv.entry_scope.GetExtensionMethods((_dot_node.right as ident).name, (tmp_tn as ElementScope).sc as TypeScope);

View file

@ -0,0 +1,3 @@
begin
var a{@var a: sequence of integer;@} := ArrRandom(7, 10, 99).Reverse.Println();
end.