first implementation of suggest

This commit is contained in:
Araq 2011-02-16 02:24:12 +01:00
commit f7b2d71790
12 changed files with 54 additions and 25 deletions

View file

@ -792,6 +792,8 @@ proc SemStmt(c: PContext, n: PNode): PNode =
const # must be last statements in a block:
LastBlockStmts = {nkRaiseStmt, nkReturnStmt, nkBreakStmt, nkContinueStmt}
result = n
if gCmd == cmdSuggest:
suggestStmt(c, n)
if nfSem in n.flags: return
case n.kind
of nkAsgn: result = semAsgn(c, n)