Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(225)

Side by Side Diff: pkg/analyzer/lib/src/fasta/analyzer_diet_listener.dart

Issue 2978063002: Move parser helper classes to own files and clean them up. (Closed)
Patch Set: Don't use problems.dart in parser. Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/fasta/ast_builder.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/fasta/ast_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698