[Improvement]: Implement the getLocation
API for the structured type symbols
#42725
Labels
Area/SemanticAPI
Semantic API Related Issues #Compiler
Team/CompilerFETools
Semantic API, Formatter, Shell
Type/Improvement
Milestone
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.ballerina-lang/compiler/ballerina-lang/src/main/java/io/ballerina/compiler/api/impl/symbols/AbstractTypeSymbol.java
Lines 86 to 88 in 147e4a2
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 calledStructuredTypeSymbol
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
The text was updated successfully, but these errors were encountered: