Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(115)

Side by Side Diff: pkg/analyzer/lib/src/summary/base.dart

Issue 1577663002: Remove BuilderContext from summary builders. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/summary/format.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 /**
11 * Instances of this class encapsulate the necessary state to keep track of a
12 * serialized summary that is in the process of being built.
13 *
14 * This class is intended to be passed to the constructors of the summary
15 * Builder classes.
16 */
17 class BuilderContext {
18 // Note: at the moment this is a placeholder class since the current
19 // serialization format (JSON) doesn't require any state tracking. If/when
20 // we switch to a serialization format that requires state tracking, the
21 // state will be stored here.
22 }
23
24 /**
25 * Instances of this class represent data that has been read from a summary. 11 * Instances of this class represent data that has been read from a summary.
26 */ 12 */
27 abstract class SummaryClass { 13 abstract class SummaryClass {
28 /** 14 /**
29 * Translate the data in this class into a map whose keys are the names of 15 * Translate the data in this class into a map whose keys are the names of
30 * fields and whose values are the data stored in those fields. 16 * fields and whose values are the data stored in those fields.
31 * 17 *
32 * Intended for testing and debugging only. 18 * Intended for testing and debugging only.
33 */ 19 */
34 Map<String, Object> toMap(); 20 Map<String, Object> toMap();
35 } 21 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/summary/format.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698