ballerina-lang icon indicating copy to clipboard operation
ballerina-lang copied to clipboard

[2201.8.x] Revise the definition API of the `TypeReferenceTypeSymbol` to exclude searching for virtual symbols in the scope

Open nipunayf opened this issue 1 year ago • 0 comments

Purpose

$title as virtual symbols are not stored in the scope.

Fixes #42454

Approach

The current approach ensures that the definition API of the type references does not search for virtual symbols in the current scope.

Remarks

Although this PR fixed the semantic API issue, the tsymbol set for narrowed type symbols remains invalid, which is being tracked separately.

Check List

  • [x] Read the Contributing Guide
  • [ ] Updated Change Log
  • [ ] Checked Tooling Support (#<Issue Number>)
  • [x] Added necessary tests
    • [x] Unit Tests
    • [ ] Spec Conformance Tests
    • [ ] Integration Tests
    • [ ] Ballerina By Example Tests
  • [ ] Increased Test Coverage
  • [ ] Added necessary documentation
    • [ ] API documentation
    • [ ] Module documentation in Module.md files
    • [ ] Ballerina By Examples

nipunayf avatar Apr 24 '24 09:04 nipunayf