ide/CodeEditor/AutoCompletion: (#1020) Fixed parameters not coming up on methods
authorJerome St-Louis <jerome@ecere.com>
Wed, 21 May 2014 03:19:02 +0000 (23:19 -0400)
committerJerome St-Louis <jerome@ecere.com>
Wed, 21 May 2014 03:53:50 +0000 (23:53 -0400)
ide/src/designer/findCtx.ec

index 206f6b0..14918df 100644 (file)
@@ -262,6 +262,8 @@ Identifier FindCtxExpression(Expression exp, int line, int charPos)
                arg++;
             }
 
+            if(type && type.kind == methodType && type.method)
+               type = type.method.dataType;
 
             if(!ctxInsideExp && /*ctxInsideExp == exp && */type && type.kind == functionType)
             {