diff options
author | Araq <rumpf_a@web.de> | 2015-02-27 16:44:43 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2015-02-27 16:44:55 +0100 |
commit | 3bfcfeb0cffa266b45f0803009787d7761881326 (patch) | |
tree | 13740cd238c5c72772baed5c6241c3dd6aa18eaa /compiler/ast.nim | |
parent | 05233de66cbe4a1878e8d83b7bc8fb9df20d8ff1 (diff) | |
download | Nim-3bfcfeb0cffa266b45f0803009787d7761881326.tar.gz |
don't use stdout for nimsuggest server mode
Diffstat (limited to 'compiler/ast.nim')
-rw-r--r-- | compiler/ast.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/ast.nim b/compiler/ast.nim index 6afc1db26..1462d58d5 100644 --- a/compiler/ast.nim +++ b/compiler/ast.nim @@ -1413,7 +1413,7 @@ proc copyTree*(src: PNode): PNode = for i in countup(0, sonsLen(src) - 1): result.sons[i] = copyTree(src.sons[i]) -proc hasSonWith(n: PNode, kind: TNodeKind): bool = +proc hasSonWith*(n: PNode, kind: TNodeKind): bool = for i in countup(0, sonsLen(n) - 1): if n.sons[i].kind == kind: return true |