summary refs log tree commit diff stats
path: root/compiler/semstmts.nim
Commit message (Collapse)AuthorAgeFilesLines
* [refactoring] compiler: simplified markUsedAndreas Rumpf2019-08-081-1/+1
|
* revert changesAndrii Riabushenko2019-07-251-6/+6
|
* fixes #11826Andrii Riabushenko2019-07-251-6/+6
|
* [feature] detect unused importsAraq2019-07-171-1/+1
|
* there is only one style -- my styleAraq2019-07-101-9/+9
|
* fixes linter regressionsAraq2019-07-101-0/+1
|
* styleCheck: make the compiler and large parts of the stdlib compatible with ↵Araq2019-07-101-5/+5
| | | | --styleCheck:error
* improved the error message for #11494; closes #11494Andreas Rumpf2019-07-061-2/+2
|
* introduce internal Int128 type, use it to fix case stmt checks (#11652)Arne Döring2019-07-051-1/+1
| | | | | | * initial version of int128 * use int128 in case stmt * fixes #11552
* fixes #8405: -d:useNimRtl now works even when {.rtl.} procs are used at ↵Timothee Cour2019-07-031-9/+9
| | | | compile time; CTFFI now works with {dynlib} (#11635)
* [refactor] compiler/[msgs, reorder, semstmts]: use toMsgFilename where ↵alaviss2019-06-261-2/+2
| | | | | | | | appropriate (#11595) * compiler/msgs: toMsgFilename now operates on FileIndex * compiler/reorder: use toMsgFilename for compiler messages * compiler/semstmts: respect listFullPaths for recursive deps error
* [bugfix] fixes #11556Andreas Rumpf2019-06-211-2/+4
|
* [refactoring] liftdestructors is now a module of its ownAraq2019-06-121-1/+1
|
* pass typedesc as NimNode to macros (#11400)Arne Döring2019-06-051-5/+1
| | | | | | | | * change typedesc's design in macros * Manual and changelog entry. * add link to RFC
* fixes #6777 (#11347)Andreas Rumpf2019-05-281-2/+1
|
* Smarter variant object construction (#11273)Jasper Jenkins2019-05-261-0/+3
|
* fixes #10038; deprecate generic methods, they are unreliableAndreas Rumpf2019-05-251-2/+3
|
* Allow void macro result (#11286)Arne Döring2019-05-211-10/+9
| | | | | * allow void macro result * add test for void macro result type
* More specific error message for unsupported recursion in iterators (#11283)Ico Doornekamp2019-05-201-0/+1
|
* fix for return in macro (#9666); fixes #5874Arne Döring2019-05-201-1/+9
|
* range/case fixes (#11264)Jasper Jenkins2019-05-161-3/+7
|
* Iterator fixes (#11234)Jasper Jenkins2019-05-131-13/+24
|
* rename tyExpr/tyStmt to tyUntyped/tyTyped (#11227)Arne Döring2019-05-111-6/+6
|
* Merge pull request #11159 from JasperJenkins/const-named-tuple-unpackAndreas Rumpf2019-05-081-1/+2
|\ | | | | Const named tuple unpacking
| * handle in semConstJasper Jenkins2019-05-051-1/+2
| |
* | Replace countup(x, y) with x .. yClyybber2019-05-071-5/+5
| |
* | Replace countup(x, y-1) with x ..< yClyybber2019-05-071-16/+16
|/
* discard type is an error, fixes #7470 (#11146)Jasper Jenkins2019-05-011-1/+1
|
* added system.unown to make 'owned' sane to use in practice; later on we ↵Araq2019-04-291-4/+8
| | | | might change the type inference rules to make it more convenient
* revert discardable transformation (#10905)Andreas Rumpf2019-04-211-14/+10
| | | | | | | | | | * Revert "Properly wrap discarded statements (#10322)" This reverts commit 15584879b91e14565156ca140eef1dc100cf34c4. * add test for implicit discard after defer * enable t10241 again * make C++ tests green again
* destructors: internal compiler refactoringAraq2019-04-181-7/+7
|
* remove shadow warning, fixes #10732 (#11039)Miran2019-04-171-16/+4
|
* sem'check understands 'owned procs'Araq2019-04-111-1/+6
|
* Fix astdef typ deref (#10245)Alexander Ivanov2019-04-051-1/+1
|
* fixes destructor tuple regression #10940 (#10941)cooldome2019-04-041-1/+1
| | | | | | | | * fixes #10940 * bug fixes * fix spacing
* Pure ref object; fixes #10721 (#10955)Arne Döring2019-04-041-0/+2
|
* more destructor based changes (#10885)Andreas Rumpf2019-03-231-14/+20
| | | | | | | | | | | * mark user defined destructors with sfOverriden to simplify the logic * refactoring in preparation to merge liftings and generic instantiations for destructors * ast: introduce nkHiddenTryStmt for destructor generation in order to be able to optimize better the code later on * renamed 'patterns' switch to 'trmacros' as it was totally misleading before * destructors: introduce tfCheckedForDestructor flag in preparation of strict =destroy checking * test for invalid/too late destructor introductions * liftdestructors: make code robust for nimsuggest * --newruntime works for hello world again * newruntime: code generation for closures
* mark user defined destructors with sfOverriden to simplify the logicAndreas Rumpf2019-03-191-0/+3
|
* rename: semasgn -> liftdestructorsAndreas Rumpf2019-03-141-1/+1
|
* fixes #10791Andreas Rumpf2019-03-061-0/+3
|
* special typing rules for owned pointersAndreas Rumpf2019-03-041-0/+4
|
* gc:destructors: progressAndreas Rumpf2019-02-281-0/+1
|
* Tuple unpacking now works for `for` vars (#10152)Neelesh Chandola2019-02-231-16/+54
| | | | | | | | * Tuple unpacking now works for `for` vars * Give error if length of tuple vars != length of tuple * Fix error message showing wrong tuple length * unpacking now works now for mutable items * Update changelog
* first steps in implementing 'owned' pointers; undocumented, do not useAndreas Rumpf2019-02-231-7/+7
|
* error message for accidental use of macro (#10490)Arne Döring2019-02-191-2/+9
| | | | * error message for accidental use of macro
* fixes #10702 (#10705)Andreas Rumpf2019-02-181-19/+22
| | | | | | * --define:nimQuirky exception handling for Nim; in preparation of a blog post * make it work with latest system.nim * make code more readable * fixes #10702
* Print missing case labels (#10600)Arne Döring2019-02-091-0/+3
|
* Avoid evaluating macros twice in type sections (#10550)LemonBoy2019-02-061-0/+5
| | | Fixes #10548
* gc: destructors is beginning to work (#10483)Andreas Rumpf2019-01-291-1/+2
| | | | | | | | | | | | | | | | * kochdocs.nim: code cleanup * docgen: nicer indentation * parser.nim: code cleanup * fixes #10458 * make tests green again * make =destroy mixins * gc:destructors: produced C code is almost working * --gc:destructors simple program compiles (but leaks memory) * gc:destructors make examples compile in C++ mode * destructors: string implementation bugfixes * strs.nim: minor code cleanup * destructors: builtin seqs are beginning to work * remove debugging helpers
* Harmonize the var/let and const handling (#10410)LemonBoy2019-01-231-4/+14
| | | Fixes #10333