dmd.dimport

A Dsymbol representing a renamed import.

Authors

Walter Bright

Source: dimport.d

  • Declaration

    class Import: dmd.dsymbol.Dsymbol;

    • Declaration

      bool load(Scope* sc);

      Load this module.

      Return Value

      true for errors, false for success

    • Declaration

      void addPackageAccess(ScopeDsymbol scopesym);

      Mark the imported packages as accessible from the current scope. This access check is necessary when using FQN b/c we're using a single global package tree. https://issues.dlang.org/show_bug.cgi?id=313

    • Declaration

      void addMember(Scope* sc, ScopeDsymbol sd);

      Add import to sd's symbol table.