luau/CLI
vegorov-rbx 42a2805f85
Sync to upstream/release/568 (#865)
* A small subset of control-flow refinements have been added to
recognize type options that are unreachable after a
conditional/unconditional code block. (Fixes
https://github.com/Roblox/luau/issues/356).

Some examples:
```lua
local function f(x: string?)
    if not x then return end

    -- x is 'string' here
end
```
Throwing calls like `error` or `assert(false)` instead of 'return' are
also recognized.
Existing complex refinements like type/typeof and tagged union checks
are expected to work, among others.

To enable this feature, `LuauTinyControlFlowAnalysis` exclusion has to
be removed from `ExperimentalFlags.h`.
If will become enabled unconditionally in the near future.

* Linter has been integrated into the typechecker analysis so that
type-aware lint warnings can work in any mode
`Frontend::lint` methods were deprecated, `Frontend::check` has to be
used instead with `runLintChecks` option set.
Resulting lint warning are located inside `CheckResult`.

* Fixed large performance drop and increased memory consumption when
array is filled at an offset (Fixes
https://github.com/Roblox/luau/issues/590)
* Part of [Type error suppression
RFC](https://github.com/Roblox/luau/blob/master/rfcs/type-error-suppression.md)
was implemented making subtyping checks with `any` type transitive.

---
In our work on the new type-solver:
* `--!nocheck` mode no longer reports type errors
* New solver will not be used for `--!nonstrict` modules until all
issues with strict mode typechecking are fixed
* Added control-flow aware type refinements mentioned earlier

In native code generation:
* `LOP_NAMECALL` has been translated to IR
* `type` and `typeof` builtin fastcalls have been translated to
IR/assembly
* Additional steps were taken towards arm64 support
2023-03-17 12:20:37 -07:00
..
Analyze.cpp Sync to upstream/release/568 (#865) 2023-03-17 12:20:37 -07:00
Ast.cpp Sync to upstream/release/556 (#782) 2022-12-09 11:57:01 -08:00
Coverage.cpp Sync to upstream/release/513 (#340) 2022-02-04 08:45:57 -08:00
Coverage.h Sync to upstream/release/507-pre (#286) 2021-12-10 14:05:05 -08:00
FileUtils.cpp Sync to upstream/release/525 (#467) 2022-04-28 18:24:24 -07:00
FileUtils.h luau-analyze: Add support for reading source code from stdin (#325) 2022-01-25 08:25:01 -08:00
Flags.cpp Sync to upstream/release/537 (#607) 2022-07-21 14:16:54 -07:00
Flags.h Sync to upstream/release/537 (#607) 2022-07-21 14:16:54 -07:00
Profiler.cpp Sync to upstream/release/548 (#699) 2022-10-06 17:23:29 -07:00
Profiler.h Sync to upstream/release/507-pre (#286) 2021-12-10 14:05:05 -08:00
Reduce.cpp Sync to upstream/release/565 (#845) 2023-02-24 13:49:38 -08:00
Repl.cpp Sync to upstream/release/564 (#841) 2023-02-17 15:41:51 -08:00
Repl.h Sync to upstream/release/514 (#357) 2022-02-11 11:02:09 -08:00
ReplEntry.cpp Sync to upstream/release/538 (#616) 2022-07-28 21:24:07 -07:00
Web.cpp Sync to upstream/release/509 (#303) 2022-01-06 17:46:53 -08:00