OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 analyzer.src.dart.scanner.scanner; | 5 library analyzer.src.dart.scanner.scanner; |
6 | 6 |
7 import 'package:analyzer/error/error.dart'; | 7 import 'package:analyzer/error/error.dart'; |
8 import 'package:analyzer/error/listener.dart'; | 8 import 'package:analyzer/error/listener.dart'; |
9 import 'package:analyzer/src/dart/error/syntactic_errors.dart'; | 9 import 'package:analyzer/src/dart/error/syntactic_errors.dart'; |
10 import 'package:analyzer/src/dart/scanner/reader.dart'; | 10 import 'package:analyzer/src/dart/scanner/reader.dart'; |
11 import 'package:analyzer/src/generated/source.dart'; | 11 import 'package:analyzer/src/generated/source.dart'; |
12 import 'package:front_end/src/fasta/scanner.dart' as fasta; | 12 import 'package:front_end/src/fasta/scanner.dart' as fasta; |
13 import 'package:front_end/src/fasta/scanner/abstract_scanner.dart' | |
14 show fastaSupportsGenericMethodComments; | |
15 import 'package:front_end/src/fasta/scanner/precedence.dart' as fasta; | 13 import 'package:front_end/src/fasta/scanner/precedence.dart' as fasta; |
16 import 'package:front_end/src/scanner/errors.dart' show translateErrorToken; | 14 import 'package:front_end/src/scanner/errors.dart' show translateErrorToken; |
17 import 'package:front_end/src/scanner/scanner.dart' as fe; | 15 import 'package:front_end/src/scanner/scanner.dart' as fe; |
18 import 'package:front_end/src/scanner/token.dart' show Token; | 16 import 'package:front_end/src/scanner/token.dart' show Token; |
19 | 17 |
20 export 'package:analyzer/src/dart/error/syntactic_errors.dart'; | 18 export 'package:analyzer/src/dart/error/syntactic_errors.dart'; |
21 export 'package:front_end/src/scanner/scanner.dart' show KeywordState; | 19 export 'package:front_end/src/scanner/scanner.dart' show KeywordState; |
22 | 20 |
23 /** | 21 /** |
24 * The class `Scanner` implements a scanner for Dart code. | 22 * The class `Scanner` implements a scanner for Dart code. |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 } | 162 } |
165 firstToken = token; | 163 firstToken = token; |
166 return firstToken; | 164 return firstToken; |
167 } | 165 } |
168 | 166 |
169 @override | 167 @override |
170 set preserveComments(bool preserveComments) { | 168 set preserveComments(bool preserveComments) { |
171 this._preserveComments = preserveComments; | 169 this._preserveComments = preserveComments; |
172 } | 170 } |
173 } | 171 } |
OLD | NEW |