// Token: 0x060014C8 RID: 5320 RVA: 0x000603B0 File Offset: 0x0005E5B0 private void smethod_3800(Class_361 arg_0) { this.prop_0.prop_18 = new List <Class_459>(); switch (arg_0.prop_3) { case Class_428.Object: this.prop_0.prop_18.Add(this.gmethod_3793(arg_0)); this.prop_0.prop_19 = false; return; case Class_428.Array: this.prop_0.prop_19 = true; using (IEnumerator <Class_361> enumerator = ((IEnumerable <Class_361>)arg_0).GetEnumerator()) { while (enumerator.MoveNext()) { Class_361 arg_ = enumerator.Current; this.prop_0.prop_18.Add(this.gmethod_3793(arg_)); } return; } break; } throw Class_318.xmethod_2221(arg_0, arg_0.prop_7, "Expected array or JSON schema object, got {0}.".FormatWith(CultureInfo.InvariantCulture, arg_0.prop_3)); }
// Token: 0x060014C4 RID: 5316 RVA: 0x000601D4 File Offset: 0x0005E3D4 private void dmethod_3796(Class_361 arg_0) { if (arg_0.prop_3 != Class_428.Array) { throw Class_318.xmethod_2221(arg_0, arg_0.prop_7, "Expected Array token while parsing enum values, got {0}.".FormatWith(CultureInfo.InvariantCulture, arg_0.prop_3)); } this.prop_0.prop_28 = new List <Class_361>(); foreach (Class_361 class_ in ((IEnumerable <Class_361>)arg_0)) { this.prop_0.prop_28.Add(class_.smethod_2580()); } }
// Token: 0x060014C7 RID: 5319 RVA: 0x000602E0 File Offset: 0x0005E4E0 private IDictionary <string, Class_459> pmethod_3799(Class_361 arg_0) { IDictionary <string, Class_459> dictionary = new Dictionary <string, Class_459>(); if (arg_0.prop_3 != Class_428.Object) { throw Class_318.xmethod_2221(arg_0, arg_0.prop_7, "Expected Object token while parsing schema properties, got {0}.".FormatWith(CultureInfo.InvariantCulture, arg_0.prop_3)); } foreach (Class_361 class_ in ((IEnumerable <Class_361>)arg_0)) { Class_427 class_2 = (Class_427)class_; if (dictionary.ContainsKey(class_2.prop_1)) { throw new Class_318("Property {0} has already been defined in schema.".FormatWith(CultureInfo.InvariantCulture, class_2.prop_1)); } dictionary.Add(class_2.prop_1, this.gmethod_3793(class_2.prop_2)); } return(dictionary); }
// Token: 0x060014C9 RID: 5321 RVA: 0x00060494 File Offset: 0x0005E694 private Class_463?xmethod_3801(Class_361 arg_0) { Class_428 class_ = arg_0.prop_3; if (class_ == Class_428.Array) { Class_463?class_2 = new Class_463?(Class_463.None); foreach (Class_361 class_3 in ((IEnumerable <Class_361>)arg_0)) { if (class_3.prop_3 != Class_428.String) { throw Class_318.xmethod_2221(class_3, class_3.prop_7, "Exception JSON schema type string token, got {0}.".FormatWith(CultureInfo.InvariantCulture, arg_0.prop_3)); } class_2 |= Class_460.tmethod_3802(Class_361.lmethod_2508(class_3)); } return(class_2); } if (class_ != Class_428.String) { throw Class_318.xmethod_2221(arg_0, arg_0.prop_7, "Expected array or JSON schema type string token, got {0}.".FormatWith(CultureInfo.InvariantCulture, arg_0.prop_3)); } return(new Class_463?(Class_460.tmethod_3802(Class_361.lmethod_2508(arg_0)))); }
// Token: 0x060014C1 RID: 5313 RVA: 0x0005FA88 File Offset: 0x0005DC88 private Class_459 gmethod_3793(Class_361 arg_0) { Class_423 class_ = arg_0 as Class_423; if (class_ == null) { throw Class_318.xmethod_2221(arg_0, arg_0.prop_7, "Expected object while parsing schema object, got {0}.".FormatWith(CultureInfo.InvariantCulture, arg_0.prop_3)); } Class_361 arg_; if (class_.xmethod_3321("$ref", out arg_)) { return(new Class_459 { prop_35 = Class_361.lmethod_2508(arg_) }); } string text = arg_0.prop_7.Replace(".", "/").Replace("[", "/").Replace("]", string.Empty); if (!string.IsNullOrEmpty(text)) { text = "/" + text; } text = "#" + text; Class_459 result; if (this.field_2.TryGetValue(text, out result)) { return(result); } this.kmethod_3787(new Class_459 { prop_33 = text }); this.cmethod_3794(class_); return(this.lmethod_3788()); }