Skip to main content
Module

x/apex_core/mod.ts>ast.UnionDefinition

JavaScript / Node.js support for the Apex language
Go to Latest
class ast.UnionDefinition
implements Definition, Annotated
extends AbstractNode
Re-export
import { ast } from "https://deno.land/x/apex_core@v0.1.3/mod.ts";
const { UnionDefinition } = ast;

Constructors

new
UnionDefinition(
loc: Location | undefined,
name: Name,
desc: StringValue | undefined,
annotations: Annotation[],
types: Type[],
)

Properties

annotations: Annotation[]
optional
description: StringValue
name: Name
types: Type[]

Methods

accept(context: Context, visitor: Visitor): void
annotation(name: string, callback?: (annotation: Annotation) => void): Annotation | undefined

Constructors

new
UnionDefinition(
loc: Location | undefined,
name: Name,
desc: StringValue | undefined,
annotations: Annotation[],
types: Type[],
)

Properties

annotations: Annotation[]
optional
description: StringValue
name: Name
types: Type[]

Methods

accept(context: Context, visitor: Visitor): void
annotation(name: string, callback?: (annotation: Annotation) => void): Annotation | undefined