enso/app/gui
Kaz Wesley 4d4a2990a0
Distinguish assignment/thunk by statement context (#11324)
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`.
2024-10-18 17:54:55 +00:00
..
.vscode Unify Frontend App (#11287) 2024-10-11 18:23:02 +00:00
docs Unify Frontend App (#11287) 2024-10-11 18:23:02 +00:00
e2e Unify Frontend App (#11287) 2024-10-11 18:23:02 +00:00
project-manager-shim-middleware Allow updating local assets (#11314) 2024-10-15 14:32:52 +03:00
public Remove download font scripts (#11317) 2024-10-14 16:11:42 +00:00
scripts Remove download font scripts (#11317) 2024-10-14 16:11:42 +00:00
src Distinguish assignment/thunk by statement context (#11324) 2024-10-18 17:54:55 +00:00
templates Unify Frontend App (#11287) 2024-10-11 18:23:02 +00:00
.gitignore Remove download font scripts (#11317) 2024-10-14 16:11:42 +00:00
.prettierrc.json Unify Frontend App (#11287) 2024-10-11 18:23:02 +00:00
env.d.ts Unify Frontend App (#11287) 2024-10-11 18:23:02 +00:00
index.html Unify Frontend App (#11287) 2024-10-11 18:23:02 +00:00
lib0-ext.d.ts Unify Frontend App (#11287) 2024-10-11 18:23:02 +00:00
LICENSE Unify Frontend App (#11287) 2024-10-11 18:23:02 +00:00
package.json Distinguish assignment/thunk by statement context (#11324) 2024-10-18 17:54:55 +00:00
playwright.config.ts Unify Frontend App (#11287) 2024-10-11 18:23:02 +00:00
shortcuts.md Unify Frontend App (#11287) 2024-10-11 18:23:02 +00:00
tailwind.config.js Unify Frontend App (#11287) 2024-10-11 18:23:02 +00:00
tsconfig.app.json Unify Frontend App (#11287) 2024-10-11 18:23:02 +00:00
tsconfig.app.vitest.json Unify Frontend App (#11287) 2024-10-11 18:23:02 +00:00
tsconfig.json Unify Frontend App (#11287) 2024-10-11 18:23:02 +00:00
tsconfig.node.json Unify Frontend App (#11287) 2024-10-11 18:23:02 +00:00
tsconfig.scripts.json Unify Frontend App (#11287) 2024-10-11 18:23:02 +00:00
vite.config.ts Unify Frontend App (#11287) 2024-10-11 18:23:02 +00:00
vite.test.config.ts Unify Frontend App (#11287) 2024-10-11 18:23:02 +00:00
vitest.config.ts Unify Frontend App (#11287) 2024-10-11 18:23:02 +00:00