From 79de239f820b23408f0150567f24cab7b4986bff Mon Sep 17 00:00:00 2001 From: Y-Less Date: Mon, 6 Nov 2023 12:10:21 +0100 Subject: [PATCH] Link to y_decorators --- annotations.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/annotations.md b/annotations.md index e7eea608..cc00fd8e 100644 --- a/annotations.md +++ b/annotations.md @@ -350,3 +350,5 @@ Because `@task__` has three named parameters the annotation does too: Some annotations in YSI use a slightly more complex method for achieving this effect. I'd like to pretend that some of this is because they're secretly doing more advanced things behind the scenes, but a lot of it is just because I hadn't come up with the helper/`@init()` method yet. +To simplify another aspect of writing a decorator, i.e. analysing the function's parameters, there is now the [y_decorator library](https://github.com/pawn-lang/YSI-Includes/blob/5.x/YSI_Server/y_decorator/quick-start.md) which provides some basic code analysis for you. For more advanced options you can use [code-parse.inc](https://github.com/Y-Less/code-parse.inc). +