コード例 #1
0
 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);
 }
コード例 #2
0
 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);
         }
     }
 }
コード例 #3
0
 // 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);
             }
         }
     }
 }
コード例 #4
0
 private void Push(JsonValidatingReader.SchemaScope scope)
 {
     this._stack.Push(scope);
     this._currentScope = scope;
 }
コード例 #5
0
ファイル: JsonValidatingReader.cs プロジェクト: tanis2000/FEZ
 private JsonValidatingReader.SchemaScope Pop()
 {
   JsonValidatingReader.SchemaScope schemaScope = this._stack.Pop();
   this._currentScope = this._stack.Count != 0 ? this._stack.Peek() : (JsonValidatingReader.SchemaScope) null;
   return schemaScope;
 }
コード例 #6
0
ファイル: JsonValidatingReader.cs プロジェクト: tanis2000/FEZ
 private void Push(JsonValidatingReader.SchemaScope scope)
 {
   this._stack.Push(scope);
   this._currentScope = scope;
 }
コード例 #7
0
 private JsonValidatingReader.SchemaScope Pop()
 {
     JsonValidatingReader.SchemaScope result = this._stack.Pop();
     this._currentScope = ((this._stack.get_Count() == 0) ? null : this._stack.Peek());
     return(result);
 }
コード例 #8
0
 private JsonValidatingReader.SchemaScope Pop()
 {
     JsonValidatingReader.SchemaScope schemaScope = this._stack.Pop();
     this._currentScope = this._stack.Count != 0 ? this._stack.Peek() : (JsonValidatingReader.SchemaScope)null;
     return(schemaScope);
 }
コード例 #9
0
 // 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;
 }
コード例 #10
0
 // 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);
 }