Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor scopes to add top-level and block scope (related!) #5475

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Nov 24, 2024

  1. refactor scopes and add top-level and block scope (related!)

    - annotate delimiter pairing logic
    - generate a var statement for the given node
    - [FIX!] update scope to use positions and call .type() recursively!
    
    this fixes the following code:
    ```coffee
    import x from "./lib/coffeescript/index.js"
    do ->
      x = 3
      x
    ```
    - rename "scope" to FunctionScope
    - break out a separate TopLevelScope so we can look at modules more clearly
    - add lots of TODOs and fix namedMethod?()
    - remove extraneous 9e9 limit from .splice call
    - add quite a lot of notes to compileWithDeclarations
    - add block scopes!!!!
    - imports and exports are so much better supported now!!!
    - assigning to an imported symbol is an error
    cosmicexplorer committed Nov 24, 2024
    Configuration menu
    Copy the full SHA
    8cfc1b4 View commit details
    Browse the repository at this point in the history