| 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 /// Command line tool to run the checker on a Dart program. | 5 /// Command line tool to run the checker on a Dart program. |
| 6 library dev_compiler.src.compiler; | 6 library dev_compiler.src.compiler; |
| 7 | 7 |
| 8 import 'dart:async'; | 8 import 'dart:async'; |
| 9 import 'dart:collection'; | 9 import 'dart:collection'; |
| 10 import 'dart:math' as math; | 10 import 'dart:math' as math; |
| 11 import 'dart:io'; | 11 import 'dart:io'; |
| 12 | 12 |
| 13 import 'package:analyzer/src/generated/ast.dart' show CompilationUnit; | 13 import 'package:analyzer/src/generated/ast.dart' show CompilationUnit; |
| 14 import 'package:analyzer/src/generated/element.dart'; | 14 import 'package:analyzer/src/generated/element.dart'; |
| 15 import 'package:analyzer/src/generated/engine.dart' | 15 import 'package:analyzer/src/generated/engine.dart' |
| 16 show AnalysisEngine, AnalysisContext, ChangeSet, ParseDartTask; | 16 show AnalysisEngine, AnalysisContext, ChangeSet, ParseDartTask; |
| 17 import 'package:analyzer/src/generated/error.dart' | 17 import 'package:analyzer/src/generated/error.dart' |
| 18 show AnalysisError, ErrorSeverity, ErrorType; | 18 show AnalysisError, ErrorSeverity, ErrorType; |
| 19 import 'package:analyzer/src/generated/error.dart'; | 19 import 'package:analyzer/src/generated/error.dart'; |
| 20 import 'package:analyzer/src/generated/resolver.dart' show TypeProvider; | |
| 21 import 'package:analyzer/src/generated/source.dart' show Source; | 20 import 'package:analyzer/src/generated/source.dart' show Source; |
| 22 import 'package:analyzer/src/task/html.dart'; | 21 import 'package:analyzer/src/task/html.dart'; |
| 23 import 'package:html/dom.dart' as html; | 22 import 'package:html/dom.dart' as html; |
| 24 import 'package:html/parser.dart' as html; | 23 import 'package:html/parser.dart' as html; |
| 25 import 'package:logging/logging.dart' show Level, Logger, LogRecord; | 24 import 'package:logging/logging.dart' show Level, Logger, LogRecord; |
| 26 import 'package:path/path.dart' as path; | 25 import 'package:path/path.dart' as path; |
| 27 | 26 |
| 28 import '../strong_mode.dart' show StrongModeOptions; | |
| 29 | |
| 30 import 'analysis_context.dart'; | 27 import 'analysis_context.dart'; |
| 31 import 'checker/checker.dart'; | 28 import 'checker/checker.dart'; |
| 32 import 'checker/rules.dart'; | 29 import 'checker/rules.dart'; |
| 33 import 'codegen/html_codegen.dart' as html_codegen; | 30 import 'codegen/html_codegen.dart' as html_codegen; |
| 34 import 'codegen/js_codegen.dart'; | 31 import 'codegen/js_codegen.dart'; |
| 35 import 'info.dart' | 32 import 'info.dart' |
| 36 show AnalyzerMessage, CheckerResults, LibraryInfo, LibraryUnit; | 33 show AnalyzerMessage, CheckerResults, LibraryInfo, LibraryUnit; |
| 37 import 'options.dart'; | 34 import 'options.dart'; |
| 38 import 'report.dart'; | 35 import 'report.dart'; |
| 39 | 36 |
| (...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 516 '_rtti.js', | 513 '_rtti.js', |
| 517 '_classes.js', | 514 '_classes.js', |
| 518 '_operations.js', | 515 '_operations.js', |
| 519 'dart_runtime.js', | 516 'dart_runtime.js', |
| 520 ]; | 517 ]; |
| 521 files.addAll(corelibOrder.map((l) => l.replaceAll('.', '/') + '.js')); | 518 files.addAll(corelibOrder.map((l) => l.replaceAll('.', '/') + '.js')); |
| 522 return files; | 519 return files; |
| 523 }(); | 520 }(); |
| 524 | 521 |
| 525 final _log = new Logger('dev_compiler.src.compiler'); | 522 final _log = new Logger('dev_compiler.src.compiler'); |
| OLD | NEW |