| OLD | NEW |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef RUNTIME_VM_JSON_PARSER_H_ | 5 #ifndef RUNTIME_VM_JSON_PARSER_H_ |
| 6 #define RUNTIME_VM_JSON_PARSER_H_ | 6 #define RUNTIME_VM_JSON_PARSER_H_ |
| 7 | 7 |
| 8 #include "vm/allocation.h" | 8 #include "vm/allocation.h" |
| 9 #include "vm/growable_array.h" |
| 9 #include "vm/zone.h" | 10 #include "vm/zone.h" |
| 10 #include "vm/growable_array.h" | |
| 11 | 11 |
| 12 namespace dart { | 12 namespace dart { |
| 13 | 13 |
| 14 class ParsedJSONArray; | 14 class ParsedJSONArray; |
| 15 | 15 |
| 16 class ParsedJSONValue : public ZoneAllocated { | 16 class ParsedJSONValue : public ZoneAllocated { |
| 17 public: | 17 public: |
| 18 virtual ~ParsedJSONValue() {} | 18 virtual ~ParsedJSONValue() {} |
| 19 | 19 |
| 20 virtual bool IsObject() const { return false; } | 20 virtual bool IsObject() const { return false; } |
| (...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 322 ParsedJSONValue* member = At(key); | 322 ParsedJSONValue* member = At(key); |
| 323 if ((member == NULL) || !member->IsArray()) { | 323 if ((member == NULL) || !member->IsArray()) { |
| 324 return NULL; | 324 return NULL; |
| 325 } | 325 } |
| 326 return static_cast<ParsedJSONArray*>(member); | 326 return static_cast<ParsedJSONArray*>(member); |
| 327 } | 327 } |
| 328 | 328 |
| 329 } // namespace dart | 329 } // namespace dart |
| 330 | 330 |
| 331 #endif // RUNTIME_VM_JSON_PARSER_H_ | 331 #endif // RUNTIME_VM_JSON_PARSER_H_ |
| OLD | NEW |