Files
Nim/compiler
Timothee Cour b8f761b7e2 even lighter version of #17938: fix most issues with UnusedImport, XDeclaredButNotUsed, etc; fix #17511, #17510, #14246 (without realModule) (#18362)
* {.used: symbol}

* add tests

* fix tests with --import

* --import works without giving spurious unused warnings

* new warning warnDuplicateModuleImport for `import foo; import foo`

* fix test, add resolveModuleAlias, use proper line info for module aliases

* fix spurious warnings

* fix deprecation msg for deprecated modules even with `import foo as bar`

* disable a test for i386 pending sorting XDeclaredButNotUsed errors

* UnusedImport now works with re-exported symbols

* fix typo [skip ci]

* ic support

* add genPNode to allow writing PNode-based compiler code similarly to `genAst`

* fix DuplicateModuleImport warning

* adjust test

* fixup

* fixup

* fixup

* fix after rebase

* fix for IC

* keep the proc inline, move the const out

* [skip ci] fix changelog

* experiment: remove calls to resolveModuleAlias

* followup

* fixup

* fix tests/modules/tselfimport.nim

* workaround tests/deprecated/tmodule1.nim

* fix properly

* simplify
2021-06-26 15:21:46 +02:00
..
2021-05-19 16:00:14 +02:00
2021-01-07 20:26:40 +01:00
2021-06-24 18:37:04 +02:00
2019-11-28 17:13:04 +01:00
2021-05-12 22:00:37 +02:00
2021-03-19 16:53:38 +01:00
2021-05-12 22:00:37 +02:00
2021-03-29 21:16:11 +02:00
2021-04-09 16:29:10 +02:00
2021-03-19 16:53:38 +01:00
2017-01-07 22:35:09 +01:00
2021-05-12 22:00:37 +02:00
2020-08-28 22:18:09 +02:00
2019-11-28 17:13:04 +01:00
2021-02-17 19:26:08 +01:00
2021-01-07 20:26:40 +01:00
2021-06-23 23:31:17 +02:00
2021-05-20 15:48:46 +02:00
2021-05-20 15:48:46 +02:00
2021-05-12 22:00:37 +02:00
2021-01-12 09:36:51 +01:00
2021-05-12 07:15:05 +02:00
2020-08-28 22:18:09 +02:00
2021-04-16 09:16:39 +02:00
2019-09-27 07:02:54 +02:00
2021-01-07 20:26:40 +01:00
2021-04-30 17:17:29 +02:00
2021-06-10 18:19:20 +02:00
2021-04-09 08:00:13 +02:00
2019-11-28 17:13:04 +01:00
2021-06-10 18:19:20 +02:00
2021-05-12 22:00:37 +02:00
2021-01-07 20:26:40 +01:00
2021-04-07 19:54:28 +02:00
2021-06-25 14:12:23 +02:00
2021-06-22 12:44:56 +02:00
2021-05-12 07:15:05 +02:00
2021-04-24 18:33:29 +01:00
2020-11-10 21:53:25 +01:00
2021-05-09 00:56:37 +02:00
2021-05-12 22:00:37 +02:00
2021-06-25 06:22:52 +02:00
2021-05-12 22:00:37 +02:00

Nim Compiler

  • This directory contains the Nim compiler written in Nim.
  • Note that this code has been translated from a bootstrapping version written in Pascal.
  • So the code is not a poster child of good Nim code.

See Internals of the Nim Compiler for more information.