Represents a node in the import graph, corresponding to a file.

Constructors

  • Parameters

    • name: string

      Displayed name.

    • origin: ItemOrigin

      Origin of the node.

    • importPath: string

      Absolute path to the imported file.

    • language: ImportLanguage

      Language in which the imported file is written.

    • hasContract: boolean

      True if this file has a contract definition.

    • inEdges: Set<ImportEdgeIdx> = ...
    • outEdges: Set<ImportEdgeIdx> = ...

    Returns ImportNode

Properties

hasContract: boolean

True if this file has a contract definition.

importPath: string

Absolute path to the imported file.

inEdges: Set<ImportEdgeIdx> = ...
language: ImportLanguage

Language in which the imported file is written.

name: string

Displayed name.

origin: ItemOrigin

Origin of the node.

outEdges: Set<ImportEdgeIdx> = ...