ImportDependencies

This class holds the information about import dependencies between TranslationUnitDeclaration nodes. The dependency is based on which translation unit imports symbols of another translation unit (usually in the form of a NamespaceDeclaration). The idea is to provide a sorted list of TUs in which to resolve symbols and imports ideally. This is stored in sortedTranslationUnits and is automatically computed the fist time someone accesses the property.

Constructors

Link copied to clipboard

Types

Link copied to clipboard

A work-list, which contains a local copy of our dependency map, so that we can remove items from it while determining the order.

Properties

Link copied to clipboard
Link copied to clipboard
open override val size: Int
Link copied to clipboard

The list of TranslationUnitDeclaration nodes, sorted by their position in the dependency graph. TUs without dependencies are first in the list, following by TUs that import TUs without dependencies, and so on.

Link copied to clipboard

Functions

Link copied to clipboard

Adds a dependency from importer to imported.

Link copied to clipboard
open override fun clear()
Link copied to clipboard
open override fun clone(): Any
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun isEmpty(): Boolean
Link copied to clipboard
fun SymbolMap.mergeFrom(symbolMap: SymbolMap)

This function merges in all entries from the symbolMap into the current SymbolMap.

Link copied to clipboard
Link copied to clipboard
open override fun toString(): String