This commit is contained in:
Бондарев Иван 2019-12-27 11:51:57 +01:00
parent 1bc89d8ffc
commit 0c97ac63fa
2 changed files with 10 additions and 1 deletions

View file

@ -6589,7 +6589,11 @@ namespace CodeCompletion
List<PascalABCCompiler.TreeConverter.SymbolInfo> sil = PascalABCCompiler.NetHelper.NetHelper.FindNameIncludeProtected(ctn, name); List<PascalABCCompiler.TreeConverter.SymbolInfo> sil = PascalABCCompiler.NetHelper.NetHelper.FindNameIncludeProtected(ctn, name);
//IEnumerable<MemberInfo> ext_meths = PascalABCCompiler.NetHelper.NetHelper.GetExtensionMethods(ctn); //IEnumerable<MemberInfo> ext_meths = PascalABCCompiler.NetHelper.NetHelper.GetExtensionMethods(ctn);
List<ProcScope> pascal_ext_meths = this.GetExtensionMethods(name, this); List<ProcScope> pascal_ext_meths = this.GetExtensionMethods(name, this);
if (sil != null && sil.Count > 1 && sil.FirstOrDefault().sym_info.semantic_node_type == semantic_node_type.basic_property_node)
{
sil.Add(sil.FirstOrDefault());
sil.RemoveAt(0);
}
if (sil == null && names.Count == 0) if (sil == null && names.Count == 0)
{ {
if (string.Compare(name, "Create", true) == 0 && this.ctn != typeof(object)) if (string.Compare(name, "Create", true) == 0 && this.ctn != typeof(object))

View file

@ -0,0 +1,5 @@
begin
var l := Lst(1,2,3,4);
l.Count{@(расширение sequence of T) function Count<integer>(predicate: integer->boolean): integer;@}(i->i>2).Print;
writeln(l.Count{@property List<>.Count: integer; virtual; readonly;@});
end.