From 3b3f66ba0f2755ff96c5f0a5ae41d2fb2fb1f8ea Mon Sep 17 00:00:00 2001 From: Hugo Heuzard Date: Fri, 28 Apr 2023 12:22:16 +0200 Subject: [PATCH] Compiler: cleanup --- compiler/lib/dune | 2 ++ compiler/lib/js_parser.mly | 3 --- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/compiler/lib/dune b/compiler/lib/dune index 77db902f7d..b03e41bdf8 100644 --- a/compiler/lib/dune +++ b/compiler/lib/dune @@ -27,6 +27,8 @@ Js_token --explain --unused-token + TAnnot + --unused-token TComment --unused-token TCommentLineDirective diff --git a/compiler/lib/js_parser.mly b/compiler/lib/js_parser.mly index f6d634ff5b..57191c31dd 100644 --- a/compiler/lib/js_parser.mly +++ b/compiler/lib/js_parser.mly @@ -244,9 +244,6 @@ standalone_expression: program: | l=module_item* T_EOF { l } -annot: - | a=TAnnot { a, pi $symbolstartpos } - module_item: | item { $symbolstartpos, $1 }