nimsuggest: make tests green again
This commit is contained in:
parent
57ea01309e
commit
556b564c7d
3 changed files with 5 additions and 5 deletions
|
|
@ -736,7 +736,7 @@ type
|
||||||
|
|
||||||
TLibKind* = enum
|
TLibKind* = enum
|
||||||
libHeader, libDynamic
|
libHeader, libDynamic
|
||||||
|
|
||||||
TLib* = object # also misused for headers!
|
TLib* = object # also misused for headers!
|
||||||
kind*: TLibKind
|
kind*: TLibKind
|
||||||
generated*: bool # needed for the backends:
|
generated*: bool # needed for the backends:
|
||||||
|
|
@ -744,7 +744,7 @@ type
|
||||||
name*: Rope
|
name*: Rope
|
||||||
path*: PNode # can be a string literal!
|
path*: PNode # can be a string literal!
|
||||||
|
|
||||||
|
|
||||||
CompilesId* = int ## id that is used for the caching logic within
|
CompilesId* = int ## id that is used for the caching logic within
|
||||||
## ``system.compiles``. See the seminst module.
|
## ``system.compiles``. See the seminst module.
|
||||||
TInstantiation* = object
|
TInstantiation* = object
|
||||||
|
|
|
||||||
|
|
@ -2002,12 +2002,12 @@ proc parseStmt(p: var TParser): PNode =
|
||||||
break
|
break
|
||||||
p.hasProgress = false
|
p.hasProgress = false
|
||||||
var a = complexOrSimpleStmt(p)
|
var a = complexOrSimpleStmt(p)
|
||||||
if not p.hasProgress and p.tok.tokType == tkEof: break
|
if a.kind != nkEmpty:
|
||||||
if a.kind != nkEmpty and p.hasProgress:
|
|
||||||
addSon(result, a)
|
addSon(result, a)
|
||||||
else:
|
else:
|
||||||
parMessage(p, errExprExpected, p.tok)
|
parMessage(p, errExprExpected, p.tok)
|
||||||
getTok(p)
|
getTok(p)
|
||||||
|
if not p.hasProgress and p.tok.tokType == tkEof: break
|
||||||
else:
|
else:
|
||||||
# the case statement is only needed for better error messages:
|
# the case statement is only needed for better error messages:
|
||||||
case p.tok.tokType
|
case p.tok.tokType
|
||||||
|
|
|
||||||
|
|
@ -424,7 +424,7 @@ proc execCmd(cmd: string; graph: ModuleGraph; cache: IdentCache; cachedMsgs: Cac
|
||||||
else:
|
else:
|
||||||
if gIdeCmd == ideChk:
|
if gIdeCmd == ideChk:
|
||||||
for cm in cachedMsgs: errorHook(cm.info, cm.msg, cm.sev)
|
for cm in cachedMsgs: errorHook(cm.info, cm.msg, cm.sev)
|
||||||
execute(gIdeCmd, orig, dirtyfile, line, col-1, graph, cache)
|
execute(gIdeCmd, orig, dirtyfile, line, col, graph, cache)
|
||||||
sentinel()
|
sentinel()
|
||||||
|
|
||||||
proc recompileFullProject(graph: ModuleGraph; cache: IdentCache) =
|
proc recompileFullProject(graph: ModuleGraph; cache: IdentCache) =
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue