| OLD | NEW |
| 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 dart2js.serialization.constants; | 5 library dart2js.serialization.constants; |
| 6 | 6 |
| 7 import '../constants/constructors.dart'; |
| 7 import '../constants/expressions.dart'; | 8 import '../constants/expressions.dart'; |
| 8 import '../dart_types.dart'; | 9 import '../dart_types.dart'; |
| 9 import '../elements/elements.dart' show FieldElement; | 10 import '../elements/elements.dart' show FieldElement; |
| 10 import '../resolution/operators.dart'; | 11 import '../resolution/operators.dart'; |
| 11 import '../universe/universe.dart'; | 12 import '../universe/universe.dart'; |
| 12 import 'serialization.dart'; | 13 import 'serialization.dart'; |
| 13 import 'keys.dart'; | 14 import 'keys.dart'; |
| 14 | 15 |
| 15 /// Visitor that serializes a [ConstantExpression] by encoding it into an | 16 /// Visitor that serializes a [ConstantExpression] by encoding it into an |
| 16 /// [ObjectEncoder]. | 17 /// [ObjectEncoder]. |
| (...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 421 case ConstantConstructorKind.REDIRECTING_GENERATIVE: | 422 case ConstantConstructorKind.REDIRECTING_GENERATIVE: |
| 422 return new RedirectingGenerativeConstantConstructor( | 423 return new RedirectingGenerativeConstantConstructor( |
| 423 readDefaults(), | 424 readDefaults(), |
| 424 readConstructorInvocation()); | 425 readConstructorInvocation()); |
| 425 case ConstantConstructorKind.REDIRECTING_FACTORY: | 426 case ConstantConstructorKind.REDIRECTING_FACTORY: |
| 426 return new RedirectingFactoryConstantConstructor( | 427 return new RedirectingFactoryConstantConstructor( |
| 427 readConstructorInvocation()); | 428 readConstructorInvocation()); |
| 428 } | 429 } |
| 429 } | 430 } |
| 430 } | 431 } |
| OLD | NEW |