fixes #19795; fixes #11852; fixes #19974; remove parsing pipeline, Nim now parses the whole module at one time (#21379)

* fixes #19795; remove parse pipeline

* isScript

* fixes nimscriptapi

* don't touch reorder

* check script

* fixes tests

* it seems implicit imports of system cause troubles

* access the first child of `nkStmtList`

* ignore comments

* minor messages

* perhaps increases hloLoopDetector

* the module is a stmtList, which changes the errors

* fixes nimdoc

* fixes tlinter

* fixes nim  secret tests

* fixes arc_misc

* fixes nim secret tests again

* safe; fixes one more test

* GlobalError is the root cause too

* fixes parsing errors

* put emit types to the cfsForwardTypes section

* fixes #11852; `{.push checks:off}` now works in procs

* disable navigator

* fixes nimdoc

* add tests for JS

* fixes nimsuggest
This commit is contained in:
ringabout 2023-02-23 03:34:20 +08:00 • committed by GitHub
commit 38f876dd48
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
31 changed files with 227 additions and 72 deletions

View file

@ -12,7 +12,7 @@ nim fn2 subdir/subdir_b/utils.html#fn2,int,float proc fn2(x: int; y: float) 61
nim binarySearch subdir/subdir_b/utils.html#binarySearch,openArray[T],K,proc(T,K) proc binarySearch[T, K](a: openArray[T]; key: K;\n cmp: proc (x: T; y: K): int {.closure.}): int 63
nim fn3 subdir/subdir_b/utils.html#fn3 proc fn3(): auto 66
nim fn4 subdir/subdir_b/utils.html#fn4 proc fn4(): auto 67
nim fn5 subdir/subdir_b/utils.html#fn5 proc fn5() 69
nim fn5 subdir/subdir_b/utils.html#fn5 proc fn5() 68
nim fn6 subdir/subdir_b/utils.html#fn6 proc fn6() 70
nim fn7 subdir/subdir_b/utils.html#fn7 proc fn7() 72
nim fn8 subdir/subdir_b/utils.html#fn8 proc fn8(): auto 75