This commit is contained in:
Бондарев Иван 2017-06-10 23:46:17 +02:00
parent d464de48c4
commit f58e6b5603
2 changed files with 8 additions and 1 deletions

View file

@ -1472,7 +1472,12 @@ namespace CodeCompletion
ps.is_static = _function_header.class_keyword;
if (add_doc_from_text && this.converter.controller.docs != null && this.converter.controller.docs.ContainsKey(_function_header))
ps.AddDocumentation(this.converter.controller.docs[_function_header]);
if (is_proc_realization) ps.already_defined = true;
if (is_proc_realization)
{
ps.already_defined = true;
if (ps.loc == null)
ps.loc = loc;
}
else
{
ps.loc = loc;

View file

@ -1883,6 +1883,8 @@ namespace CodeCompletion
return this;
ProcScope instance = new ProcScope(this.name, this.topScope, this.is_constructor);
instance.is_extension = this.is_extension;
instance.loc = this.loc;
instance.body_loc = this.body_loc;
instance.parameters = new List<ElementScope>(this.parameters.Count);
int i = 0;
foreach (ElementScope parameter in this.parameters)