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

Unified Diff: pkg/analyzer/lib/src/summary/builder.dart

Issue 1452363002: Modify summary Builder classes to avoid the use of Object. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/summary/format.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/summary/builder.dart
diff --git a/pkg/analyzer/lib/src/summary/builder.dart b/pkg/analyzer/lib/src/summary/builder.dart
index 5f8965ce11773c0e3a4a66b4a18a07f444e9f508..f63bdd595fcacf379128ec6ee1468321aeec67ac 100644
--- a/pkg/analyzer/lib/src/summary/builder.dart
+++ b/pkg/analyzer/lib/src/summary/builder.dart
@@ -17,11 +17,8 @@ import 'dart:convert';
* Builder classes.
*/
class BuilderContext {
- /**
- * Finalize the serialized object represented by [ref] and return it in
- * serialized form as a buffer.
- */
- List<int> getBuffer(Object ref) {
- return UTF8.encode(JSON.encode(ref));
- }
+ // Note: at the moment this is a placeholder class since the current
+ // serialization format (JSON) doesn't require any state tracking. If/when
+ // we switch to a serialization format that requires state tracking, the
+ // state will be stored here.
}
« 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