Chromium Code Reviews| Index: runtime/vm/json_parser.cc |
| diff --git a/runtime/vm/json_parser.cc b/runtime/vm/json_parser.cc |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..15b58383ff97b9dcd33bfbc430d200dfc1bdf28c |
| --- /dev/null |
| +++ b/runtime/vm/json_parser.cc |
| @@ -0,0 +1,17 @@ |
| +// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file |
| +// for details. All rights reserved. Use of this source code is governed by a |
| +// BSD-style license that can be found in the LICENSE file. |
| + |
| +#include "vm/json_parser.h" |
| + |
| +namespace dart { |
| + |
| +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.
|
| + ParsedJSONValue* member = At(key); |
| + if ((member == NULL) || !member->IsArray()) { |
| + return NULL; |
| + } |
| + return static_cast<ParsedJSONArray*>(member); |
| +} |
| + |
| +} // namespace dart |