protected void event_declaration(
TypeMemberCollection container
)
{
IToken t = null;
IToken id = null;
Event e = null;
TypeReference tr = null;
try { // for error handling
t = LT(1);
match(EVENT);
id = LT(1);
match(ID);
match(AS);
tr=type_reference();
eos();
if (0==inputState.guessing)
{
e = new Event(ToLexicalInfo(id), id.getText(), tr);
e.Modifiers = _modifiers;
AddAttributes(e.Attributes);
container.Add(e);
}
docstring(e);
}
catch (RecognitionException ex)
{
if (0 == inputState.guessing)
{
reportError(ex, "event_declaration");
recover(ex,tokenSet_52_);
}
else
{
throw ex;
}
}
}