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

Side by Side Diff: pkg/analyzer/lib/src/summary/summarize_ast.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) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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.summarize_ast; 5 library serialization.summarize_ast;
6 6
7 import 'package:analyzer/dart/ast/ast.dart'; 7 import 'package:analyzer/dart/ast/ast.dart';
8 import 'package:analyzer/dart/ast/visitor.dart'; 8 import 'package:analyzer/dart/ast/visitor.dart';
9 import 'package:analyzer/src/generated/scanner.dart'; 9 import 'package:analyzer/src/generated/scanner.dart';
10 import 'package:analyzer/src/generated/utilities_dart.dart'; 10 import 'package:analyzer/src/generated/utilities_dart.dart';
11 import 'package:analyzer/src/summary/format.dart'; 11 import 'package:analyzer/src/summary/format.dart';
12 import 'package:analyzer/src/summary/idl.dart';
12 import 'package:analyzer/src/summary/public_namespace_computer.dart'; 13 import 'package:analyzer/src/summary/public_namespace_computer.dart';
13 import 'package:analyzer/src/summary/summarize_const_expr.dart'; 14 import 'package:analyzer/src/summary/summarize_const_expr.dart';
14 15
15 /** 16 /**
16 * Serialize all the declarations in [compilationUnit] to an unlinked summary. 17 * Serialize all the declarations in [compilationUnit] to an unlinked summary.
17 */ 18 */
18 UnlinkedUnitBuilder serializeAstUnlinked(CompilationUnit compilationUnit) { 19 UnlinkedUnitBuilder serializeAstUnlinked(CompilationUnit compilationUnit) {
19 return new _SummarizeAstVisitor().serializeCompilationUnit(compilationUnit); 20 return new _SummarizeAstVisitor().serializeCompilationUnit(compilationUnit);
20 } 21 }
21 22
(...skipping 854 matching lines...) Expand 10 before | Expand all | Expand 10 after
876 /** 877 /**
877 * A [_TypeParameterScope] is a [_Scope] which defines [_ScopedTypeParameter]s. 878 * A [_TypeParameterScope] is a [_Scope] which defines [_ScopedTypeParameter]s.
878 */ 879 */
879 class _TypeParameterScope extends _Scope { 880 class _TypeParameterScope extends _Scope {
880 /** 881 /**
881 * Get the number of [_ScopedTypeParameter]s defined in this 882 * Get the number of [_ScopedTypeParameter]s defined in this
882 * [_TypeParameterScope]. 883 * [_TypeParameterScope].
883 */ 884 */
884 int get length => _definedNames.length; 885 int get length => _definedNames.length;
885 } 886 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/summary/resynthesize.dart ('k') | pkg/analyzer/lib/src/summary/summarize_const_expr.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698