Hopefully fixes nimsuggest building against the compiler package.
This commit is contained in:
parent
c53f65f1e7
commit
2d9a24f3f6
4 changed files with 25 additions and 19 deletions
|
|
@ -10,8 +10,10 @@
|
||||||
## Nimfix is a tool that helps to convert old-style Nimrod code to Nim code.
|
## Nimfix is a tool that helps to convert old-style Nimrod code to Nim code.
|
||||||
|
|
||||||
import strutils, os, parseopt
|
import strutils, os, parseopt
|
||||||
import options, commands, modules, sem, passes, passaux, pretty, msgs, nimconf,
|
import compiler/options, compiler/commands, compiler/modules, compiler/sem,
|
||||||
extccomp, condsyms, lists
|
compiler/passes, compiler/passaux, compiler/nimfix/pretty,
|
||||||
|
compiler/msgs, compiler/nimconf,
|
||||||
|
compiler/extccomp, compiler/condsyms, compiler/lists
|
||||||
|
|
||||||
const Usage = """
|
const Usage = """
|
||||||
Nimfix - Tool to patch Nim code
|
Nimfix - Tool to patch Nim code
|
||||||
|
|
|
||||||
|
|
@ -11,8 +11,10 @@
|
||||||
## to convert Nim code into a consistent style.
|
## to convert Nim code into a consistent style.
|
||||||
|
|
||||||
import
|
import
|
||||||
strutils, os, options, ast, astalgo, msgs, ropes, idents,
|
strutils, os, intsets, strtabs
|
||||||
intsets, strtabs, semdata, prettybase
|
|
||||||
|
import compiler/options, compiler/ast, compiler/astalgo, compiler/msgs,
|
||||||
|
compiler/semdata, compiler/nimfix/prettybase, compiler/ropes, compiler/idents
|
||||||
|
|
||||||
type
|
type
|
||||||
StyleCheck* {.pure.} = enum None, Warn, Auto
|
StyleCheck* {.pure.} = enum None, Warn, Auto
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,8 @@
|
||||||
# distribution, for details about the copyright.
|
# distribution, for details about the copyright.
|
||||||
#
|
#
|
||||||
|
|
||||||
import ast, msgs, strutils, idents, lexbase, streams
|
import strutils, lexbase, streams
|
||||||
|
import compiler/ast, compiler/msgs, compiler/idents
|
||||||
from os import splitFile
|
from os import splitFile
|
||||||
|
|
||||||
type
|
type
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,8 @@
|
||||||
|
|
||||||
## The builtin 'system.locals' implemented as a plugin.
|
## The builtin 'system.locals' implemented as a plugin.
|
||||||
|
|
||||||
import plugins, ast, astalgo, magicsys, lookups, semdata, lowerings
|
import compiler/plugins, compiler/ast, compiler/astalgo, compiler/magicsys,
|
||||||
|
compiler/lookups, compiler/semdata, compiler/lowerings
|
||||||
|
|
||||||
proc semLocals(c: PContext, n: PNode): PNode =
|
proc semLocals(c: PContext, n: PNode): PNode =
|
||||||
var counter = 0
|
var counter = 0
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue