| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |