示例#1
0
 private static StringBuilder CurlyBracket_Statements(Parser psr)
 {
     var status = psr.SaveStatus();
       try
       {
     var sb = new StringBuilder();
     if (psr.GetNextTypeOrUnknown() == TokenType.CurlyBracketOpen)
     {
       sb.Append(psr.Consume());
       sb.Append(psr.LineBreakToken());
       psr.IndentDown();
       sb.Append(psr.DefaultManyStatement());
       if (psr.GetNextTypeOrUnknown() == TokenType.CurlyBracketClose)
       {
     psr.IndentUp();
     sb.Append(psr.IndentToken(@"ParserUtils.CurlyBracket_Statements"));
     sb.Append(psr.Consume());
     return sb;
       }
     }
       }
       catch (ResetException)
       {
       }
       psr.LoadStatus(status);
       throw new ResetException();
 }