Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // BSD-style license that can be found in the LICENSE file. | |
| 4 | |
| 5 #include "vm/json_parser.h" | |
| 6 | |
| 7 namespace dart { | |
| 8 | |
| 9 ParsedJSONArray* ParsedJSONObject::ArrayAt(const char* key) { | |
|
Florian Schneider
2016/12/15 19:09:35
Can this be moved into the .h file by using a forw
rmacnak
2016/12/15 21:27:19
Yes, I can mark in inline.
| |
| 10 ParsedJSONValue* member = At(key); | |
| 11 if ((member == NULL) || !member->IsArray()) { | |
| 12 return NULL; | |
| 13 } | |
| 14 return static_cast<ParsedJSONArray*>(member); | |
| 15 } | |
| 16 | |
| 17 } // namespace dart | |
| OLD | NEW |