{"action":"created","comment":{"url":"https://api.github.com/repos/fdorg/flashdevelop/pulls/comments/33037981","id":33037981,"diff_hunk":"@@ -1381,10 +1399,48 @@ internal void OnFunctionCompletionResult(HaxeComplete hc, HaxeCompleteStatus sta\n \n                 case HaxeCompleteStatus.TYPE:\n                     hc.Expr.Position--;\n-                    ASComplete.FunctionContextResolved(hc.Sci, hc.Expr, hc.Type, null, true);\n+                    ASComplete.FunctionContextResolved(hc.Sci, hc.Expr, result.Type, null, true);\n+                    break;\n+            }\n+        }\n+\n+        public override bool HandleGotoDeclaration(ScintillaControl sci, ASExpr expression)\n+        {\n+            if (GetCurrentSDKVersion().IsOlderThan(new SemVer(\"3.2.0\")))\n+                return false;\n+\n+            var hc = new HaxeComplete(sci, expression, false, completionModeHandler, HaxeCompilerService.POSITION);\n+            hc.GetPosition(OnPositionCompletionResult);\n+            return true;\n+        }\n+\n+        internal void OnPositionCompletionResult(HaxeComplete hc, HaxePositionCompleteResult result, HaxeCompleteStatus status)\n+        {\n+            switch (status)\n+            {\n+                case HaxeCompleteStatus.ERROR:\n+                    TraceManager.AddAsync(hc.Errors, -3);\n+                    break;\n+\n+                case HaxeCompleteStatus.POSITION:\n+                    ASComplete.SaveLastLookupPosition(hc.Sci);","path":"External/Plugins/HaXeContext/Context.cs","position":null,"original_position":112,"commit_id":"4c8bc039f061220ce809319c395757a621a710f4","original_commit_id":"f8306c6be55223749b59f5f08371ac32d8d92d83","user":{"login":"Gama11","id":2620907,"avatar_url":"https://avatars.githubusercontent.com/u/2620907?v=3","gravatar_id":"","url":"https://api.github.com/users/Gama11","html_url":"https://github.com/Gama11","followers_url":"https://api.github.com/users/Gama11/followers","following_url":"https://api.github.com/users/Gama11/following{/other_user}","gists_url":"https://api.github.com/users/Gama11/gists{/gist_id}","starred_url":"https://api.github.com/users/Gama11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gama11/subscriptions","organizations_url":"https://api.github.com/users/Gama11/orgs","repos_url":"https://api.github.com/users/Gama11/repos","events_url":"https://api.github.com/users/Gama11/events{/privacy}","received_events_url":"https://api.github.com/users/Gama11/received_events","type":"User","site_admin":false},"body":"Updated. Guess two invokes are needed here for the two different `ScintillaControl`s.","created_at":"2015-06-23T13:07:34Z","updated_at":"2015-06-23T13:07:34Z","html_url":"https://github.com/fdorg/flashdevelop/pull/729#discussion_r33037981","pull_request_url":"https://api.github.com/repos/fdorg/flashdevelop/pulls/729","_links":{"self":{"href":"https://api.github.com/repos/fdorg/flashdevelop/pulls/comments/33037981"},"html":{"href":"https://github.com/fdorg/flashdevelop/pull/729#discussion_r33037981"},"pull_request":{"href":"https://api.github.com/repos/fdorg/flashdevelop/pulls/729"}}},"pull_request":{"url":"https://api.github.com/repos/fdorg/flashdevelop/pulls/729","id":36437764,"html_url":"https://github.com/fdorg/flashdevelop/pull/729","diff_url":"https://github.com/fdorg/flashdevelop/pull/729.diff","patch_url":"https://github.com/fdorg/flashdevelop/pull/729.patch","issue_url":"https://api.github.com/repos/fdorg/flashdevelop/issues/729","number":729,"state":"open","locked":false,"title":"Implement Haxe position completion, closes #702","user":{"login":"Gama11","id":2620907,"avatar_url":"https://avatars.githubusercontent.com/u/2620907?v=3","gravatar_id":"","url":"https://api.github.com/users/Gama11","html_url":"https://github.com/Gama11","followers_url":"https://api.github.com/users/Gama11/followers","following_url":"https://api.github.com/users/Gama11/following{/other_user}","gists_url":"https://api.github.com/users/Gama11/gists{/gist_id}","starred_url":"https://api.github.com/users/Gama11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gama11/subscriptions","organizations_url":"https://api.github.com/users/Gama11/orgs","repos_url":"https://api.github.com/users/Gama11/repos","events_url":"https://api.github.com/users/Gama11/events{/privacy}","received_events_url":"https://api.github.com/users/Gama11/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-05-28T18:42:21Z","updated_at":"2015-06-23T13:07:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8e9a92c49eaff0051236f874aa532348ed873e97","assignee":{"login":"elsassph","id":297963,"avatar_url":"https://avatars.githubusercontent.com/u/297963?v=3","gravatar_id":"","url":"https://api.github.com/users/elsassph","html_url":"https://github.com/elsassph","followers_url":"https://api.github.com/users/elsassph/followers","following_url":"https://api.github.com/users/elsassph/following{/other_user}","gists_url":"https://api.github.com/users/elsassph/gists{/gist_id}","starred_url":"https://api.github.com/users/elsassph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elsassph/subscriptions","organizations_url":"https://api.github.com/users/elsassph/orgs","repos_url":"https://api.github.com/users/elsassph/repos","events_url":"https://api.github.com/users/elsassph/events{/privacy}","received_events_url":"https://api.github.com/users/elsassph/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/fdorg/flashdevelop/pulls/729/commits","review_comments_url":"https://api.github.com/repos/fdorg/flashdevelop/pulls/729/comments","review_comment_url":"https://api.github.com/repos/fdorg/flashdevelop/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fdorg/flashdevelop/issues/729/comments","statuses_url":"https://api.github.com/repos/fdorg/flashdevelop/statuses/4c8bc039f061220ce809319c395757a621a710f4","head":{"label":"Gama11:PositionCompletion","ref":"PositionCompletion","sha":"4c8bc039f061220ce809319c395757a621a710f4","user":{"login":"Gama11","id":2620907,"avatar_url":"https://avatars.githubusercontent.com/u/2620907?v=3","gravatar_id":"","url":"https://api.github.com/users/Gama11","html_url":"https://github.com/Gama11","followers_url":"https://api.github.com/users/Gama11/followers","following_url":"https://api.github.com/users/Gama11/following{/other_user}","gists_url":"https://api.github.com/users/Gama11/gists{/gist_id}","starred_url":"https://api.github.com/users/Gama11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gama11/subscriptions","organizations_url":"https://api.github.com/users/Gama11/orgs","repos_url":"https://api.github.com/users/Gama11/repos","events_url":"https://api.github.com/users/Gama11/events{/privacy}","received_events_url":"https://api.github.com/users/Gama11/received_events","type":"User","site_admin":false},"repo":{"id":14020256,"name":"flashdevelop","full_name":"Gama11/flashdevelop","owner":{"login":"Gama11","id":2620907,"avatar_url":"https://avatars.githubusercontent.com/u/2620907?v=3","gravatar_id":"","url":"https://api.github.com/users/Gama11","html_url":"https://github.com/Gama11","followers_url":"https://api.github.com/users/Gama11/followers","following_url":"https://api.github.com/users/Gama11/following{/other_user}","gists_url":"https://api.github.com/users/Gama11/gists{/gist_id}","starred_url":"https://api.github.com/users/Gama11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gama11/subscriptions","organizations_url":"https://api.github.com/users/Gama11/orgs","repos_url":"https://api.github.com/users/Gama11/repos","events_url":"https://api.github.com/users/Gama11/events{/privacy}","received_events_url":"https://api.github.com/users/Gama11/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Gama11/flashdevelop","description":"FlashDevelop is a free and open source code editor.","fork":true,"url":"https://api.github.com/repos/Gama11/flashdevelop","forks_url":"https://api.github.com/repos/Gama11/flashdevelop/forks","keys_url":"https://api.github.com/repos/Gama11/flashdevelop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Gama11/flashdevelop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Gama11/flashdevelop/teams","hooks_url":"https://api.github.com/repos/Gama11/flashdevelop/hooks","issue_events_url":"https://api.github.com/repos/Gama11/flashdevelop/issues/events{/number}","events_url":"https://api.github.com/repos/Gama11/flashdevelop/events","assignees_url":"https://api.github.com/repos/Gama11/flashdevelop/assignees{/user}","branches_url":"https://api.github.com/repos/Gama11/flashdevelop/branches{/branch}","tags_url":"https://api.github.com/repos/Gama11/flashdevelop/tags","blobs_url":"https://api.github.com/repos/Gama11/flashdevelop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Gama11/flashdevelop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Gama11/flashdevelop/git/refs{/sha}","trees_url":"https://api.github.com/repos/Gama11/flashdevelop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Gama11/flashdevelop/statuses/{sha}","languages_url":"https://api.github.com/repos/Gama11/flashdevelop/languages","stargazers_url":"https://api.github.com/repos/Gama11/flashdevelop/stargazers","contributors_url":"https://api.github.com/repos/Gama11/flashdevelop/contributors","subscribers_url":"https://api.github.com/repos/Gama11/flashdevelop/subscribers","subscription_url":"https://api.github.com/repos/Gama11/flashdevelop/subscription","commits_url":"https://api.github.com/repos/Gama11/flashdevelop/commits{/sha}","git_commits_url":"https://api.github.com/repos/Gama11/flashdevelop/git/commits{/sha}","comments_url":"https://api.github.com/repos/Gama11/flashdevelop/comments{/number}","issue_comment_url":"https://api.github.com/repos/Gama11/flashdevelop/issues/comments{/number}","contents_url":"https://api.github.com/repos/Gama11/flashdevelop/contents/{+path}","compare_url":"https://api.github.com/repos/Gama11/flashdevelop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Gama11/flashdevelop/merges","archive_url":"https://api.github.com/repos/Gama11/flashdevelop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Gama11/flashdevelop/downloads","issues_url":"https://api.github.com/repos/Gama11/flashdevelop/issues{/number}","pulls_url":"https://api.github.com/repos/Gama11/flashdevelop/pulls{/number}","milestones_url":"https://api.github.com/repos/Gama11/flashdevelop/milestones{/number}","notifications_url":"https://api.github.com/repos/Gama11/flashdevelop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Gama11/flashdevelop/labels{/name}","releases_url":"https://api.github.com/repos/Gama11/flashdevelop/releases{/id}","created_at":"2013-10-31T15:09:53Z","updated_at":"2015-04-21T20:04:34Z","pushed_at":"2015-06-23T13:06:28Z","git_url":"git://github.com/Gama11/flashdevelop.git","ssh_url":"git@github.com:Gama11/flashdevelop.git","clone_url":"https://github.com/Gama11/flashdevelop.git","svn_url":"https://github.com/Gama11/flashdevelop","homepage":null,"size":70575,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"development"}},"base":{"label":"fdorg:fd5","ref":"fd5","sha":"b5041e3d02cbc5728058f77b2cbaf458e9df41ff","user":{"login":"fdorg","id":5413341,"avatar_url":"https://avatars.githubusercontent.com/u/5413341?v=3","gravatar_id":"","url":"https://api.github.com/users/fdorg","html_url":"https://github.com/fdorg","followers_url":"https://api.github.com/users/fdorg/followers","following_url":"https://api.github.com/users/fdorg/following{/other_user}","gists_url":"https://api.github.com/users/fdorg/gists{/gist_id}","starred_url":"https://api.github.com/users/fdorg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fdorg/subscriptions","organizations_url":"https://api.github.com/users/fdorg/orgs","repos_url":"https://api.github.com/users/fdorg/repos","events_url":"https://api.github.com/users/fdorg/events{/privacy}","received_events_url":"https://api.github.com/users/fdorg/received_events","type":"Organization","site_admin":false},"repo":{"id":12687065,"name":"flashdevelop","full_name":"fdorg/flashdevelop","owner":{"login":"fdorg","id":5413341,"avatar_url":"https://avatars.githubusercontent.com/u/5413341?v=3","gravatar_id":"","url":"https://api.github.com/users/fdorg","html_url":"https://github.com/fdorg","followers_url":"https://api.github.com/users/fdorg/followers","following_url":"https://api.github.com/users/fdorg/following{/other_user}","gists_url":"https://api.github.com/users/fdorg/gists{/gist_id}","starred_url":"https://api.github.com/users/fdorg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fdorg/subscriptions","organizations_url":"https://api.github.com/users/fdorg/orgs","repos_url":"https://api.github.com/users/fdorg/repos","events_url":"https://api.github.com/users/fdorg/events{/privacy}","received_events_url":"https://api.github.com/users/fdorg/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fdorg/flashdevelop","description":"FlashDevelop is a free and open source code editor.","fork":false,"url":"https://api.github.com/repos/fdorg/flashdevelop","forks_url":"https://api.github.com/repos/fdorg/flashdevelop/forks","keys_url":"https://api.github.com/repos/fdorg/flashdevelop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fdorg/flashdevelop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fdorg/flashdevelop/teams","hooks_url":"https://api.github.com/repos/fdorg/flashdevelop/hooks","issue_events_url":"https://api.github.com/repos/fdorg/flashdevelop/issues/events{/number}","events_url":"https://api.github.com/repos/fdorg/flashdevelop/events","assignees_url":"https://api.github.com/repos/fdorg/flashdevelop/assignees{/user}","branches_url":"https://api.github.com/repos/fdorg/flashdevelop/branches{/branch}","tags_url":"https://api.github.com/repos/fdorg/flashdevelop/tags","blobs_url":"https://api.github.com/repos/fdorg/flashdevelop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fdorg/flashdevelop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fdorg/flashdevelop/git/refs{/sha}","trees_url":"https://api.github.com/repos/fdorg/flashdevelop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fdorg/flashdevelop/statuses/{sha}","languages_url":"https://api.github.com/repos/fdorg/flashdevelop/languages","stargazers_url":"https://api.github.com/repos/fdorg/flashdevelop/stargazers","contributors_url":"https://api.github.com/repos/fdorg/flashdevelop/contributors","subscribers_url":"https://api.github.com/repos/fdorg/flashdevelop/subscribers","subscription_url":"https://api.github.com/repos/fdorg/flashdevelop/subscription","commits_url":"https://api.github.com/repos/fdorg/flashdevelop/commits{/sha}","git_commits_url":"https://api.github.com/repos/fdorg/flashdevelop/git/commits{/sha}","comments_url":"https://api.github.com/repos/fdorg/flashdevelop/comments{/number}","issue_comment_url":"https://api.github.com/repos/fdorg/flashdevelop/issues/comments{/number}","contents_url":"https://api.github.com/repos/fdorg/flashdevelop/contents/{+path}","compare_url":"https://api.github.com/repos/fdorg/flashdevelop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fdorg/flashdevelop/merges","archive_url":"https://api.github.com/repos/fdorg/flashdevelop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fdorg/flashdevelop/downloads","issues_url":"https://api.github.com/repos/fdorg/flashdevelop/issues{/number}","pulls_url":"https://api.github.com/repos/fdorg/flashdevelop/pulls{/number}","milestones_url":"https://api.github.com/repos/fdorg/flashdevelop/milestones{/number}","notifications_url":"https://api.github.com/repos/fdorg/flashdevelop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fdorg/flashdevelop/labels{/name}","releases_url":"https://api.github.com/repos/fdorg/flashdevelop/releases{/id}","created_at":"2013-09-08T20:28:46Z","updated_at":"2015-06-22T14:32:51Z","pushed_at":"2015-06-23T13:06:30Z","git_url":"git://github.com/fdorg/flashdevelop.git","ssh_url":"git@github.com:fdorg/flashdevelop.git","clone_url":"https://github.com/fdorg/flashdevelop.git","svn_url":"https://github.com/fdorg/flashdevelop","homepage":null,"size":83461,"stargazers_count":379,"watchers_count":379,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":97,"mirror_url":null,"open_issues_count":144,"forks":97,"open_issues":144,"watchers":379,"default_branch":"development"}},"_links":{"self":{"href":"https://api.github.com/repos/fdorg/flashdevelop/pulls/729"},"html":{"href":"https://github.com/fdorg/flashdevelop/pull/729"},"issue":{"href":"https://api.github.com/repos/fdorg/flashdevelop/issues/729"},"comments":{"href":"https://api.github.com/repos/fdorg/flashdevelop/issues/729/comments"},"review_comments":{"href":"https://api.github.com/repos/fdorg/flashdevelop/pulls/729/comments"},"review_comment":{"href":"https://api.github.com/repos/fdorg/flashdevelop/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fdorg/flashdevelop/pulls/729/commits"},"statuses":{"href":"https://api.github.com/repos/fdorg/flashdevelop/statuses/4c8bc039f061220ce809319c395757a621a710f4"}}}}