ensure compiler API doesn't import the RST engine
This commit is contained in:
parent
06122ff711
commit
a5701d6b71
2 changed files with 3 additions and 3 deletions
|
|
@ -15,7 +15,7 @@ import
|
||||||
magicsys, condsyms, idents, lexer, options, parampatterns, strutils, trees,
|
magicsys, condsyms, idents, lexer, options, parampatterns, strutils, trees,
|
||||||
nimfix / pretty, lineinfos
|
nimfix / pretty, lineinfos
|
||||||
|
|
||||||
when not defined(noDocgen):
|
when defined(booting) or defined(nimsuggest):
|
||||||
import docgen
|
import docgen
|
||||||
|
|
||||||
type
|
type
|
||||||
|
|
|
||||||
|
|
@ -115,7 +115,7 @@ proc symToSuggest(conf: ConfigRef; s: PSym, isLocal: bool, section: IdeCmd, info
|
||||||
result.forth = typeToString(s.typ)
|
result.forth = typeToString(s.typ)
|
||||||
else:
|
else:
|
||||||
result.forth = ""
|
result.forth = ""
|
||||||
when not defined(noDocgen):
|
when defined(nimsuggest) and not defined(noDocgen):
|
||||||
result.doc = s.extractDocComment
|
result.doc = s.extractDocComment
|
||||||
let infox = if section in {ideUse, ideHighlight, ideOutline}: info else: s.info
|
let infox = if section in {ideUse, ideHighlight, ideOutline}: info else: s.info
|
||||||
result.filePath = toFullPath(conf, infox)
|
result.filePath = toFullPath(conf, infox)
|
||||||
|
|
@ -153,7 +153,7 @@ proc `$`*(suggest: Suggest): string =
|
||||||
result.add(sep)
|
result.add(sep)
|
||||||
result.add($suggest.column)
|
result.add($suggest.column)
|
||||||
result.add(sep)
|
result.add(sep)
|
||||||
when not defined(noDocgen):
|
when defined(nimsuggest) and not defined(noDocgen):
|
||||||
result.add(suggest.doc.escape)
|
result.add(suggest.doc.escape)
|
||||||
if suggest.version == 0:
|
if suggest.version == 0:
|
||||||
result.add(sep)
|
result.add(sep)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue