This commit is contained in:
parent
1bc89d8ffc
commit
0c97ac63fa
|
|
@ -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))
|
||||||
|
|
|
||||||
5
TestSuite/intellisense_tests/extensionmethods11.pas
Normal file
5
TestSuite/intellisense_tests/extensionmethods11.pas
Normal 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.
|
||||||
Loading…
Reference in a new issue