mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-08 14:03:23 +00:00
fixes #7522
This commit is contained in:
@@ -20,6 +20,7 @@ proc execute*(program: string) =
|
||||
|
||||
initDefines()
|
||||
defineSymbol("nimrodvm")
|
||||
defineSymbol("nimscript")
|
||||
when hasFFI: defineSymbol("nimffi")
|
||||
registerPass(verbosePass)
|
||||
registerPass(semPass)
|
||||
|
||||
@@ -13,8 +13,8 @@
|
||||
import
|
||||
strutils, os, intsets, strtabs
|
||||
|
||||
import compiler/options, compiler/ast, compiler/astalgo, compiler/msgs,
|
||||
compiler/semdata, compiler/nimfix/prettybase, compiler/ropes, compiler/idents
|
||||
import "../compiler" / [options, ast, astalgo, msgs, semdata, ropes, idents]
|
||||
import prettybase
|
||||
|
||||
type
|
||||
StyleCheck* {.pure.} = enum None, Warn, Auto
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
#
|
||||
|
||||
import strutils, lexbase, streams
|
||||
import compiler/ast, compiler/msgs, compiler/idents
|
||||
import "../compiler" / [ast, msgs, idents]
|
||||
from os import splitFile
|
||||
|
||||
type
|
||||
|
||||
@@ -10,4 +10,4 @@
|
||||
## Include file that imports all plugins that are active.
|
||||
|
||||
import
|
||||
locals.locals, itersgen
|
||||
locals / locals, itersgen
|
||||
|
||||
@@ -9,10 +9,9 @@
|
||||
|
||||
## Plugin to transform an inline iterator into a data structure.
|
||||
|
||||
import compiler/pluginsupport, compiler/ast, compiler/astalgo,
|
||||
compiler/magicsys, compiler/lookups, compiler/semdata,
|
||||
compiler/lambdalifting, compiler/rodread, compiler/msgs
|
||||
|
||||
import ".." / [pluginsupport, ast, astalgo,
|
||||
magicsys, lookups, semdata,
|
||||
lambdalifting, rodread, msgs]
|
||||
|
||||
proc iterToProcImpl(c: PContext, n: PNode): PNode =
|
||||
result = newNodeI(nkStmtList, n.info)
|
||||
|
||||
@@ -9,8 +9,8 @@
|
||||
|
||||
## The builtin 'system.locals' implemented as a plugin.
|
||||
|
||||
import compiler/pluginsupport, compiler/ast, compiler/astalgo,
|
||||
compiler/magicsys, compiler/lookups, compiler/semdata, compiler/lowerings
|
||||
import "../../" / [pluginsupport, ast, astalgo,
|
||||
magicsys, lookups, semdata, lowerings]
|
||||
|
||||
proc semLocals(c: PContext, n: PNode): PNode =
|
||||
var counter = 0
|
||||
|
||||
Reference in New Issue
Block a user