private JsonList ParseArray() { Json.Parser.TOKEN nextToken; JsonList jsonList = new JsonList(); this.json.Read(); bool flag = true; Label1: while (flag) { nextToken = this.NextToken; switch (nextToken) { case Json.Parser.TOKEN.SQUARED_CLOSE: { flag = false; continue; } case Json.Parser.TOKEN.COMMA: { continue; } default: { if (nextToken == Json.Parser.TOKEN.NONE) { break; } else { goto Label0; } } } return(null); } return(jsonList); Label0: object obj = this.ParseByToken(nextToken); jsonList.Add(obj); if (obj == null) { this.json.Read(); } goto Label1; }
private JsonList ParseArray() { JsonList jsonList = new JsonList(); this.json.Read(); bool flag = true; while (flag) { Json.Parser.TOKEN nextToken = this.NextToken; Json.Parser.TOKEN tOKEN = nextToken; switch (tOKEN) { case Json.Parser.TOKEN.SQUARED_CLOSE: flag = false; continue; case Json.Parser.TOKEN.COLON: IL_38: if (tOKEN != Json.Parser.TOKEN.NONE) { object obj = this.ParseByToken(nextToken); jsonList.Add(obj); if (obj == null) { this.json.Read(); } continue; } return(null); case Json.Parser.TOKEN.COMMA: continue; } goto IL_38; } return(jsonList); }
private JsonList ParseArray() { JsonList jsonList = new JsonList(); this.json.Read(); bool flag = true; while (flag) { Json.Parser.TOKEN nextToken = this.NextToken; switch (nextToken) { case Json.Parser.TOKEN.SQUARED_CLOSE: flag = false; break; default: { if (nextToken == Json.Parser.TOKEN.NONE) { return(null); } object obj = this.ParseByToken(nextToken); jsonList.Add(obj); if (obj == null) { this.json.Read(); } break; } case Json.Parser.TOKEN.COMMA: break; } } return(jsonList); }