Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 * This file is an "idl" style description of the summary format. It | 6 * This file is an "idl" style description of the summary format. It |
| 7 * contains abstract classes which declare the interface for reading data from | 7 * contains abstract classes which declare the interface for reading data from |
| 8 * summaries. It is parsed and transformed into code that implements the | 8 * summaries. It is parsed and transformed into code that implements the |
| 9 * summary format. | 9 * summary format. |
| 10 * | 10 * |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 46 import 'format.dart' as generated; | 46 import 'format.dart' as generated; |
| 47 | 47 |
| 48 /** | 48 /** |
| 49 * Annotation describing information which is not part of Dart semantics; in | 49 * Annotation describing information which is not part of Dart semantics; in |
| 50 * other words, if this information (or any information it refers to) changes, | 50 * other words, if this information (or any information it refers to) changes, |
| 51 * static analysis and runtime behavior of the library are unaffected. | 51 * static analysis and runtime behavior of the library are unaffected. |
| 52 */ | 52 */ |
| 53 const informative = null; | 53 const informative = null; |
| 54 | 54 |
| 55 /** | 55 /** |
| 56 * Information about URIs referenced by a library. | 56 * Information about a source that depends only on its content. |
| 57 */ | 57 */ |
| 58 @TopLevel('CaLU') | 58 @TopLevel('CaSS') |
| 59 abstract class CacheLibraryUris extends base.SummaryClass { | 59 abstract class CacheSourceContent extends base.SummaryClass { |
| 60 factory CacheLibraryUris.fromBuffer(List<int> buffer) => | 60 factory CacheSourceContent.fromBuffer(List<int> buffer) => |
| 61 generated.readCacheLibraryUris(buffer); | 61 generated.readCacheSourceContent(buffer); |
| 62 | 62 |
| 63 /** | 63 /** |
| 64 * The list of exported URIs, e.g. `dart:core`, or `foo/bar.dart`, | 64 * The list of exported URIs, e.g. `dart:core`, or `foo/bar.dart`, |
| 65 * or `package:foo/bar.dart`. | 65 * or `package:foo/bar.dart`. |
|
Paul Berry
2016/03/18 18:38:14
Document what happens to this field when [kind] is
scheglov
2016/03/18 19:42:06
Done.
| |
| 66 */ | 66 */ |
| 67 @Id(1) | 67 @Id(2) |
| 68 List<String> get exportedUris; | 68 List<String> get exportedUris; |
| 69 | 69 |
| 70 /** | 70 /** |
| 71 * The list of explicitly imported URIs, e.g. `dart:core`, or `foo/bar.dart`, | 71 * The list of explicitly imported URIs, e.g. `dart:core`, or `foo/bar.dart`, |
| 72 * or `package:foo/bar.dart`. | 72 * or `package:foo/bar.dart`. |
|
Paul Berry
2016/03/18 18:38:14
Same here
scheglov
2016/03/18 19:42:06
Done.
| |
| 73 */ | 73 */ |
| 74 @Id(1) | |
| 75 List<String> get importedUris; | |
| 76 | |
| 77 /** | |
| 78 * The kind of the source. | |
| 79 */ | |
| 74 @Id(0) | 80 @Id(0) |
| 75 List<String> get importedUris; | 81 CacheSourceKind get kind; |
| 76 | 82 |
| 77 /** | 83 /** |
| 78 * The list of part URIs, e.g. `foo/bar.dart`. | 84 * The list of part URIs, e.g. `foo/bar.dart`. |
| 79 */ | 85 */ |
| 80 @Id(2) | 86 @Id(3) |
| 81 List<String> get partUris; | 87 List<String> get partUris; |
| 82 } | 88 } |
| 83 | 89 |
| 84 /** | 90 /** |
| 91 * Kind of a source in the cache. | |
| 92 */ | |
| 93 enum CacheSourceKind { library, part } | |
| 94 | |
| 95 /** | |
| 85 * Information about an element code range. | 96 * Information about an element code range. |
| 86 */ | 97 */ |
| 87 abstract class CodeRange extends base.SummaryClass { | 98 abstract class CodeRange extends base.SummaryClass { |
| 88 /** | 99 /** |
| 89 * Length of the element code. | 100 * Length of the element code. |
| 90 */ | 101 */ |
| 91 @Id(1) | 102 @Id(1) |
| 92 int get length; | 103 int get length; |
| 93 | 104 |
| 94 /** | 105 /** |
| (...skipping 2329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2424 */ | 2435 */ |
| 2425 @Id(11) | 2436 @Id(11) |
| 2426 int get visibleLength; | 2437 int get visibleLength; |
| 2427 | 2438 |
| 2428 /** | 2439 /** |
| 2429 * If a local variable, the beginning of the visible range; zero otherwise. | 2440 * If a local variable, the beginning of the visible range; zero otherwise. |
| 2430 */ | 2441 */ |
| 2431 @Id(12) | 2442 @Id(12) |
| 2432 int get visibleOffset; | 2443 int get visibleOffset; |
| 2433 } | 2444 } |
| OLD | NEW |