diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2019-02-18 10:30:30 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2019-02-18 10:30:30 +0100 |
commit | b5eed8ab3f29a898c7e0b838060dfaad7e678ef4 (patch) | |
tree | 4722de67dc30314f1e1da201270a22a936888cd1 | |
parent | c8e33cbb75caf21a76d379ce94b42baffbefa73f (diff) | |
download | Nim-b5eed8ab3f29a898c7e0b838060dfaad7e678ef4.tar.gz |
make code more readable
-rw-r--r-- | compiler/vmdeps.nim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/vmdeps.nim b/compiler/vmdeps.nim index f160a3096..edbed5ca1 100644 --- a/compiler/vmdeps.nim +++ b/compiler/vmdeps.nim @@ -297,14 +297,14 @@ proc mapTypeToAstX(cache: IdentCache; t: PType; info: TLineInfo; of tyOptAsRef: assert(false, "mapTypeToAstX") proc opMapTypeToAst*(cache: IdentCache; t: PType; info: TLineInfo): PNode = - result = mapTypeToAstX(cache, t, info, false, true) + result = mapTypeToAstX(cache, t, info, inst=false, allowRecursionX=true) # the "Inst" version includes generic parameters in the resulting type tree # and also tries to look like the corresponding Nim type declaration proc opMapTypeInstToAst*(cache: IdentCache; t: PType; info: TLineInfo): PNode = - result = mapTypeToAstX(cache, t, info, true, false) + result = mapTypeToAstX(cache, t, info, inst=true, allowRecursionX=false) # the "Impl" version includes generic parameters in the resulting type tree # and also tries to look like the corresponding Nim type implementation proc opMapTypeImplToAst*(cache: IdentCache; t: PType; info: TLineInfo): PNode = - result = mapTypeToAstX(cache, t, info, true, true) + result = mapTypeToAstX(cache, t, info, inst=true, allowRecursionX=true) |