Files
Nim/compiler
quantimnot a9701f6531 Extended side effect error messages (#18418)
* Extended side effect error messages

* Applied feedback:
- refactored `markSideEffect`
- refactored string interpolations
- single message
- skip diagnostics in `system.compiles` context

Other:
- started a test of diagnostic messages

[ci skip] Tests aren't updated yet because messaging isn't nailed down.

* - Added hints of where for side effect call locations.
- Tried to clarify the reasons.

* fix tests

* Applied PR review feedback:
  - moved collection of side effects from TSym to TContext
  - used pragma shorthand form `.sideEffect` and `.noSideEffect` in messages
  - added leading '>' to structured messages for readability
  - changed `sempass2.markSideEffect` to a proc
  - replaced `system.echo` in the test to make the test compatible with Windows

* Applied NEP1 formatting suggestion

Co-authored-by: quantimnot <quantimnot@users.noreply.github.com>
2021-07-15 20:43:57 +02:00
..
2021-05-19 16:00:14 +02:00
2021-01-07 20:26:40 +01: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-03-29 21:16:11 +02:00
2021-03-19 16:53:38 +01:00
2017-01-07 22:35:09 +01: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-07-01 06:51:08 +02:00
2021-06-23 23:31:17 +02:00
2021-05-20 15:48:46 +02:00
2021-07-13 14:17:59 +02:00
2021-01-12 09:36:51 +01: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-07-13 12:44:29 +02:00
2021-01-07 20:26:40 +01:00
2021-06-28 17:41:37 +02:00
2021-07-13 12:44: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-01-07 20:26:40 +01:00
2021-07-01 17:35:04 +02:00
2021-04-07 19:54:28 +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-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.