Files
Nim/compiler
alaviss e259f80fc7 msgs, ccgstmts: fixes #11572 (#11621)
* [refactor] msgs: toFilename now return just the filename

The C codegen uses just the file name for stacktrace when
excessiveStackTrace is off (see quotedName),
so there aren't any reason for other codegen to not do the same.

The file name is now cached in TFileInfo.shortName, which was introduced
for nimsuggest, and went unused after several refactoring of the
compiler.

A toProjPath() proc has been added for the previous behavior of
toFilename().

* ccgstmt: use quotedFilename() for raiseExceptionEx

This is the same proc used for stacktrace when --stacktrace:on

Fixes #11572

* msgs: handle case where file name is not available
2019-06-30 12:30:37 +02:00
..
2019-06-26 23:15:58 +02:00
2019-05-29 22:21:51 +02:00
2018-06-03 20:15:37 +02:00
2019-06-06 07:56:19 +02:00
2019-06-26 19:34:05 +02:00
2019-04-17 13:22:22 +02:00
2019-04-11 09:48:10 +02:00
2019-06-28 21:04:49 +02:00
2019-06-26 06:55:43 +02:00
2019-04-23 21:51:38 +02:00
2019-05-24 18:33:53 +02:00
2018-12-16 20:34:07 +01:00
2017-01-07 22:35:09 +01:00
2019-05-28 21:30:41 +02:00
2019-05-29 22:21:51 +02:00
2019-06-05 16:26:23 +02:00
2017-10-29 08:37:13 +01:00
2019-01-22 06:24:45 +01:00
2019-06-19 09:48:55 +02:00
2019-03-23 00:12:05 +01:00
2019-05-07 12:37:28 +02:00
2018-11-20 19:30:00 +01:00
2019-06-26 15:33:51 +02:00
2019-05-07 12:37:28 +02:00
2019-06-26 23:41:20 +02:00
2019-06-28 11:45:21 +02:00
2019-06-20 07:40:45 +02:00
2019-05-28 15:55:11 +02:00
2019-06-30 12:30:37 +02:00
2019-06-13 10:42:37 +02:00
2019-05-07 12:37:28 +02:00
2019-05-08 15:05:21 +02:00
2014-08-28 09:38:14 +02:00
2018-12-03 18:57:44 +01:00
2019-05-14 12:02:26 +02:00
2019-05-07 12:37:28 +02:00
2019-05-29 22:21:51 +02:00
2019-06-26 15:55:27 +02:00
2019-05-24 22:50:43 +02:00
2019-05-22 07:37:25 +02:00
2019-05-14 07:44:39 +02:00
2019-05-21 21:31:40 +02:00
2019-05-15 21:12:07 +02:00
2019-06-02 08:35:09 +02:00
2019-05-08 14:29:42 -07:00
2019-06-03 10:15:20 +02:00
2019-05-07 12:37:28 +02:00

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.