| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 /** | 5 /** |
| 6 * Base functionality which code generated summary classes are built upon. | 6 * Base functionality which code generated summary classes are built upon. |
| 7 */ | 7 */ |
| 8 library analyzer.src.summary.base; | 8 library analyzer.src.summary.base; |
| 9 | 9 |
| 10 /** | 10 /** |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 * Instances of this class represent data that has been read from a summary. | 26 * Instances of this class represent data that has been read from a summary. |
| 27 */ | 27 */ |
| 28 abstract class SummaryClass { | 28 abstract class SummaryClass { |
| 29 /** | 29 /** |
| 30 * Translate the data in this class into a map whose keys are the names of | 30 * Translate the data in this class into a map whose keys are the names of |
| 31 * fields and whose values are the data stored in those fields. | 31 * fields and whose values are the data stored in those fields. |
| 32 * | 32 * |
| 33 * Intended for testing and debugging only. | 33 * Intended for testing and debugging only. |
| 34 */ | 34 */ |
| 35 Map<String, Object> toMap(); | 35 Map<String, Object> toMap(); |
| 36 |
| 37 /** |
| 38 * Translate the data in this class into a JSON map, whose keys are the names |
| 39 * of fields and whose values are the data stored in those fields, |
| 40 * recursively converted into JSON. |
| 41 * |
| 42 * Fields containing their default value are elided. |
| 43 * |
| 44 * Intended for testing and debugging only. |
| 45 */ |
| 46 Map<String, Object> toJson(); |
| 36 } | 47 } |
| OLD | NEW |