Skip to main content
Module

x/apex_core/mod.ts>ast.UnionMemberDefinition

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

Constructors

new
UnionMemberDefinition(
loc: Location | undefined,
desc: StringValue | undefined,
type: Type,
annotations: Annotation[],
)

Properties

annotations: Annotation[]
optional
description: StringValue
type: Type

Methods

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

Constructors

new
UnionMemberDefinition(
loc: Location | undefined,
desc: StringValue | undefined,
type: Type,
annotations: Annotation[],
)

Properties

annotations: Annotation[]
optional
description: StringValue
type: Type

Methods

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