Skip to main content
Module

x/apex_core/ast.ts>OperationDefinition

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

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>