ballerina-platform / ballerina-dev-tools

Ballerina Developer Tooling
http://ballerina.io
Apache License 2.0
114 stars 42 forks source link

Add an API to get the visible variable types for the given cursor position #412

Closed nipunayf closed 4 days ago

nipunayf commented 1 week ago

Description

This PR adds support for retrieving visible variable types for a given cursor position. This is primarily used to determine the in-scope variables for the inline data mapper. The visibleVariableTypes method retrieves and categorizes visible variable types based on their scope (module, configurable, local).