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

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

Issue 1667723002: Use summary IDL file for interface classes. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 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 'package:analyzer/dart/element/element.dart'; 7 import 'package:analyzer/dart/element/element.dart';
8 import 'package:analyzer/dart/element/type.dart'; 8 import 'package:analyzer/dart/element/type.dart';
9 import 'package:analyzer/src/dart/element/element.dart'; 9 import 'package:analyzer/src/dart/element/element.dart';
10 import 'package:analyzer/src/dart/element/type.dart'; 10 import 'package:analyzer/src/dart/element/type.dart';
11 import 'package:analyzer/src/generated/ast.dart'; 11 import 'package:analyzer/src/generated/ast.dart';
12 import 'package:analyzer/src/generated/resolver.dart'; 12 import 'package:analyzer/src/generated/resolver.dart';
13 import 'package:analyzer/src/generated/utilities_dart.dart'; 13 import 'package:analyzer/src/generated/utilities_dart.dart';
14 import 'package:analyzer/src/summary/format.dart'; 14 import 'package:analyzer/src/summary/format.dart';
15 import 'package:analyzer/src/summary/idl.dart';
15 import 'package:analyzer/src/summary/name_filter.dart'; 16 import 'package:analyzer/src/summary/name_filter.dart';
16 import 'package:analyzer/src/summary/summarize_const_expr.dart'; 17 import 'package:analyzer/src/summary/summarize_const_expr.dart';
17 18
18 /** 19 /**
19 * Serialize all the elements in [lib] to a summary using [ctx] as the context 20 * Serialize all the elements in [lib] to a summary using [ctx] as the context
20 * for building the summary, and using [typeProvider] to find built-in types. 21 * for building the summary, and using [typeProvider] to find built-in types.
21 */ 22 */
22 LibrarySerializationResult serializeLibrary( 23 LibrarySerializationResult serializeLibrary(
23 LibraryElement lib, TypeProvider typeProvider, bool strongMode) { 24 LibraryElement lib, TypeProvider typeProvider, bool strongMode) {
24 var serializer = new _LibrarySerializer(lib, typeProvider, strongMode); 25 var serializer = new _LibrarySerializer(lib, typeProvider, strongMode);
(...skipping 1128 matching lines...) Expand 10 before | Expand all | Expand 10 after
1153 exportNames.add(new LinkedExportNameBuilder( 1154 exportNames.add(new LinkedExportNameBuilder(
1154 name: name, 1155 name: name,
1155 dependency: serializeDependency(dependentLibrary), 1156 dependency: serializeDependency(dependentLibrary),
1156 unit: unit, 1157 unit: unit,
1157 kind: kind)); 1158 kind: kind));
1158 } 1159 }
1159 pb.exportNames = exportNames; 1160 pb.exportNames = exportNames;
1160 return pb; 1161 return pb;
1161 } 1162 }
1162 } 1163 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/summary/summarize_const_expr.dart ('k') | pkg/analyzer/lib/src/summary/summary_sdk.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698