summary refs log tree commit diff stats
path: root/compiler/semtempl.nim
Commit message (Collapse)AuthorAgeFilesLines
* Fix forward declaration issues in template/macro context (#15091)Clyybber2020-07-291-22/+5
| | | | | | | | | | | | | | | | | | | | | | | * Fix forward declaration issues in template/macro context * Correct forward declaration resolving for overloads * Remove old dead code * WIP consistent gensym ids * Minimize diff * Remove obsoleted hack * Add templInstCounter to give unique IDs to template instantiations * Remove obsoleted code * Eh, init in myOpen, not myProcess... * Remove optNimV019 * Add testcase for #13484
* fix codegen bug due to changing existing symbol declaration in template (#14666)jcosborn2020-06-151-1/+1
|
* fixes #12885 [backport] (#12895)Andreas Rumpf2019-12-131-0/+4
|
* Fixes #12832 (#12842) [backport]Neelesh Chandola2019-12-081-0/+5
| | | | | | * Fix #12832 * nimVm -> nimvm in json.nim * Use suggestSym() instead of markUsed(); Also use styleCheckUse() for finding style violations
* Cosmetic compiler cleanup (#12718)Clyybber2019-11-281-159/+155
| | | | | | | | | | | | | | | | | | * Cleanup compiler code base * Unify add calls * Unify len invocations * Unify range operators * Fix oversight * Remove {.procvar.} pragma * initCandidate -> newCandidate where reasonable * Unify safeLen calls
* fixes #12193 (#12199)Andreas Rumpf2019-09-161-2/+1
|
* Small ast.nim cleanup (#12156)Clyybber2019-09-091-20/+20
| | | | | * Remove sonsLen * Use Indexable
* fixes yet another gensym regression (#12145)Andreas Rumpf2019-09-061-3/+3
|
* fixes #12121 (#12126)Andreas Rumpf2019-09-051-9/+24
|
* improvement for 'unused import' warningsAraq2019-09-021-0/+1
|
* new gensym handling (#11985)Andreas Rumpf2019-08-231-19/+43
| | | | | | | | | | | * new .gensym implementation * make astspec test green again * introduce a --useVersion switch to group compatibility switches * fixes #10180 * fixes #11494 * fixes #11483 * object constructor fields and named parameters are also not gensym'ed * disabled broken package
* [refactoring] compiler: simplified markUsedAndreas Rumpf2019-08-081-1/+1
|
* [feature] detect unused importsAraq2019-07-171-1/+1
|
* Allow void macro result (#11286)Arne Döring2019-05-211-5/+0
| | | | | * allow void macro result * add test for void macro result type
* Fixes #9365 : let with exportC pragma in template. (#11235)Aditya Siram2019-05-141-0/+6
| | | | | | * Fixes #9365 : let with exportC pragma in template. * Fix according to comments.
* rename tyExpr/tyStmt to tyUntyped/tyTyped (#11227)Arne Döring2019-05-111-5/+5
|
* Replace countup(x, y) with x .. yClyybber2019-05-071-4/+4
|
* Replace countup(x, y-1) with x ..< yClyybber2019-05-071-14/+14
|
* Fix loop tuple unpacking in templates (#11174)nc-x2019-05-051-1/+5
| | | | | | * Fix loop tuple unpacking in templates * Add test
* callsite lineinfe for stackTrace template (#10785)Arne Döring2019-04-181-3/+5
|
* more destructor based changes (#10885)Andreas Rumpf2019-03-231-1/+1
| | | | | | | | | | | * 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
* it's spelt callsiteAndreas Rumpf2019-02-221-2/+3
|
* 32 bit fixes (#10608)Arne Döring2019-02-131-0/+4
|
* compiler/sem*: improve lineinfo for qualified and generic procs (#10427)alaviss2019-01-231-6/+7
| | | | | | | | | | | | | | | | Previously the compiler will believe these are where `newSeq` symbol starts: newSeq[int]() ^ system.newSeq[int]() ^ This commit moves them back to: newSeq[int]() ^ system.newSeq[int]() ^
* nimfind: improvementsAndreas Rumpf2018-11-151-0/+2
|
* added first version of a nimfind tool for the poor souls that don't have a ↵Andreas Rumpf2018-11-141-8/+12
| | | | good nimsuggest integretation
* fixes regressionsAraq2018-10-301-10/+8
|
* fixes unexpected transforming of runnableExamples (#9158)Steve Kellock2018-10-091-1/+3
|
* fixes #8052Araq2018-08-311-1/+1
|
* code cleanup: remove newScopeForIf switchAndreas Rumpf2018-07-041-2/+1
|
* implements a --nep1:on switch to make the compiler enforce the naming ↵Andreas Rumpf2018-06-131-4/+4
| | | | conventions outlined in NEP-1
* refactoring: remove idents.legacy global variable and pass the IdentCache ↵Andreas Rumpf2018-05-271-7/+7
| | | | around explicitly
* remove more global variables in the Nim compilerAndreas Rumpf2018-05-271-2/+2
|
* more modules compile againAndreas Rumpf2018-05-121-37/+40
|
* Implement custom annotations (#6987)cooldome2018-01-091-1/+4
|
* first steps in adding template/macro calls to stack tracesAraq2017-12-211-2/+2
|
* minor breaking change: for loop bodies now get their own scopeAndreas Rumpf2017-11-051-0/+2
|
* remove old implementation of the roof operator; make tests green again; ↵Andreas Rumpf2017-10-291-18/+0
| | | | close #6292
* deprecated unary '<'Andreas Rumpf2017-10-291-4/+4
|
* first implementation of the 'func' keywordAndreas Rumpf2017-09-231-0/+2
|
* Remove expr/stmt (#5857)Arne Döring2017-07-251-2/+2
|
* fixes #5478Araq2017-03-061-4/+4
|
* make tests green againAndreas Rumpf2017-03-021-0/+4
|
* Merge branch 'devel' into faster-nimsuggestAndreas Rumpf2017-02-241-5/+7
|\
| * fixes #5417Andreas Rumpf2017-02-241-5/+7
| |
* | big compiler refactoring; avoid globals for multi method dispatcher generationAndreas Rumpf2017-02-221-4/+4
|/
* fixes #5383Araq2017-02-161-1/+1
|
* Merge branch 'devel' into feature/3691Dominik Picheta2017-02-071-2/+9
|\
| * fixes #5285Andreas Rumpf2017-02-041-2/+9
| |
* | Adds `except T as ident` handling in semtempl.Dominik Picheta2017-02-061-1/+7
|/