ModuleCache

Caches pre-parsed module information.

Constructors

this
this()
Undocumented in source.
this
this(IAllocator symbolAllocator)
Undocumented in source.

Destructor

~this
~this()
Undocumented in source.

Postblit

this(this)
this(this)

No copying.

Members

Functions

addImportPaths
void addImportPaths(string[] paths)

Adds the given paths to the list of directories checked for imports. Performs duplicate checking, so multiple instances of the same path will not be present.

cacheModule
DSymbol* cacheModule(string location)

Caches the module at the given location

clear
void clear()

Clears the cache from all import paths

getAllSymbols
auto getAllSymbols()
Undocumented in source. Be warned that the author may not have intended to support it.
getImportPaths
auto getImportPaths()
Undocumented in source. Be warned that the author may not have intended to support it.
getModuleSymbol
DSymbol* getModuleSymbol(istring location)
removeImportPaths
void removeImportPaths(string[] paths)

Removes the given paths from the list of directories checked for imports. Corresponding cache entries are removed.

resolveDeferredTypes
void resolveDeferredTypes(istring location)

Resolves types for deferred symbols

resolveImportLocation
istring resolveImportLocation(string moduleName)

Variables

deferredSymbols
UnrolledList!(DeferredSymbol*) deferredSymbols;
Undocumented in source.
symbolAllocator
IAllocator symbolAllocator;
Undocumented in source.
symbolsAllocated
uint symbolsAllocated;

Count of autocomplete symbols that have been allocated

Meta