From 5c059a5dbb139f3a95397a418cf9710b3897309a Mon Sep 17 00:00:00 2001 From: daci Date: Thu, 15 Feb 2024 20:08:18 +0200 Subject: [PATCH] removed commented code --- src/plugin.ts | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/plugin.ts b/src/plugin.ts index a3e4fe4..24ba0a5 100644 --- a/src/plugin.ts +++ b/src/plugin.ts @@ -289,7 +289,7 @@ export class MaestroPlugin implements CompilerPlugin { continue; } let classAnnotations = this.findAnnotations(method.parent) || []; - if (!classAnnotations.find((a) => a.name.toLowerCase() === 'node' || a.name.toLowerCase() === 'nodeclass')) { + if (!classAnnotations.find((a) => a.name.toLowerCase() === 'node' || a.name.toLowerCase() === 'task')) { file.addDiagnostics([{ ...onNotificationNotSupported(), range: cs.range, @@ -297,15 +297,6 @@ export class MaestroPlugin implements CompilerPlugin { }]); continue } - // let isNodeClass = (method.parent.annotations|| []).find((a) => a.name.toLowerCase() === 'node' || a.name.toLowerCase() === 'nodeclass' ; - // if (!isNodeClass) { - // file.addDiagnostics([{ - // ...onNotificationNotSupported(), - // range: cs.range, - // file: file - // }]); - // continue - // } if (method.name.text.toLowerCase() == "new") { file.addDiagnostics([{ ...onNotificationConstructorError(),