Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove obsolete comments related to nimsuggest #894

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions compiler/tools/suggest.nim
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
## - In any case, sorting also considers scoping information. Local variables
## get high priority.

# included from sigmatch.nim

import
std/[
Expand Down Expand Up @@ -77,7 +76,6 @@ when defined(nimsuggest):
const
sep = '\t'

#template sectionSuggest(): expr = "##begin\n" & getStackTrace() & "##end\n"

template origModuleName(m: PSym): string = m.name.s

Expand Down Expand Up @@ -313,7 +311,6 @@ proc suggestSymList(c: PContext, list, f: PNode; info: TLineInfo, outputs: var S
for i in 0..<list.len:
if list[i].kind == nkSym:
suggestField(c, list[i].sym, f, info, outputs)
#else: InternalError(list.info, "getSymFromList")

proc suggestObject(c: PContext, n, f: PNode; info: TLineInfo, outputs: var Suggestions) =
case n.kind
Expand Down Expand Up @@ -477,7 +474,6 @@ when defined(nimsuggest):

when defined(nimsuggest):
proc listUsages*(g: ModuleGraph; s: PSym) =
#echo "usages ", s.allUsages.len
for info in s.allUsages:
let x = if info == s.info: ideDef else: ideUse
suggestResult(g.config, symToSuggest(g, s, isLocal=false, x, info, 100, PrefixMatch.None, false, 0))
Expand Down
6 changes: 0 additions & 6 deletions nimsuggest/nimsuggest.nim
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,6 @@ when not defined(nimcore):
import std/[strutils, os, parseopt, parseutils, sequtils, net, rdstdin]
import experimental/sexp
import std/options as std_options

# Do NOT import suggest. It will lead to weird bugs with
# suggestionResultHook, because suggest.nim is included by sigmatch.
# So we import that one instead.


import
compiler/ast/[
idents,
Expand Down
Loading