class OperationDefinition
implements Annotated
extends AbstractNode
Re-export
import { OperationDefinition } from "https://deno.land/x/apex_core@v0.1.5/ast/mod.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
Methods
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
Methods
annotation(name: string, callback?: (annotation: Annotation) => void): Annotation | undefined
isUnary(): boolean
mapTypeToTranslation(typeTranslation: (inp: Type) => string): Map<string, string>