| 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 dev_compiler.src.codegen.reify_coercions; | 5 library dev_compiler.src.codegen.reify_coercions; |
| 6 | 6 |
| 7 import 'package:analyzer/analyzer.dart' as analyzer; | 7 import 'package:analyzer/analyzer.dart' as analyzer; |
| 8 import 'package:analyzer/src/generated/ast.dart'; | 8 import 'package:analyzer/src/generated/ast.dart'; |
| 9 import 'package:analyzer/src/generated/element.dart'; | 9 import 'package:analyzer/src/generated/element.dart'; |
| 10 import 'package:analyzer/src/task/strong/rules.dart'; |
| 10 import 'package:logging/logging.dart' as logger; | 11 import 'package:logging/logging.dart' as logger; |
| 11 | 12 |
| 12 import '../checker/rules.dart'; | |
| 13 import '../info.dart'; | 13 import '../info.dart'; |
| 14 | 14 |
| 15 import 'ast_builder.dart'; | 15 import 'ast_builder.dart'; |
| 16 | 16 |
| 17 final _log = new logger.Logger('dev_compiler.reify_coercions'); | 17 final _log = new logger.Logger('dev_compiler.reify_coercions'); |
| 18 | 18 |
| 19 // TODO(leafp) Factor this out or use an existing library | 19 // TODO(leafp) Factor this out or use an existing library |
| 20 class Tuple2<T0, T1> { | 20 class Tuple2<T0, T1> { |
| 21 final T0 e0; | 21 final T0 e0; |
| 22 final T1 e1; | 22 final T1 e1; |
| (...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 493 var t = _mkNewTypeName(dType, id, args); | 493 var t = _mkNewTypeName(dType, id, args); |
| 494 return t; | 494 return t; |
| 495 } | 495 } |
| 496 | 496 |
| 497 TypeName _mkNewTypeName(DartType type, Identifier id, List<TypeName> args) { | 497 TypeName _mkNewTypeName(DartType type, Identifier id, List<TypeName> args) { |
| 498 var t = AstBuilder.typeName(id, args); | 498 var t = AstBuilder.typeName(id, args); |
| 499 t.type = type; | 499 t.type = type; |
| 500 return t; | 500 return t; |
| 501 } | 501 } |
| 502 } | 502 } |
| OLD | NEW |