Exemplo n.º 1
0
 public static EventDeclaratorExecuter Build(EventDeclarator declarator)
 {
     return(declarator switch
     {
         KeyPressEventDeclarator keypress => new KeyPressEventDeclaratorExecuter(keypress),
         TimeEventDeclarator time => new TimeEventDeclaratorExecuter(time),
         StartEventDeclarator start => new StartEventDeclaratorExecuter(start),
         _ => ErrorHelper.ThrowUnknownNode <EventDeclaratorExecuter>(declarator)
     });
Exemplo n.º 2
0
 public EventDeclaration(EventDeclarator evt, Identifier action)
 {
     Event      = evt;
     ActionName = action;
 }
Exemplo n.º 3
0
 public EventDeclaration(EventDeclarator evt, ActionDeclaration action)
 {
     Event             = evt;
     ActionDeclaration = action;
 }