From 5c830efd144c63c60852d9a07aeee689b2bce218 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Gonz=C3=A1lez?= Date: Fri, 26 Jul 2024 10:14:41 +0200 Subject: [PATCH] Fix generation for new kind of constants (#151) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Refs #21343. Fixes #150 Signed-off-by: Ricardo González Moreno * Apply suggestion Co-authored-by: Eduardo Ponz Segrelles --------- Signed-off-by: Ricardo González Moreno Co-authored-by: Eduardo Ponz Segrelles --- .../com/eprosima/idl/parser/grammar/IDL.g4 | 8 +++++++- .../java/com/eprosima/idl/context/Context.java | 10 ++++++---- .../idl/parser/tree/ConstDeclaration.java | 17 ++++++++++++++++- 3 files changed, 29 insertions(+), 6 deletions(-) diff --git a/src/main/antlr/com/eprosima/idl/parser/grammar/IDL.g4 b/src/main/antlr/com/eprosima/idl/parser/grammar/IDL.g4 index f5fda1b0..621f2cc6 100644 --- a/src/main/antlr/com/eprosima/idl/parser/grammar/IDL.g4 +++ b/src/main/antlr/com/eprosima/idl/parser/grammar/IDL.g4 @@ -536,7 +536,13 @@ const_decl [AnnotationDeclaration annotation] returns [Pair