import { ASTNodeWithChildren } from "../../ast_node"; import { SourceUnit } from "../meta/source_unit"; import { StructuredDocumentation } from "../meta/structured_documentation"; import { ContractDefinition } from "./contract_definition"; import { EnumValue } from "./enum_value"; export declare class EnumDefinition extends ASTNodeWithChildren { docString?: string; danglingDocString?: string; /** * The name of the enum */ name: string; /** * The source range for name string */ nameLocation?: string; constructor(id: number, src: string, name: string, members: Iterable, documentation?: string | StructuredDocumentation, nameLocation?: string, raw?: any); /** * Canonical name (or qualified name), e.g. `DefiningContract.SomeEnum` */ get canonicalName(): string; /** * Optional documentation appearing above the contract definition: * - Is `undefined` when not specified. * - Is type of `string` when specified and compiler version is older than `0.6.3`. * - Is instance of `StructuredDocumentation` when specified and compiler version is `0.6.3` or newer. */ get documentation(): string | StructuredDocumentation | undefined; set documentation(value: string | StructuredDocumentation | undefined); /** * Optional documentation that is dangling in the source fragment, * that is after end of last child and before the end of the current node. * * It is: * - Is `undefined` when not detected. * - Is type of `string` for compatibility reasons. */ get danglingDocumentation(): string | StructuredDocumentation | undefined; set danglingDocumentation(value: string | StructuredDocumentation | undefined); /** * Array of the enum values */ get vMembers(): readonly EnumValue[]; /** * Reference to a scoped contract or source unit */ get vScope(): ContractDefinition | SourceUnit; toUintTypeString(): string; } //# sourceMappingURL=enum_definition.d.ts.map