| 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/dart/ast/token.dart'; |
| 7 import 'package:analyzer/src/generated/ast.dart'; | 8 import 'package:analyzer/src/generated/ast.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 import 'package:analyzer/src/summary/idl.dart'; |
| 11 | 11 |
| 12 /** | 12 /** |
| 13 * Serialize the given constructor initializer [node]. | 13 * Serialize the given constructor initializer [node]. |
| 14 */ | 14 */ |
| 15 UnlinkedConstructorInitializer serializeConstructorInitializer( | 15 UnlinkedConstructorInitializer serializeConstructorInitializer( |
| 16 ConstructorInitializer node, | 16 ConstructorInitializer node, |
| 17 UnlinkedConstBuilder serializeConstExpr(Expression expr)) { | 17 UnlinkedConstBuilder serializeConstExpr(Expression expr)) { |
| 18 if (node is ConstructorFieldInitializer) { | 18 if (node is ConstructorFieldInitializer) { |
| (...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 363 strings.add(element.value); | 363 strings.add(element.value); |
| 364 } else { | 364 } else { |
| 365 _serialize((element as InterpolationExpression).expression); | 365 _serialize((element as InterpolationExpression).expression); |
| 366 } | 366 } |
| 367 } | 367 } |
| 368 operations.add(UnlinkedConstOperation.concatenate); | 368 operations.add(UnlinkedConstOperation.concatenate); |
| 369 ints.add(interpolation.elements.length); | 369 ints.add(interpolation.elements.length); |
| 370 } | 370 } |
| 371 } | 371 } |
| 372 } | 372 } |
| OLD | NEW |