| 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_const_expr; | 5 library serialization.summarize_const_expr; |
| 6 | 6 |
| 7 import 'package:analyzer/src/generated/ast.dart'; | 7 import 'package:analyzer/src/generated/ast.dart'; |
| 8 import 'package:analyzer/src/generated/scanner.dart'; | 8 import 'package:analyzer/src/generated/scanner.dart'; |
| 9 import 'package:analyzer/src/summary/format.dart'; | 9 import 'package:analyzer/src/summary/format.dart'; |
| 10 import 'package:analyzer/src/summary/idl.dart'; |
| 10 | 11 |
| 11 /** | 12 /** |
| 12 * Instances of this class keep track of intermediate state during | 13 * Instances of this class keep track of intermediate state during |
| 13 * serialization of a single constant [Expression]. | 14 * serialization of a single constant [Expression]. |
| 14 */ | 15 */ |
| 15 abstract class AbstractConstExprSerializer { | 16 abstract class AbstractConstExprSerializer { |
| 16 /** | 17 /** |
| 17 * See [UnlinkedConstBuilder.operations]. | 18 * See [UnlinkedConstBuilder.operations]. |
| 18 */ | 19 */ |
| 19 final List<UnlinkedConstOperation> operations = <UnlinkedConstOperation>[]; | 20 final List<UnlinkedConstOperation> operations = <UnlinkedConstOperation>[]; |
| (...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 306 * Error that describes a problem during a constant expression serialization. | 307 * Error that describes a problem during a constant expression serialization. |
| 307 */ | 308 */ |
| 308 class _ConstExprSerializationError { | 309 class _ConstExprSerializationError { |
| 309 final String message; | 310 final String message; |
| 310 | 311 |
| 311 _ConstExprSerializationError(this.message); | 312 _ConstExprSerializationError(this.message); |
| 312 | 313 |
| 313 @override | 314 @override |
| 314 String toString() => message; | 315 String toString() => message; |
| 315 } | 316 } |
| OLD | NEW |