Skip to content

Commit

Permalink
restrict semantic imports for AST files
Browse files Browse the repository at this point in the history
  • Loading branch information
thewilsonator committed Oct 7, 2024
1 parent 4c02e46 commit 89c504c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion compiler/src/dmd/cond.d
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import dmd.dscope;
import dmd.dsymbol;
import dmd.errors;
import dmd.expression;
import dmd.expressionsem;
import dmd.expressionsem : expressionSemantic, evalStaticCondition;
import dmd.globals;
import dmd.identifier;
import dmd.location;
Expand Down
8 changes: 4 additions & 4 deletions compiler/src/dmd/declaration.d
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,18 @@ import dmd.delegatize;
import dmd.dscope;
import dmd.dstruct;
import dmd.dsymbol;
import dmd.dsymbolsem;
import dmd.dsymbolsem : dsymbolSemantic, aliasSemantic;
import dmd.dtemplate;
import dmd.errors;
import dmd.expression;
import dmd.func;
import dmd.funcsem;
import dmd.funcsem : overloadApply, getLevelAndCheck;
import dmd.globals;
import dmd.gluelayer;
import dmd.id;
import dmd.identifier;
import dmd.init;
import dmd.initsem;
import dmd.initsem : initializerToExpression, initializerSemantic;
import dmd.intrange;
import dmd.location;
import dmd.mtype;
Expand All @@ -42,7 +42,7 @@ import dmd.rootobject;
import dmd.root.filename;
import dmd.target;
import dmd.tokens;
import dmd.typesem;
import dmd.typesem : toDsymbol, typeSemantic, size, hasPointers;
import dmd.visitor;

version (IN_GCC) {}
Expand Down
16 changes: 8 additions & 8 deletions compiler/src/dmd/dtemplate.d
Original file line number Diff line number Diff line change
Expand Up @@ -53,20 +53,19 @@ import dmd.dinterpret;
import dmd.dmodule;
import dmd.dscope;
import dmd.dsymbol;
import dmd.dsymbolsem;
import dmd.dsymbolsem : dsymbolSemantic, checkDeprecated, aliasSemantic, search, search_correct, setScope, importAll;
import dmd.errors;
import dmd.errorsink;
import dmd.expression;
import dmd.expressionsem;
import dmd.expressionsem : resolveLoc, expressionSemantic, resolveProperties;
import dmd.func;
import dmd.funcsem;
import dmd.funcsem : functionSemantic, leastAsSpecialized, overloadApply;
import dmd.globals;
import dmd.hdrgen;
import dmd.id;
import dmd.identifier;
import dmd.impcnvtab;
import dmd.init;
import dmd.initsem;
import dmd.location;
import dmd.mangle;
import dmd.mtype;
Expand All @@ -75,11 +74,12 @@ import dmd.optimize;
import dmd.root.array;
import dmd.common.outbuffer;
import dmd.rootobject;
import dmd.semantic2;
import dmd.semantic3;
import dmd.templatesem;
import dmd.semantic3 : semantic3;
import dmd.templatesem : matchWithInstance, formatParamsWithTiargs, leastAsSpecialized, declareParameter;
import dmd.tokens;
import dmd.typesem;
import dmd.typesem : hasPointers, typeSemantic, merge, merge2, resolve, toDsymbol,
addStorageClass, isBaseOf, equivalent, sarrayOf, constOf, mutableOf, unSharedOf,
unqualify, aliasthisOf, castMod, substWildTo, addMod;
import dmd.visitor;

import dmd.templateparamsem;
Expand Down

0 comments on commit 89c504c

Please sign in to comment.