| OLD | NEW |
| 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, 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 fasta.analyzer_diet_listener; | 5 library fasta.analyzer_diet_listener; |
| 6 | 6 |
| 7 import 'package:analyzer/dart/ast/ast.dart' as ast show AstNode; | 7 import 'package:analyzer/dart/ast/ast.dart' as ast show AstNode; |
| 8 | 8 |
| 9 import 'package:analyzer/dart/element/type.dart' as ast show DartType; | 9 import 'package:analyzer/dart/element/type.dart' as ast show DartType; |
| 10 | 10 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 import 'package:front_end/src/fasta/type_inference/type_inference_listener.dart' | 24 import 'package:front_end/src/fasta/type_inference/type_inference_listener.dart' |
| 25 show TypeInferenceListener; | 25 show TypeInferenceListener; |
| 26 | 26 |
| 27 import 'package:kernel/ast.dart' show AsyncMarker; | 27 import 'package:kernel/ast.dart' show AsyncMarker; |
| 28 | 28 |
| 29 import 'package:front_end/src/fasta/source/stack_listener.dart' | 29 import 'package:front_end/src/fasta/source/stack_listener.dart' |
| 30 show StackListener; | 30 show StackListener; |
| 31 | 31 |
| 32 import 'package:front_end/src/fasta/builder/builder.dart'; | 32 import 'package:front_end/src/fasta/builder/builder.dart'; |
| 33 | 33 |
| 34 import 'package:front_end/src/fasta/parser/parser.dart' show MemberKind, Parser; | 34 import 'package:front_end/src/fasta/parser.dart' show MemberKind, Parser; |
| 35 | 35 |
| 36 import 'package:front_end/src/scanner/token.dart' show Token; | 36 import 'package:front_end/src/scanner/token.dart' show Token; |
| 37 | 37 |
| 38 import 'package:front_end/src/fasta/source/source_library_builder.dart' | 38 import 'package:front_end/src/fasta/source/source_library_builder.dart' |
| 39 show SourceLibraryBuilder; | 39 show SourceLibraryBuilder; |
| 40 | 40 |
| 41 import 'package:front_end/src/fasta/source/diet_listener.dart' | 41 import 'package:front_end/src/fasta/source/diet_listener.dart' |
| 42 show DietListener; | 42 show DietListener; |
| 43 | 43 |
| 44 import 'package:kernel/class_hierarchy.dart' show ClassHierarchy; | 44 import 'package:kernel/class_hierarchy.dart' show ClassHierarchy; |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 } | 155 } |
| 156 | 156 |
| 157 /// Translates the given kernel types into analyzer types. | 157 /// Translates the given kernel types into analyzer types. |
| 158 static List<ast.DartType> _translateTypes(List<kernel.DartType> kernelTypes) { | 158 static List<ast.DartType> _translateTypes(List<kernel.DartType> kernelTypes) { |
| 159 // For now we just translate everything to `dynamic`. | 159 // For now we just translate everything to `dynamic`. |
| 160 // TODO(paulberry): implement propert translation of types. | 160 // TODO(paulberry): implement propert translation of types. |
| 161 return new List<ast.DartType>.filled( | 161 return new List<ast.DartType>.filled( |
| 162 kernelTypes.length, DynamicTypeImpl.instance); | 162 kernelTypes.length, DynamicTypeImpl.instance); |
| 163 } | 163 } |
| 164 } | 164 } |
| OLD | NEW |