From 17f12f7222da89b79dc51c79044ad2734b1beddf Mon Sep 17 00:00:00 2001 From: peze Date: Thu, 25 Jan 2024 20:25:28 +0800 Subject: [PATCH 1/2] recuse the lost used type --- lib/semantic.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/semantic.js b/lib/semantic.js index c5884f0..fef118d 100644 --- a/lib/semantic.js +++ b/lib/semantic.js @@ -2707,6 +2707,7 @@ class TypeChecker { } if (t.tag === Tag.TYPE) { + this.usedTypes.set(t.lexeme, true); return _basic(t.lexeme); } From c68d79a49b1be41946f9ef0d237af4a03a805618 Mon Sep 17 00:00:00 2001 From: peze Date: Fri, 26 Jan 2024 17:09:28 +0800 Subject: [PATCH 2/2] Bump 2.0.4 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 406f399..638a21c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@darabonba/parser", - "version": "2.0.3", + "version": "2.0.4", "main": "index.js", "directories": { "lib": "lib",