From 079fb65c81672efe210dd7a7b3e920a8bd8e8fd0 Mon Sep 17 00:00:00 2001 From: Georg Schwarz Date: Wed, 31 Jul 2024 17:28:30 +0200 Subject: [PATCH] Replace @see by @link in jsdoc comments --- .../src/lib/blocks/execution-result.ts | 20 +++++++++---------- .../language-server/src/lib/ast/model-util.ts | 4 ++-- .../typed-object/block-type-wrapper.ts | 4 ++-- .../composite-block-type-wrapper.ts | 4 ++-- .../typed-object/constrainttype-wrapper.ts | 4 ++-- .../primitive/primitive-value-type.ts | 2 +- .../lib/ast/wrappers/value-type/value-type.ts | 2 +- .../RangeConstraint.jv | 8 ++++---- 8 files changed, 24 insertions(+), 24 deletions(-) diff --git a/libs/execution/src/lib/blocks/execution-result.ts b/libs/execution/src/lib/blocks/execution-result.ts index 265e3a14c..6f26c7c24 100644 --- a/libs/execution/src/lib/blocks/execution-result.ts +++ b/libs/execution/src/lib/blocks/execution-result.ts @@ -11,8 +11,8 @@ export interface ExecutionErrorDetails { } /** - * Convenience interfaces and methods wrapping @see Either of fp-ts library. - * Left is the @see ExecutionErrorDetails + * Convenience interfaces and methods wrapping {@link Either} of fp-ts library. + * Left is the {@link ExecutionErrorDetails} * Right is a generic T */ @@ -21,37 +21,37 @@ export type Err = E.Left; export type Ok = E.Right; /** - * Creates an @see Ok object from a data object typed T. + * Creates an {@link Ok} object from a data object typed T. * @param data the data object - * @returns the created @see Ok object + * @returns the created {@link Ok} object */ export function ok(data: T): Result { return E.right(data); } /** - * Creates an @see Err object from a @see ExecutionErrorDetails object. - * @param details the @see ExecutionErrorDetails object - * @returns the created @see Err object + * Creates an {@link Err} object from a {@link ExecutionErrorDetails} object. + * @param details the {@link ExecutionErrorDetails} object + * @returns the created {@link Err} object */ export function err(details: ExecutionErrorDetails): Result { return E.left(details); } /** - * Type guard for @see Ok + * Type guard for {@link Ok} */ export function isOk(result: Result): result is Ok { return E.isRight(result); } /** - * Type guard for @see Err + * Type guard for {@link Err} */ export function isErr(result: Result): result is Err { return E.isLeft(result); } /** - * Convenience method to get wrapped data of an @see Ok object. + * Convenience method to get wrapped data of an {@link Ok} object. */ export function okData(ok: Ok): T { return ok.right; diff --git a/libs/language-server/src/lib/ast/model-util.ts b/libs/language-server/src/lib/ast/model-util.ts index ea9ccc46c..d243423b9 100644 --- a/libs/language-server/src/lib/ast/model-util.ts +++ b/libs/language-server/src/lib/ast/model-util.ts @@ -53,7 +53,7 @@ export function getNextAstNodeContainer( /** * Utility function that gets all builtin block types. * Duplicates are only added once. - * Make sure to call @see initializeWorkspace first so that the file system is initialized. + * Make sure to call {@link initializeWorkspace} first so that the file system is initialized. */ export function getAllBuiltinBlockTypes( documentService: LangiumDocuments, @@ -93,7 +93,7 @@ export function getAllBuiltinBlockTypes( /** * Utility function that gets all builtin constraint types. * Duplicates are only added once. - * Make sure to call @see initializeWorkspace first so that the file system is initialized. + * Make sure to call {@link initializeWorkspace} first so that the file system is initialized. */ export function getAllBuiltinConstraintTypes( documentService: LangiumDocuments, diff --git a/libs/language-server/src/lib/ast/wrappers/typed-object/block-type-wrapper.ts b/libs/language-server/src/lib/ast/wrappers/typed-object/block-type-wrapper.ts index c13f9a284..132ea2c70 100644 --- a/libs/language-server/src/lib/ast/wrappers/typed-object/block-type-wrapper.ts +++ b/libs/language-server/src/lib/ast/wrappers/typed-object/block-type-wrapper.ts @@ -37,9 +37,9 @@ export class BlockTypeWrapper extends TypedObjectWrapper