"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/dmd/statementsem.d" between
dmd-2.094.1.tar.gz and dmd-2.094.2.tar.gz

About: DMD (Digital Mars D) is the D reference compiler. D is an object-oriented, imperative, multi-paradigm system programming language.

statementsem.d  (dmd-2.094.1):statementsem.d  (dmd-2.094.2)
skipping to change at line 52 skipping to change at line 52
import dmd.globals; import dmd.globals;
import dmd.gluelayer; import dmd.gluelayer;
import dmd.id; import dmd.id;
import dmd.identifier; import dmd.identifier;
import dmd.init; import dmd.init;
import dmd.intrange; import dmd.intrange;
import dmd.mtype; import dmd.mtype;
import dmd.nogc; import dmd.nogc;
import dmd.opover; import dmd.opover;
import dmd.root.outbuffer; import dmd.root.outbuffer;
import dmd.root.rmem;
import dmd.root.string; import dmd.root.string;
import dmd.semantic2; import dmd.semantic2;
import dmd.sideeffect; import dmd.sideeffect;
import dmd.statement; import dmd.statement;
import dmd.target; import dmd.target;
import dmd.tokens; import dmd.tokens;
import dmd.typesem; import dmd.typesem;
import dmd.visitor; import dmd.visitor;
import dmd.compiler; import dmd.compiler;
skipping to change at line 4207 skipping to change at line 4206
foreach (i; 0 .. imps.imports.dim) foreach (i; 0 .. imps.imports.dim)
{ {
Import s = (*imps.imports)[i].isImport(); Import s = (*imps.imports)[i].isImport();
assert(!s.aliasdecls.dim); assert(!s.aliasdecls.dim);
foreach (j, name; s.names) foreach (j, name; s.names)
{ {
Identifier _alias = s.aliases[j]; Identifier _alias = s.aliases[j];
if (!_alias) if (!_alias)
_alias = name; _alias = name;
auto tname = Pool!TypeIdentifier.make(s.loc, name); auto tname = new TypeIdentifier(s.loc, name);
auto ad = new AliasDeclaration(s.loc, _alias, tname); auto ad = new AliasDeclaration(s.loc, _alias, tname);
ad._import = s; ad._import = s;
s.aliasdecls.push(ad); s.aliasdecls.push(ad);
} }
s.dsymbolSemantic(sc); s.dsymbolSemantic(sc);
// https://issues.dlang.org/show_bug.cgi?id=19942 // https://issues.dlang.org/show_bug.cgi?id=19942
// If the module that's being imported doesn't exist, don't add it t o the symbol table // If the module that's being imported doesn't exist, don't add it t o the symbol table
// for the current scope. // for the current scope.
 End of changes. 2 change blocks. 
2 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)