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; | |
6 | |
7 import 'package:analyzer/analyzer.dart' as analyzer; | 5 import 'package:analyzer/analyzer.dart' as analyzer; |
8 import 'package:analyzer/src/generated/ast.dart'; | 6 import 'package:analyzer/src/generated/ast.dart'; |
9 import 'package:analyzer/src/generated/element.dart'; | 7 import 'package:analyzer/src/generated/element.dart'; |
10 import 'package:analyzer/src/generated/type_system.dart' | 8 import 'package:analyzer/src/generated/type_system.dart' |
11 show StrongTypeSystemImpl; | 9 show StrongTypeSystemImpl; |
12 import 'package:logging/logging.dart' as logger; | 10 import 'package:logging/logging.dart' as logger; |
13 | 11 |
14 import '../info.dart'; | 12 import '../info.dart'; |
15 | 13 |
16 import 'ast_builder.dart'; | 14 import 'ast_builder.dart'; |
(...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
455 var t = _mkNewTypeName(dType, id, args); | 453 var t = _mkNewTypeName(dType, id, args); |
456 return t; | 454 return t; |
457 } | 455 } |
458 | 456 |
459 TypeName _mkNewTypeName(DartType type, Identifier id, List<TypeName> args) { | 457 TypeName _mkNewTypeName(DartType type, Identifier id, List<TypeName> args) { |
460 var t = AstBuilder.typeName(id, args); | 458 var t = AstBuilder.typeName(id, args); |
461 t.type = type; | 459 t.type = type; |
462 return t; | 460 return t; |
463 } | 461 } |
464 } | 462 } |
OLD | NEW |