reduce imports (#25398)

This commit is contained in:
Jacek Sieka
2025-12-31 13:33:57 +01:00
committed by GitHub
parent e97b0bb541
commit 61970be479
13 changed files with 14 additions and 16 deletions

View File

@@ -10,7 +10,7 @@
# abstract syntax tree + symbol table
import
lineinfos, options, ropes, idents, int128, wordrecg
lineinfos, options, idents, int128, wordrecg
import std/[tables, hashes]
from std/strutils import toLowerAscii

View File

@@ -8,10 +8,9 @@
#
import
lineinfos, options, ropes, idents, int128, wordrecg
lineinfos, options, ropes, idents, int128
import std/[tables, hashes]
from std/strutils import toLowerAscii
when defined(nimPreviewSlimSystem):
import std/assertions

View File

@@ -139,8 +139,7 @@
import
ast, msgs, idents,
renderer, magicsys, lowerings, lambdalifting, modulegraphs, lineinfos,
options
renderer, magicsys, lowerings, lambdalifting, modulegraphs, lineinfos
import std/tables

View File

@@ -11,9 +11,9 @@
## for details. Note this is a first implementation and only the "Concept matching"
## section has been implemented.
import ast, astalgo, semdata, lookups, lineinfos, idents, msgs, renderer, types, layeredtable
import ast, semdata, lookups, lineinfos, idents, msgs, renderer, types, layeredtable
import std/[intsets, sets]
import std/sets
when defined(nimPreviewSlimSystem):
import std/assertions

View File

@@ -11,7 +11,7 @@
## This enables incremental and parallel compilation using the `m` switch.
import std / [os, tables, sets, times, osproc, strutils]
import options, msgs, pathutils, lineinfos
import options, msgs, lineinfos
import "../dist/nimony/src/lib" / [nifstreams, nifcursors, bitabs, nifreader, nifbuilder]
import "../dist/nimony/src/gear2" / modnames

View File

@@ -19,7 +19,7 @@ import
wordrecg, syntaxes, renderer, lexer,
packages/docutils/[rst, rstidx, rstgen, dochelpers],
trees, types,
typesrenderer, astalgo, lineinfos,
typesrenderer, lineinfos,
pathutils, nimpaths, renderverbatim, packages
import packages/docutils/rstast except FileIndex, TLineInfo

View File

@@ -10,7 +10,7 @@
## This module implements the symbol importing mechanism.
import
ast, astalgo, msgs, options, idents, lookups,
ast, msgs, options, idents, lookups,
semdata, modulepaths, sigmatch, lineinfos,
modulegraphs, wordrecg
from std/strutils import `%`, startsWith

View File

@@ -1,4 +1,3 @@
import std/[tables]
import ast, astalgo
type

View File

@@ -10,7 +10,7 @@
# Built-in types and compilerprocs are registered here.
import
ast, astalgo, msgs, platform, idents,
ast, msgs, platform, idents,
modulegraphs, lineinfos
export createMagic

View File

@@ -11,7 +11,7 @@
## represents a complete Nim project. Single modules can either be kept in RAM
## or stored in a rod-file.
import std/[intsets, tables, hashes, strtabs, algorithm, os, strutils, parseutils]
import std/[intsets, tables, hashes, strtabs, os, strutils, parseutils]
import ../dist/checksums/src/checksums/md5
import ast, astalgo, options, lineinfos,idents, btrees, ropes, msgs, pathutils, packages, suggestsymdb
import ic / [packed_ast, ic]

View File

@@ -1,9 +1,10 @@
import sem, cgen, modulegraphs, ast, llstream, parser, msgs,
lineinfos, reorder, options, semdata, cgendata, modules, pathutils,
packages, syntaxes, depends, vm, vmdef, pragmas, idents, lookups, wordrecg,
packages, syntaxes, depends, vm, pragmas, idents, lookups, wordrecg,
liftdestructors, nifgen
when not defined(nimKochBootstrap):
import vmdef
import ast2nif
import "../dist/nimony/src/lib" / [nifstreams, bitabs]

View File

@@ -11,7 +11,7 @@ import
ast, astalgo, msgs, renderer, magicsys, types, idents, trees,
wordrecg, options, guards, lineinfos, semfold, semdata,
modulegraphs, varpartitions, typeallowed, nilcheck, errorhandling,
semstrictfuncs, suggestsymdb, pushpoppragmas, lowerings
semstrictfuncs, suggestsymdb, pushpoppragmas
import std/[tables, intsets, strutils, sequtils]

View File

@@ -9,7 +9,7 @@
# Implements a table from trees to trees. Does structural equivalence checking.
import ast, astalgo, types
import ast, types
import std/hashes