Class ContractDefinition

Hierarchy

Constructors

  • Parameters

    • ctx: ContractDefinitionContext | InterfaceDefinitionContext | LibraryDefinitionContext
    • visitor: SolidityParserVisitor<any>

    Returns ContractDefinition

Properties

abstract: boolean = false

Is true if contract is declared as an abstract (using abstract keyword since Solidity 0.6).

Is false otherwise.

baseContracts: InheritanceSpecifier[] = []

Base contracts

contractKind: ContractKind = 'contract'

Type of contract declaration, e.g. contract, library or interface.

location: Location

The contract name

nodes: ContractDefinitionNodes[] = []
range: [number, number]
type: "ContractDefinition" = ...

Generated using TypeDoc