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

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

Issue 2875373002: Move flat_buffer and api_signature into front_end. (Closed)
Patch Set: Update summary format generator. Created 3 years, 7 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
OLDNEW
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 library serialization.elements; 5 library serialization.elements;
6 6
7 import 'dart:convert'; 7 import 'dart:convert';
8 8
9 import 'package:analyzer/src/generated/source.dart'; 9 import 'package:analyzer/src/generated/source.dart';
10 import 'package:analyzer/src/summary/api_signature.dart';
11 import 'package:analyzer/src/summary/format.dart'; 10 import 'package:analyzer/src/summary/format.dart';
12 import 'package:analyzer/src/summary/idl.dart'; 11 import 'package:analyzer/src/summary/idl.dart';
13 import 'package:analyzer/src/summary/package_bundle_reader.dart'; 12 import 'package:analyzer/src/summary/package_bundle_reader.dart';
14 import 'package:convert/convert.dart'; 13 import 'package:convert/convert.dart';
15 import 'package:crypto/crypto.dart'; 14 import 'package:crypto/crypto.dart';
15 import 'package:front_end/src/base/api_signature.dart';
16 16
17 /** 17 /**
18 * Object that gathers information uses it to assemble a new 18 * Object that gathers information uses it to assemble a new
19 * [PackageBundleBuilder]. 19 * [PackageBundleBuilder].
20 */ 20 */
21 class PackageBundleAssembler { 21 class PackageBundleAssembler {
22 /** 22 /**
23 * Value that will be stored in [PackageBundle.majorVersion] for any summaries 23 * Value that will be stored in [PackageBundle.majorVersion] for any summaries
24 * created by this code. When making a breaking change to the summary format, 24 * created by this code. When making a breaking change to the summary format,
25 * this value should be incremented by 1 and [currentMinorVersion] should be 25 * this value should be incremented by 1 and [currentMinorVersion] should be
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 return apiSignature.toHex(); 109 return apiSignature.toHex();
110 } 110 }
111 111
112 /** 112 /**
113 * Compute a hash of the given file contents. 113 * Compute a hash of the given file contents.
114 */ 114 */
115 String _hash(String contents) { 115 String _hash(String contents) {
116 return hex.encode(md5.convert(UTF8.encode(contents)).bytes); 116 return hex.encode(md5.convert(UTF8.encode(contents)).bytes);
117 } 117 }
118 } 118 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/summary/summarize_ast.dart ('k') | pkg/analyzer/test/src/summary/api_signature_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698