tkobayas commented on code in PR #5726:
URL: 
https://github.com/apache/incubator-kie-drools/pull/5726#discussion_r1498545359


##########
drools-drl/drools-drl-parser/src/main/java/org/drools/drl/parser/antlr4/DRLVisitorImpl.java:
##########
@@ -263,7 +263,7 @@ public RuleDescr visitRuledef(DRLParser.RuledefContext ctx) 
{
 
         if (ctx.rhs() != null) {
             ruleDescr.setConsequenceLocation(ctx.rhs().getStart().getLine(), 
ctx.rhs().getStart().getCharPositionInLine()); // location of "then"
-            
ruleDescr.setConsequence(trimThen(getTextPreservingWhitespace(ctx.rhs()))); // 
RHS is just a text
+            
ruleDescr.setConsequence(trimThen(getTokenTextPreservingWhitespace(ctx.rhs(), 
tokenStream))); // RHS is just a text

Review Comment:
   `getTokenTextPreservingWhitespace` can get TokenText where single quote is 
converted to double quote by Lexer action.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to