cleaned up os.nim; docgen improvements
This commit is contained in:
parent
6a1ae0d616
commit
24e66e04fa
7 changed files with 54 additions and 33 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue