Skip to main content
Module

x/apex_core/mod.ts>ast.OperationDefinition

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

Constructors

new
OperationDefinition(
loc: Location | undefined,
name: Name,
desc: StringValue | undefined,
type: Type,
annotations: Annotation[],
unary: boolean,
parameters: ParameterDefinition[],
)

Properties

annotations: Annotation[]
description: StringValue | undefined
name: Name
parameters: ParameterDefinition[]
type: Type
unary: boolean

Methods

accept(context: Context, visitor: Visitor): void
annotation(name: string, callback?: (annotation: Annotation) => void): Annotation | undefined
isUnary(): boolean
mapTypeToTranslation(typeTranslation: (inp: Type) => string): Map<string, string>

Constructors

new
OperationDefinition(
loc: Location | undefined,
name: Name,
desc: StringValue | undefined,
type: Type,
annotations: Annotation[],
unary: boolean,
parameters: ParameterDefinition[],
)

Properties

annotations: Annotation[]
description: StringValue | undefined
name: Name
parameters: ParameterDefinition[]
type: Type
unary: boolean

Methods

accept(context: Context, visitor: Visitor): void
annotation(name: string, callback?: (annotation: Annotation) => void): Annotation | undefined
isUnary(): boolean
mapTypeToTranslation(typeTranslation: (inp: Type) => string): Map<string, string>