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:logging/logging.dart' as logger; | 10 import 'package:logging/logging.dart' as logger; |
11 | 11 |
12 import 'package:dev_compiler/devc.dart' show AbstractCompiler; | 12 import 'package:dev_compiler/src/compiler.dart' show AbstractCompiler; |
13 import 'package:dev_compiler/src/checker/rules.dart'; | 13 import 'package:dev_compiler/src/checker/rules.dart'; |
14 import 'package:dev_compiler/src/info.dart'; | 14 import 'package:dev_compiler/src/info.dart'; |
15 | 15 |
16 import 'ast_builder.dart'; | 16 import 'ast_builder.dart'; |
17 | 17 |
18 final _log = new logger.Logger('dev_compiler.reify_coercions'); | 18 final _log = new logger.Logger('dev_compiler.reify_coercions'); |
19 | 19 |
20 // TODO(leafp) Factor this out or use an existing library | 20 // TODO(leafp) Factor this out or use an existing library |
21 class Tuple2<T0, T1> { | 21 class Tuple2<T0, T1> { |
22 final T0 e0; | 22 final T0 e0; |
(...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
498 var t = _mkNewTypeName(dType, id, args); | 498 var t = _mkNewTypeName(dType, id, args); |
499 return t; | 499 return t; |
500 } | 500 } |
501 | 501 |
502 TypeName _mkNewTypeName(DartType type, Identifier id, List<TypeName> args) { | 502 TypeName _mkNewTypeName(DartType type, Identifier id, List<TypeName> args) { |
503 var t = AstBuilder.typeName(id, args); | 503 var t = AstBuilder.typeName(id, args); |
504 t.type = type; | 504 t.type = type; |
505 return t; | 505 return t; |
506 } | 506 } |
507 } | 507 } |
OLD | NEW |