-
Notifications
You must be signed in to change notification settings - Fork 759
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #31042 from malinthar/fix-#30832
Refactor Hoverutil to filter private class fields and methods
- Loading branch information
Showing
4 changed files
with
158 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
...uage-server/modules/langserver-core/src/test/resources/hover/configs/hover_classdef3.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"source": { | ||
"file": "projectls/defmodsource3.bal" | ||
}, | ||
"position": { | ||
"line": 2, | ||
"character": 33 | ||
}, | ||
"expected": { | ||
"result": { | ||
"contents": { | ||
"kind": "markdown", | ||
"value": "Mod3\n \n \n--- \n \n### Fields \n \n`string` ***PERSON_KW*** : PERSON Keyword \n \n--- \n \n### Methods \n \n+ `function () returns string` \nGet name of the person \n" | ||
} | ||
}, | ||
"id": { | ||
"left": "324" | ||
}, | ||
"jsonrpc": "2.0" | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
...erver/modules/langserver-core/src/test/resources/hover/source/projectls/defmodsource3.bal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import projectls.lsmod3; | ||
|
||
function myFunction(lsmod3:Mod3Class obj1) { | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters