diff options
author | Simon Hafner <hafnersimon@gmail.com> | 2015-05-13 18:34:29 +0500 |
---|---|---|
committer | Simon Hafner <hafnersimon@gmail.com> | 2015-05-13 18:34:29 +0500 |
commit | 5e97780a9411a9702c285acec7922bfe865b8897 (patch) | |
tree | a420b3566376eadb46da43508767e91a46e35368 /compiler | |
parent | c56a00523861ec3d680478f0facf4a05ea753969 (diff) | |
download | Nim-5e97780a9411a9702c285acec7922bfe865b8897.tar.gz |
changed from parseEnum to direct copy
Let's hope this doesn't break anything
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/suggest.nim | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/compiler/suggest.nim b/compiler/suggest.nim index a79d08f71..659f1fa16 100644 --- a/compiler/suggest.nim +++ b/compiler/suggest.nim @@ -37,11 +37,7 @@ template origModuleName(m: PSym): string = m.name.s proc symToSuggest(s: PSym, isLocal: bool, section: string, li: TLineInfo): Suggest = result.section = parseIdeCmd(section) if optIdeTerse in gGlobalOptions: - if s.kind in routineKinds: - result.symkind = parseEnum[TSymKind](renderTree(s.ast, {renderNoBody, renderNoComments, - renderDocComments, renderNoPragmas})) - else: - result.symkind = parseEnum[TSymKind](s.name.s) + result.symkind = s.kind result.filePath = toFullPath(li) result.line = toLinenumber(li) result.column = toColumn(li) |