borrow checking (#15282)
* refactoring: move procs to typeallowed.nim * frontend preparations for first class openArray support * prepare the code generator for first class openArray * code generation for first class openArray; WIP * code generation for open arrays, progress * added isViewType proc * preparations for borrow checking * added borrow checking to the front end
This commit is contained in:
parent
c49b88163c
commit
10988d4840
18 changed files with 554 additions and 311 deletions
|
|
@ -1035,7 +1035,14 @@ proc gsub(g: var TSrcGen, n: PNode, c: TContext) =
|
|||
gsub(g, n, 1)
|
||||
of nkHiddenStdConv, nkHiddenSubConv:
|
||||
if n.len >= 2:
|
||||
gsub(g, n[1])
|
||||
when false:
|
||||
# if {renderIds, renderIr} * g.flags != {}:
|
||||
put(g, tkSymbol, "(conv)")
|
||||
put(g, tkParLe, "(")
|
||||
gsub(g, n[1])
|
||||
put(g, tkParRi, ")")
|
||||
else:
|
||||
gsub(g, n[1])
|
||||
else:
|
||||
put(g, tkSymbol, "(wrong conv)")
|
||||
of nkHiddenCallConv:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue