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

Side by Side Diff: pkg/analyzer/lib/analyzer.dart

Issue 1693083004: Move scanner out of generated and clean up imports (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: clean up Created 4 years, 10 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 | « pkg/analyzer/example/scanner_driver.dart ('k') | pkg/analyzer/lib/dart/ast/ast.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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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; 5 library analyzer;
6 6
7 import 'dart:io'; 7 import 'dart:io';
8 8
9 import 'package:analyzer/dart/ast/ast.dart'; 9 import 'package:analyzer/dart/ast/ast.dart';
10 import 'package:analyzer/src/dart/scanner/reader.dart';
11 import 'package:analyzer/src/dart/scanner/scanner.dart';
10 import 'package:analyzer/src/error.dart'; 12 import 'package:analyzer/src/error.dart';
11 import 'package:analyzer/src/generated/error.dart'; 13 import 'package:analyzer/src/generated/error.dart';
12 import 'package:analyzer/src/generated/parser.dart'; 14 import 'package:analyzer/src/generated/parser.dart';
13 import 'package:analyzer/src/generated/scanner.dart';
14 import 'package:analyzer/src/generated/source_io.dart'; 15 import 'package:analyzer/src/generated/source_io.dart';
15 import 'package:analyzer/src/string_source.dart'; 16 import 'package:analyzer/src/string_source.dart';
16 import 'package:path/path.dart' as pathos; 17 import 'package:path/path.dart' as pathos;
17 18
18 export 'package:analyzer/dart/ast/ast.dart'; 19 export 'package:analyzer/dart/ast/ast.dart';
19 export 'package:analyzer/dart/ast/visitor.dart'; 20 export 'package:analyzer/dart/ast/visitor.dart';
20 export 'package:analyzer/src/dart/ast/utilities.dart'; 21 export 'package:analyzer/src/dart/ast/utilities.dart';
21 export 'package:analyzer/src/error.dart'; 22 export 'package:analyzer/src/error.dart';
22 export 'package:analyzer/src/generated/error.dart'; 23 export 'package:analyzer/src/generated/error.dart';
23 export 'package:analyzer/src/generated/utilities_dart.dart'; 24 export 'package:analyzer/src/generated/utilities_dart.dart';
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 122
122 /// The group of errors collected. 123 /// The group of errors collected.
123 AnalyzerErrorGroup get group => 124 AnalyzerErrorGroup get group =>
124 new AnalyzerErrorGroup.fromAnalysisErrors(_errors); 125 new AnalyzerErrorGroup.fromAnalysisErrors(_errors);
125 126
126 /// Whether any errors where collected. 127 /// Whether any errors where collected.
127 bool get hasErrors => !_errors.isEmpty; 128 bool get hasErrors => !_errors.isEmpty;
128 129
129 void onError(AnalysisError error) => _errors.add(error); 130 void onError(AnalysisError error) => _errors.add(error);
130 } 131 }
OLDNEW
« no previous file with comments | « pkg/analyzer/example/scanner_driver.dart ('k') | pkg/analyzer/lib/dart/ast/ast.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698