Jaseci-Labs / jac-analyzer

The Jaclang Language Extension for VScode is an extension that provides basic Language Server Protocol (LSP) functionalities for the Jaclang programming language.
MIT License
0 stars 3 forks source link

[Bug] Proper handling of children nodes #32

Closed musab-mah-7 closed 5 months ago

musab-mah-7 commented 5 months ago

🐞 Bug Report

Describe the bug

We have encountered a bug in our Pygls system where children from IfElse, ForStmt, and While Loop constructs are not being considered during symbol generation.

To Reproduce

  1. Open a Jac file containing IfElse, ForStmt, and While Loop constructs.
  2. Generate symbols for the code using Pygls.
  3. Check the generated symbols and compare them with the expected symbols, ensuring that the children from IfElse, ForStmt, and While Loop constructs are included. (can be observed from sementic highlightinng)

Expected behaviour

Symbol generation should consider all elements of the code, including the children from IfElse, ForStmt, and While Loop constructs, providing a comprehensive representation of the codebase.

musab-mah-7 commented 5 months ago

@chandralegend @marsninja covered in #30