private JsonValidatingReader.SchemaScope Pop() { JsonValidatingReader.SchemaScope schemaScope; JsonValidatingReader.SchemaScope schemaScope1 = this._stack.Pop(); if (this._stack.Count != 0) { schemaScope = this._stack.Peek(); } else { schemaScope = null; } this._currentScope = schemaScope; return(schemaScope1); }
private void ProcessValue() { if (this._currentScope != null && this._currentScope.TokenType == JTokenType.Array) { JsonValidatingReader.SchemaScope arrayItemCount = this._currentScope; arrayItemCount.ArrayItemCount = arrayItemCount.ArrayItemCount + 1; foreach (JsonSchemaModel currentSchema in this.CurrentSchemas) { if (currentSchema == null || !currentSchema.PositionalItemsValidation || currentSchema.AllowAdditionalItems || currentSchema.Items != null && this._currentScope.ArrayItemCount - 1 < currentSchema.Items.Count) { continue; } this.RaiseError("Index {0} has not been defined and the schema does not allow additional items.".FormatWith(CultureInfo.InvariantCulture, this._currentScope.ArrayItemCount), currentSchema); } } }
// Token: 0x06000D90 RID: 3472 RVA: 0x0005519C File Offset: 0x0005339C private void ProcessValue() { if (this._currentScope != null && this._currentScope.TokenType == JTokenType.Array) { JsonValidatingReader.SchemaScope currentScope = this._currentScope; int arrayItemCount = currentScope.ArrayItemCount; currentScope.ArrayItemCount = arrayItemCount + 1; foreach (JsonSchemaModel jsonSchemaModel in this.CurrentSchemas) { if (jsonSchemaModel != null && jsonSchemaModel.PositionalItemsValidation && !jsonSchemaModel.AllowAdditionalItems && (jsonSchemaModel.Items == null || this._currentScope.ArrayItemCount - 1 >= jsonSchemaModel.Items.Count)) { this.RaiseError("Index {0} has not been defined and the schema does not allow additional items.".FormatWith(CultureInfo.InvariantCulture, this._currentScope.ArrayItemCount), jsonSchemaModel); } } } }
private void Push(JsonValidatingReader.SchemaScope scope) { this._stack.Push(scope); this._currentScope = scope; }
private JsonValidatingReader.SchemaScope Pop() { JsonValidatingReader.SchemaScope schemaScope = this._stack.Pop(); this._currentScope = this._stack.Count != 0 ? this._stack.Peek() : (JsonValidatingReader.SchemaScope) null; return schemaScope; }
private JsonValidatingReader.SchemaScope Pop() { JsonValidatingReader.SchemaScope result = this._stack.Pop(); this._currentScope = ((this._stack.get_Count() == 0) ? null : this._stack.Peek()); return(result); }
private JsonValidatingReader.SchemaScope Pop() { JsonValidatingReader.SchemaScope schemaScope = this._stack.Pop(); this._currentScope = this._stack.Count != 0 ? this._stack.Peek() : (JsonValidatingReader.SchemaScope)null; return(schemaScope); }
// Token: 0x06000639 RID: 1593 // RVA: 0x00035EA0 File Offset: 0x000340A0 private JsonValidatingReader.SchemaScope Pop() { JsonValidatingReader.SchemaScope result = this._stack.Pop(); this._currentScope = ((this._stack.Count != 0) ? this._stack.Peek() : null); return result; }
// Token: 0x06000D73 RID: 3443 RVA: 0x0001031B File Offset: 0x0000E51B private JsonValidatingReader.SchemaScope Pop() { JsonValidatingReader.SchemaScope result = this._stack.Pop(); this._currentScope = ((this._stack.Count != 0) ? this._stack.Peek() : null); return(result); }