Ejemplo n.º 1
0
 public object VisitGotoStatement(JsGotoStatement statement, bool addNewline)
 {
     if (!_allowIntermediates)
     {
         throw new NotSupportedException("goto should not occur in the output stage");
     }
     _cb.Append("goto ").Append(statement.TargetLabel).Append(";");
     if (addNewline)
     {
         _cb.AppendLine();
     }
     return(null);
 }
 public override JsStatement VisitGotoStatement(JsGotoStatement statement, object data)
 {
     _result |= InterestingConstruct.Goto;
     return(statement);
 }
 public override JsStatement VisitGotoStatement(JsGotoStatement statement, object data)
 {
     return(new JsGotoStateStatement(statement.TargetLabel, _currentState));
 }
Ejemplo n.º 4
0
 public override JsStatement VisitGotoStatement(JsGotoStatement statement, object data)
 {
     throw new InvalidOperationException("Shouldn't happen");
 }
 public virtual JsStatement VisitGotoStatement(JsGotoStatement statement, TData data)
 {
     return(statement);
 }