enso/lib/java
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
..
akka-wrapper/src/main/java engine-runner and language-server are separate JPMS modules (#10823) 2024-09-25 21:33:13 +02:00
benchmarks-common/src/main/java engine-runner and language-server are separate JPMS modules (#10823) 2024-09-25 21:33:13 +02:00
desktop-environment/src Soft delete projects by moving them to trash (#10440) 2024-07-27 13:37:43 +00:00
directory-watcher-wrapper/src/main/java Ensure wrapper projects are listed in aggregates (#11323) 2024-10-14 20:46:08 +02:00
fansi-wrapper/src/main/java engine-runner and language-server are separate JPMS modules (#10823) 2024-09-25 21:33:13 +02:00
jna-wrapper/src/main/java Fix booting enso on MacOS (#11212) 2024-09-30 15:58:12 +00:00
language-server-deps-wrapper/src/main/java engine-runner and language-server are separate JPMS modules (#10823) 2024-09-25 21:33:13 +02:00
persistance/src Use IR.STRUCTURE_COMPARATOR to compare two IR objects (#11178) 2024-09-30 10:28:34 +02:00
persistance-dsl/src/main/java/org/enso/persist/impl Enso language support with parser in VSCode, IGV, etc. (#7054) 2024-06-14 14:01:37 +00:00
scala-libs-wrapper/src/main/java Ensure wrapper projects are listed in aggregates (#11323) 2024-10-14 20:46:08 +02:00
test-utils/src/main/java/org/enso/test/utils Inline doc comment is a compiler error (#11333) 2024-10-16 06:24:18 -07:00
ydoc-server/src Distinguish assignment/thunk by statement context (#11324) 2024-10-18 17:54:55 +00:00
zio-wrapper/src/main/java Ensure wrapper projects are listed in aggregates (#11323) 2024-10-14 20:46:08 +02:00