ballerina-lang
ballerina-lang copied to clipboard
[Improvement]: Implement the `getLocation` API for the structured type symbols
Description
Currently, the getLocation invocation for the structured type symbols described in the spec returns an empty value. As these types are defined by the user, it's optimal to override the following method for the respective type symbols.
https://github.com/ballerina-platform/ballerina-lang/blob/147e4a242878ed3196bc20d80cfb11151fa205b9/compiler/ballerina-lang/src/main/java/io/ballerina/compiler/api/impl/symbols/AbstractTypeSymbol.java#L86-L88
Describe your problem(s)
No response
Describe your solution(s)
If the getLocation implementation is the same across all the respective typeSymbols, we can write an abstract class called StructuredTypeSymbol as the parent class. Otherwise, we may have to override the given values individually.
Related area
-> Compilation
Related issue(s) (optional)
No response
Suggested label(s) (optional)
No response
Suggested assignee(s) (optional)
No response