//throws RecognitionException public void argumentAssignment(AST _t, StringTemplate embedded, IDictionary argumentContext ) { antlr.stringtemplate.language.StringTemplateAST argumentAssignment_AST_in = (antlr.stringtemplate.language.StringTemplateAST)_t; antlr.stringtemplate.language.StringTemplateAST arg = null; Object e = null; try { // for error handling if (null == _t) _t = ASTNULL; switch ( _t.Type ) { case ASSIGN: { AST __t43 = _t; antlr.stringtemplate.language.StringTemplateAST tmp20_AST_in = (_t==ASTNULL) ? null : (antlr.stringtemplate.language.StringTemplateAST)_t; match((AST)_t,ASSIGN); _t = _t.getFirstChild(); arg = (_t==ASTNULL) ? null : (antlr.stringtemplate.language.StringTemplateAST)_t; match((AST)_t,ID); _t = _t.getNextSibling(); e=expr(_t); _t = retTree_; _t = __t43; _t = _t.getNextSibling(); if ( e!=null ) { self.rawSetArgumentAttribute(embedded,argumentContext,arg.getText(),e); } break; } case DOTDOTDOT: { antlr.stringtemplate.language.StringTemplateAST tmp21_AST_in = (_t==ASTNULL) ? null : (antlr.stringtemplate.language.StringTemplateAST)_t; match((AST)_t,DOTDOTDOT); _t = _t.getNextSibling(); embedded.setPassThroughAttributes(true); break; } default: { throw new NoViableAltException(_t); } } } catch (RecognitionException ex) { reportError(ex); if (null != _t) { _t = _t.getNextSibling(); } } retTree_ = _t; }