| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 VM_JSON_STREAM_H_ | 5 #ifndef VM_JSON_STREAM_H_ |
| 6 #define VM_JSON_STREAM_H_ | 6 #define VM_JSON_STREAM_H_ |
| 7 | 7 |
| 8 #include "include/dart_api.h" // for Dart_Port | 8 #include "include/dart_api.h" // for Dart_Port |
| 9 #include "platform/json.h" | 9 #include "platform/json.h" |
| 10 #include "vm/allocation.h" | 10 #include "vm/allocation.h" |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 void PrintProperty(const char* name, double d); | 85 void PrintProperty(const char* name, double d); |
| 86 void PrintProperty(const char* name, const char* s); | 86 void PrintProperty(const char* name, const char* s); |
| 87 void PrintfProperty(const char* name, const char* format, ...) | 87 void PrintfProperty(const char* name, const char* format, ...) |
| 88 PRINTF_ATTRIBUTE(3, 4); | 88 PRINTF_ATTRIBUTE(3, 4); |
| 89 void PrintProperty(const char* name, const Object& o, bool ref = true); | 89 void PrintProperty(const char* name, const Object& o, bool ref = true); |
| 90 | 90 |
| 91 void PrintPropertyName(const char* name); | 91 void PrintPropertyName(const char* name); |
| 92 void PrintCommaIfNeeded(); | 92 void PrintCommaIfNeeded(); |
| 93 bool NeedComma(); | 93 bool NeedComma(); |
| 94 | 94 |
| 95 void AddEscapedUTF8String(const char* s); |
| 96 |
| 95 intptr_t nesting_level() const { return open_objects_; } | 97 intptr_t nesting_level() const { return open_objects_; } |
| 96 | 98 |
| 97 intptr_t open_objects_; | 99 intptr_t open_objects_; |
| 98 TextBuffer buffer_; | 100 TextBuffer buffer_; |
| 99 Dart_Port reply_port_; | 101 Dart_Port reply_port_; |
| 100 const char* command_; | 102 const char* command_; |
| 101 const char** arguments_; | 103 const char** arguments_; |
| 102 intptr_t num_arguments_; | 104 intptr_t num_arguments_; |
| 103 const char** option_keys_; | 105 const char** option_keys_; |
| 104 const char** option_values_; | 106 const char** option_values_; |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 | 190 |
| 189 friend class JSONObject; | 191 friend class JSONObject; |
| 190 | 192 |
| 191 DISALLOW_ALLOCATION(); | 193 DISALLOW_ALLOCATION(); |
| 192 DISALLOW_COPY_AND_ASSIGN(JSONArray); | 194 DISALLOW_COPY_AND_ASSIGN(JSONArray); |
| 193 }; | 195 }; |
| 194 | 196 |
| 195 } // namespace dart | 197 } // namespace dart |
| 196 | 198 |
| 197 #endif // VM_JSON_STREAM_H_ | 199 #endif // VM_JSON_STREAM_H_ |
| OLD | NEW |