From ea9de57405cd7d40db28296888d79d969f23a78b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D0=BE=D0=BD=D0=B4=D0=B0=D1=80=D0=B5=D0=B2=20=D0=98?= =?UTF-8?q?=D0=B2=D0=B0=D0=BD?= Date: Sat, 5 Dec 2015 09:29:21 +0100 Subject: [PATCH] bug fix in intellisense: declaration of extension method with same name that static method in compiled class --- CodeCompletion/DomSyntaxTreeVisitor.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CodeCompletion/DomSyntaxTreeVisitor.cs b/CodeCompletion/DomSyntaxTreeVisitor.cs index cb3b62cef..bacab7735 100644 --- a/CodeCompletion/DomSyntaxTreeVisitor.cs +++ b/CodeCompletion/DomSyntaxTreeVisitor.cs @@ -805,6 +805,8 @@ namespace CodeCompletion if (topScope != null) { ps = topScope.FindNameOnlyInThisType(meth_name) as ProcScope; + if (ps != null && ps is CompiledMethodScope) + ps = null; if (ps == null) { ps = new ProcScope(meth_name, topScope); @@ -1082,6 +1084,8 @@ namespace CodeCompletion if (topScope != null) { ps = topScope.FindNameOnlyInThisType(meth_name) as ProcScope; + if (ps != null && ps is CompiledMethodScope) + ps = null; if (ps == null) { ps = new ProcScope(meth_name, topScope);