mirror of
https://github.com/enso-org/enso.git
synced 2024-12-25 03:22:43 +03:00
4d4a2990a0
Align `Assignment`/`Function` distinction in AST with compiler's implemented semantics: - The ambiguous case `funcOrVar = expression` is now parsed as a `Function` when in a `Type` definition or in the top level of a module. I.e. it is an `Assignment` in contexts where the RHS is evaluated immediately when the binding is evaluated, and a `Function` in contexts where the RHS is evaluated each time the bound name is evaluated. - `Assignment` statements now may only occur in function bodies. Correcting this distinction lays the groundwork for #11302. Other changes: - Fixed incorrect source code locations for negative literals and negated expressions. # Important Notes New APIs: - The parser now exposes a `parse_block` entry point, which allows parsing input lines as if in the body of a function. The previous entry point has been renamed to `parse_module`. |
||
---|---|---|
.. | ||
.vscode | ||
docs | ||
e2e | ||
project-manager-shim-middleware | ||
public | ||
scripts | ||
src | ||
templates | ||
.gitignore | ||
.prettierrc.json | ||
env.d.ts | ||
index.html | ||
lib0-ext.d.ts | ||
LICENSE | ||
package.json | ||
playwright.config.ts | ||
shortcuts.md | ||
tailwind.config.js | ||
tsconfig.app.json | ||
tsconfig.app.vitest.json | ||
tsconfig.json | ||
tsconfig.node.json | ||
tsconfig.scripts.json | ||
vite.config.ts | ||
vite.test.config.ts | ||
vitest.config.ts |