Files
Nim/compiler
Jake Leahy 4fdc6c49bd Don't process a user pragma if its invalid (#23041)
When running `check`/`suggest` in a file with an invalid user pragma
like
```nim
{.pragma foo: test.}
```
It will continue to try and process it which leads to the compiler
running into a `FieldDefect`
```
fatal.nim(53)            sysFatal
Error: unhandled exception: field 'sons' is not accessible for type 'TNode' using 'kind = nkIdent' [FieldDefect]
```
This makes it instead bail out trying to process the user pragma if its
invalid
2023-12-07 08:14:23 +01:00
..
2023-12-06 18:17:57 +01:00
2023-10-29 14:47:22 +01:00
2022-09-27 10:57:47 +02:00
2017-01-07 22:35:09 +01:00
2023-12-02 05:28:24 +01:00
2023-05-06 21:27:28 +02:00
2023-12-06 18:17:57 +01:00
2023-11-04 17:46:59 +08:00
2021-01-12 09:36:51 +01:00
2023-12-02 05:28:24 +01:00
2023-12-06 18:17:57 +01:00
2022-03-23 20:34:53 +01:00
2023-12-06 18:17:57 +01:00
2023-12-06 18:17:57 +01:00
2023-07-02 22:36:05 +02:00
2023-12-06 18:17:57 +01:00
2023-11-06 18:33:28 +01:00
2023-12-02 05:28:24 +01:00
2023-12-02 05:28:24 +01:00
2023-10-12 23:33:38 +02:00
2023-11-20 21:12:13 +01: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.