From 8bff26d758f6e739fc4c67aa31cc7fcd9c1319f2 Mon Sep 17 00:00:00 2001 From: Terence Parr Date: Sat, 31 Aug 2013 16:47:33 -0700 Subject: [PATCH] fix cut-paste error (Coverity) --- tool/src/org/antlr/v4/semantics/RuleCollector.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tool/src/org/antlr/v4/semantics/RuleCollector.java b/tool/src/org/antlr/v4/semantics/RuleCollector.java index 48a06ff6b..7791dcfe9 100644 --- a/tool/src/org/antlr/v4/semantics/RuleCollector.java +++ b/tool/src/org/antlr/v4/semantics/RuleCollector.java @@ -96,7 +96,7 @@ public class RuleCollector extends GrammarTreeVisitor { if ( locals!=null ) { r.locals = ScopeParser.parseTypedArgList(locals, locals.getText(), g.tool.errMgr); r.locals.type = AttributeDict.DictType.LOCAL; - r.locals.ast = returns; + r.locals.ast = locals; } for (GrammarAST a : actions) {