Cosmetic compiler cleanup (#12718)
* 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
This commit is contained in:
parent
b662842bd0
commit
7e747d11c6
109 changed files with 6115 additions and 6254 deletions
|
|
@ -42,5 +42,5 @@ proc iterToProcImpl*(c: PContext, n: PNode): PNode =
|
|||
pattern = c.graph.emptyNode, genericParams = c.graph.emptyNode,
|
||||
pragmas = orig[pragmasPos], exceptions = c.graph.emptyNode)
|
||||
|
||||
prc.ast.add iter.sym.ast.sons[resultPos]
|
||||
prc.ast.add iter.sym.ast[resultPos]
|
||||
addInterfaceDecl(c, prc)
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ proc semLocals*(c: PContext, n: PNode): PNode =
|
|||
field.position = counter
|
||||
inc(counter)
|
||||
|
||||
addSon(tupleType.n, newSymNode(field))
|
||||
tupleType.n.add newSymNode(field)
|
||||
addSonSkipIntLit(tupleType, field.typ)
|
||||
|
||||
var a = newSymNode(it, result.info)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue