class ast.OperationDefinition
implements Annotated
extends AbstractNode
Re-export
import { ast } from "https://deno.land/x/apex_core@v0.1.5/index.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
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>