| 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 intptr_t num_options() const { return num_options_; } | 49 intptr_t num_options() const { return num_options_; } |
| 50 const char* GetOptionKey(intptr_t i) const { | 50 const char* GetOptionKey(intptr_t i) const { |
| 51 return option_keys_[i]; | 51 return option_keys_[i]; |
| 52 } | 52 } |
| 53 const char* GetOptionValue(intptr_t i) const { | 53 const char* GetOptionValue(intptr_t i) const { |
| 54 return option_values_[i]; | 54 return option_values_[i]; |
| 55 } | 55 } |
| 56 | 56 |
| 57 const char* LookupOption(const char* key) const; | 57 const char* LookupOption(const char* key) const; |
| 58 | 58 |
| 59 const char* command() const { return command_; } |
| 60 const char** arguments() const { return arguments_; } |
| 61 const char** option_keys() const { return option_keys_; } |
| 62 const char** option_values() const { return option_values_; } |
| 63 |
| 59 private: | 64 private: |
| 60 void Clear(); | 65 void Clear(); |
| 61 | 66 |
| 62 void OpenObject(const char* property_name = NULL); | 67 void OpenObject(const char* property_name = NULL); |
| 63 void CloseObject(); | 68 void CloseObject(); |
| 64 | 69 |
| 65 void OpenArray(const char* property_name = NULL); | 70 void OpenArray(const char* property_name = NULL); |
| 66 void CloseArray(); | 71 void CloseArray(); |
| 67 | 72 |
| 68 void PrintValueBool(bool b); | 73 void PrintValueBool(bool b); |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 | 182 |
| 178 friend class JSONObject; | 183 friend class JSONObject; |
| 179 | 184 |
| 180 DISALLOW_ALLOCATION(); | 185 DISALLOW_ALLOCATION(); |
| 181 DISALLOW_COPY_AND_ASSIGN(JSONArray); | 186 DISALLOW_COPY_AND_ASSIGN(JSONArray); |
| 182 }; | 187 }; |
| 183 | 188 |
| 184 } // namespace dart | 189 } // namespace dart |
| 185 | 190 |
| 186 #endif // VM_JSON_STREAM_H_ | 191 #endif // VM_JSON_STREAM_H_ |
| OLD | NEW |