No pointless hints

This commit is contained in:
Ganesh Viswanathan 2020-05-21 13:51:15 -05:00
commit 6c01f55047
2 changed files with 8 additions and 1 deletions

View file

@ -238,6 +238,8 @@ proc printNim*(gState: State) =
if gState.procStr.nBl:
gecho &"{gState.procStr}\n"
gecho "{.pop.}"
if gState.debug:
if gState.debugStr.nBl:
gecho gState.debugStr

View file

@ -1815,7 +1815,10 @@ proc setupPragmas(gState: State, root: TSNode, fullpath: string) =
proc initNim*(gState: State) =
# Initialize for parseNim() one time
gecho "import nimterop/types\n"
gecho """import nimterop/types
{.push hint[ConvFromXtoItselfNotNeeded]: off.}
"""
# Track identifiers already rendered and corresponding PNodes
gState.identifiers = newTable[string, string]()
@ -1867,3 +1870,5 @@ proc printNim*(gState: State) =
tree.add gState.procSection
gecho tree.renderTree()
gecho "{.pop.}"