Skip to content

Conversation

kammeows
Copy link
Owner

The file parseCodeVariables.js is responsible for analyzing the Abstract Syntax Tree of the user's code. As it walks through the AST, it collects and organizes information into maps:

  • p5ClassMap: Keeps track of p5.js-specific classes (like PVector, Color, etc.).
  • varMap: Stores all variables found in the code.
  • varScopeMap: Keeps track of the scope (e.g., global, local) of each variable.
  • userFuncMap: Records user-defined functions.
  • userClassMap: Records user-defined classes.

Once this information is gathered, it is passed to contextAwareHinter.js, which provides the code suggestions based on the current context in the code editor.

@kammeows kammeows merged commit 761657a into develop Jun 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant