From 3bfcfeb0cffa266b45f0803009787d7761881326 Mon Sep 17 00:00:00 2001 From: Araq Date: Fri, 27 Feb 2015 16:44:43 +0100 Subject: don't use stdout for nimsuggest server mode --- compiler/ast.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/ast.nim') 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 -- cgit 1.4.1-2-gfad0