changed from parseEnum to direct copy
Let's hope this doesn't break anything
This commit is contained in:
parent
c56a005238
commit
5e97780a94
1 changed files with 1 additions and 5 deletions
|
|
@ -37,11 +37,7 @@ template origModuleName(m: PSym): string = m.name.s
|
||||||
proc symToSuggest(s: PSym, isLocal: bool, section: string, li: TLineInfo): Suggest =
|
proc symToSuggest(s: PSym, isLocal: bool, section: string, li: TLineInfo): Suggest =
|
||||||
result.section = parseIdeCmd(section)
|
result.section = parseIdeCmd(section)
|
||||||
if optIdeTerse in gGlobalOptions:
|
if optIdeTerse in gGlobalOptions:
|
||||||
if s.kind in routineKinds:
|
result.symkind = s.kind
|
||||||
result.symkind = parseEnum[TSymKind](renderTree(s.ast, {renderNoBody, renderNoComments,
|
|
||||||
renderDocComments, renderNoPragmas}))
|
|
||||||
else:
|
|
||||||
result.symkind = parseEnum[TSymKind](s.name.s)
|
|
||||||
result.filePath = toFullPath(li)
|
result.filePath = toFullPath(li)
|
||||||
result.line = toLinenumber(li)
|
result.line = toLinenumber(li)
|
||||||
result.column = toColumn(li)
|
result.column = toColumn(li)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue