AST tmp1060_AST_in = (AST)_t;
AST tmp1070_AST_in = (AST)_t;
	public final void definedatasourcestate(AST _t) throws RecognitionException {				AST definedatasourcestate_AST_in = (_t == ASTNULL) ? null : (AST)_t;		AST def = null;		AST id = null;				AST __t443 = _t;		def = _t==ASTNULL ? null :(AST)_t;		match(_t,DEFINE);		_t = _t.getFirstChild();		{		if (_t==null) _t=ASTNULL;		switch ( _t.getType()) {		case NEW:		case SHARED:		{			def_shared(_t);			_t = _retTree;			break;		}		case PRIVATE:		case PUBLIC:		case DATASOURCE:		case PROTECTED:		{			break;		}		default:		{			throw new NoViableAltException(_t);		}		}		}		{		if (_t==null) _t=ASTNULL;		switch ( _t.getType()) {		case PRIVATE:		case PUBLIC:		case PROTECTED:		{			def_visib(_t);			_t = _retTree;			break;		}		case DATASOURCE:		{			break;		}		default:		{			throw new NoViableAltException(_t);		}		}		}		AST tmp1057_AST_in = (AST)_t;		match(_t,DATASOURCE);		_t = _t.getNextSibling();		id = (AST)_t;		match(_t,ID);		_t = _t.getNextSibling();		if ( inputState.guessing==0 ) {			push(action.defineSymbol(DATASOURCE, def, id));		}		AST tmp1058_AST_in = (AST)_t;		match(_t,FOR);		_t = _t.getNextSibling();		{		if (_t==null) _t=ASTNULL;		switch ( _t.getType()) {		case QUERY:		{			AST __t447 = _t;			AST tmp1059_AST_in = (AST)_t;			match(_t,QUERY);			_t = _t.getFirstChild();			AST tmp1060_AST_in = (AST)_t;			match(_t,ID);			_t = _t.getNextSibling();			_t = __t447;			_t = _t.getNextSibling();			break;		}		case EOF:		case PERIOD:		case COMMA:		case RECORD_NAME:		{			break;		}		default:		{			throw new NoViableAltException(_t);		}		}		}		{		if (_t==null) _t=ASTNULL;		switch ( _t.getType()) {		case RECORD_NAME:		{			source_buffer_phrase(_t);			_t = _retTree;			break;		}		case EOF:		case PERIOD:		case COMMA:		{			break;		}		default:		{			throw new NoViableAltException(_t);		}		}		}		{		_loop450:		do {			if (_t==null) _t=ASTNULL;			if ((_t.getType()==COMMA)) {				AST tmp1061_AST_in = (AST)_t;				match(_t,COMMA);				_t = _t.getNextSibling();				source_buffer_phrase(_t);				_t = _retTree;			}			else {				break _loop450;			}					} while (true);		}		state_end(_t);		_t = _retTree;		if ( inputState.guessing==0 ) {			action.addToSymbolScope(pop());		}		_t = __t443;		_t = _t.getNextSibling();		_retTree = _t;	}