No pointless hints
This commit is contained in:
parent
e32fd4d1d2
commit
6c01f55047
2 changed files with 8 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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.}"
|
||||
Loading…
Add table
Add a link
Reference in a new issue