cleaned up os.nim; docgen improvements

This commit is contained in:
Araq 2014-12-21 14:28:46 +01:00
commit 24e66e04fa
7 changed files with 54 additions and 33 deletions

View file

@ -1,3 +1,12 @@
#
#
# The Nim Compiler
# (c) Copyright 2014 Andreas Rumpf
#
# See the file "copying.txt", included in this
# distribution, for details about the copyright.
#
import renderer, strutils, ast, msgs, types, astalgo
const defaultParamSeparator* = ","
@ -26,7 +35,7 @@ proc renderPlainSymbolName*(n: PNode): string =
result = renderPlainSymbolName(n[<n.len])
else:
internalError(n.info, "renderPlainSymbolName() with " & $n.kind)
assert (not result.isNil)
assert(not result.isNil)
proc renderType(n: PNode): string =
## Returns a string with the node type or the empty string.