bugfix: c2nim and pas2nim work again
This commit is contained in:
parent
92b0d64018
commit
ca447be43e
3 changed files with 8 additions and 4 deletions
|
|
@ -1346,10 +1346,13 @@ proc parseRoutine(p: var TParser): PNode =
|
|||
skipCom(p, result)
|
||||
expectIdent(p)
|
||||
addSon(result, identVis(p))
|
||||
addSon(result, ast.emptyNode) # generic parameters
|
||||
# patterns, generic parameters:
|
||||
addSon(result, ast.emptyNode)
|
||||
addSon(result, ast.emptyNode)
|
||||
addSon(result, parseParamList(p))
|
||||
opt(p, pxSemicolon)
|
||||
addSon(result, parseRoutineSpecifiers(p, noBody))
|
||||
addSon(result, ast.emptyNode)
|
||||
if (p.section == seInterface) or noBody:
|
||||
addSon(result, ast.emptyNode)
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue