| 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/token.dart'; | 8 import 'package:analyzer/dart/ast/token.dart'; |
| 9 import 'package:analyzer/dart/ast/visitor.dart'; | 9 import 'package:analyzer/dart/ast/visitor.dart'; |
| 10 import 'package:analyzer/dart/element/type.dart' show DartType; | 10 import 'package:analyzer/dart/element/type.dart' show DartType; |
| 11 import 'package:analyzer/src/generated/utilities_dart.dart'; | 11 import 'package:analyzer/src/generated/utilities_dart.dart'; |
| 12 import 'package:analyzer/src/summary/api_signature.dart'; | |
| 13 import 'package:analyzer/src/summary/format.dart'; | 12 import 'package:analyzer/src/summary/format.dart'; |
| 14 import 'package:analyzer/src/summary/idl.dart'; | 13 import 'package:analyzer/src/summary/idl.dart'; |
| 15 import 'package:analyzer/src/summary/public_namespace_computer.dart'; | 14 import 'package:analyzer/src/summary/public_namespace_computer.dart'; |
| 16 import 'package:analyzer/src/summary/summarize_const_expr.dart'; | 15 import 'package:analyzer/src/summary/summarize_const_expr.dart'; |
| 16 import 'package:front_end/src/base/api_signature.dart'; |
| 17 | 17 |
| 18 /** | 18 /** |
| 19 * Serialize all the declarations in [compilationUnit] to an unlinked summary. | 19 * Serialize all the declarations in [compilationUnit] to an unlinked summary. |
| 20 */ | 20 */ |
| 21 UnlinkedUnitBuilder serializeAstUnlinked(CompilationUnit compilationUnit) { | 21 UnlinkedUnitBuilder serializeAstUnlinked(CompilationUnit compilationUnit) { |
| 22 return new _SummarizeAstVisitor().serializeCompilationUnit(compilationUnit); | 22 return new _SummarizeAstVisitor().serializeCompilationUnit(compilationUnit); |
| 23 } | 23 } |
| 24 | 24 |
| 25 /** | 25 /** |
| 26 * Instances of this class keep track of intermediate state during | 26 * Instances of this class keep track of intermediate state during |
| (...skipping 1459 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1486 /** | 1486 /** |
| 1487 * A [_TypeParameterScope] is a [_Scope] which defines [_ScopedTypeParameter]s. | 1487 * A [_TypeParameterScope] is a [_Scope] which defines [_ScopedTypeParameter]s. |
| 1488 */ | 1488 */ |
| 1489 class _TypeParameterScope extends _Scope { | 1489 class _TypeParameterScope extends _Scope { |
| 1490 /** | 1490 /** |
| 1491 * Get the number of [_ScopedTypeParameter]s defined in this | 1491 * Get the number of [_ScopedTypeParameter]s defined in this |
| 1492 * [_TypeParameterScope]. | 1492 * [_TypeParameterScope]. |
| 1493 */ | 1493 */ |
| 1494 int get length => _definedNames.length; | 1494 int get length => _definedNames.length; |
| 1495 } | 1495 } |
| OLD | NEW |