dsymbol.modulecache
This file is part of DCD, a development tool for the D programming language. Copyright (C) 2014 Brian Schott
Discussion
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see
-
Declaration
boolexistanceCheck(A)(Apath);Return Value
trueif a file exists at the givenpath. -
Declaration
structModuleCache;Caches pre-parsed module information.
-
Declaration
voidaddImportPaths(const string[]paths);Adds the given
pathsto the list of directories checked for imports. Performs duplicate checking, so multiple instances of the same path will not be present. -
Declaration
voidremoveImportPaths(const string[]paths);Removes the given
pathsfrom the list of directories checked for imports. Corresponding cache entries are removed. -
Declaration
voidclear();Clears the cache from all import paths
-
Declaration
DSymbol*cacheModule(stringlocation);Caches the module at the given
location -
Declaration
voidresolveDeferredTypes(istringlocation);Resolves types for deferred symbols
-
Declaration
DSymbol*getModuleSymbol(istringlocation);Parameters
moduleNamethe name of the module in "a/b/c" form
Return Value
The symbols defined in the given module, or
nullif the module is not cached yet. -
Declaration
istringresolveImportLocation(stringmoduleName);Parameters
stringmoduleNamethe name of the module being imported, in "a/b/c" style
Return Value
The absolute path to the file that contains the module, or
nullif not found. -
Declaration
uintsymbolsAllocated;Count of autocomplete symbols that have been allocated
-