From 083e138e9f7d0976e1a27a48be6aff702287a828 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Minisini?= Date: Sat, 12 Sep 2015 18:37:46 +0000 Subject: [PATCH] [DEVELOPMENT ENVIRONMENT] * BUG: "F2" now correctly finds the definition of classes used as method or array. git-svn-id: svn://localhost/gambas/trunk@7302 867c0c6c-44f3-4631-809d-bfa615b0a4ec --- app/src/gambas3/.src/Editor/Code/FEditor.class | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/src/gambas3/.src/Editor/Code/FEditor.class b/app/src/gambas3/.src/Editor/Code/FEditor.class index a3801f5fd..da6c393ae 100644 --- a/app/src/gambas3/.src/Editor/Code/FEditor.class +++ b/app/src/gambas3/.src/Editor/Code/FEditor.class @@ -2128,6 +2128,14 @@ Private Function GetExpressionSymbol(aExpr As String[], aType As Integer[]) As C 'ENDIF + If Not $hSymbol Then + If sPattern = "(" Then + Try $hSymbol = CComponent.GetClassSymbols(sType)["_call"] + Else If sPattern = "[" Then + Try $hSymbol = CComponent.GetClassSymbols(sType)["_get"] + Endif + Endif + Return $hSymbol End