OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 #include "vm/object.h" | 5 #include "vm/object.h" |
6 | 6 |
7 #include "include/dart_api.h" | 7 #include "include/dart_api.h" |
8 #include "platform/assert.h" | 8 #include "platform/assert.h" |
9 #include "vm/assembler.h" | 9 #include "vm/assembler.h" |
10 #include "vm/cpu.h" | 10 #include "vm/cpu.h" |
(...skipping 9885 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9896 ASSERT(id >= 0); | 9896 ASSERT(id >= 0); |
9897 JSONObject jsobj(stream); | 9897 JSONObject jsobj(stream); |
9898 AddTypeProperties(&jsobj, "Library", JSONType(), ref); | 9898 AddTypeProperties(&jsobj, "Library", JSONType(), ref); |
9899 jsobj.AddFixedServiceId("libraries/%" Pd "", id); | 9899 jsobj.AddFixedServiceId("libraries/%" Pd "", id); |
9900 jsobj.AddProperty("name", library_name); | 9900 jsobj.AddProperty("name", library_name); |
9901 const String& library_url = String::Handle(url()); | 9901 const String& library_url = String::Handle(url()); |
9902 jsobj.AddPropertyStr("uri", library_url); | 9902 jsobj.AddPropertyStr("uri", library_url); |
9903 if (ref) { | 9903 if (ref) { |
9904 return; | 9904 return; |
9905 } | 9905 } |
| 9906 jsobj.AddProperty("debuggable", IsDebuggable()); |
9906 { | 9907 { |
9907 JSONArray jsarr(&jsobj, "classes"); | 9908 JSONArray jsarr(&jsobj, "classes"); |
9908 ClassDictionaryIterator class_iter(*this); | 9909 ClassDictionaryIterator class_iter(*this); |
9909 Class& klass = Class::Handle(); | 9910 Class& klass = Class::Handle(); |
9910 while (class_iter.HasNext()) { | 9911 while (class_iter.HasNext()) { |
9911 klass = class_iter.GetNextClass(); | 9912 klass = class_iter.GetNextClass(); |
9912 if (!klass.IsCanonicalSignatureClass() && | 9913 if (!klass.IsCanonicalSignatureClass() && |
9913 !klass.IsMixinApplication()) { | 9914 !klass.IsMixinApplication()) { |
9914 jsarr.AddValue(klass); | 9915 jsarr.AddValue(klass); |
9915 } | 9916 } |
(...skipping 10823 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
20739 return tag_label.ToCString(); | 20740 return tag_label.ToCString(); |
20740 } | 20741 } |
20741 | 20742 |
20742 | 20743 |
20743 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { | 20744 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { |
20744 Instance::PrintJSONImpl(stream, ref); | 20745 Instance::PrintJSONImpl(stream, ref); |
20745 } | 20746 } |
20746 | 20747 |
20747 | 20748 |
20748 } // namespace dart | 20749 } // namespace dart |
OLD | NEW |