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 library ddc.src.checker.checker; | 5 library dev_compiler.src.checker.checker; |
6 | 6 |
7 import 'package:analyzer/analyzer.dart'; | 7 import 'package:analyzer/analyzer.dart'; |
8 import 'package:analyzer/src/generated/ast.dart'; | 8 import 'package:analyzer/src/generated/ast.dart'; |
9 import 'package:analyzer/src/generated/element.dart'; | 9 import 'package:analyzer/src/generated/element.dart'; |
10 import 'package:analyzer/src/generated/scanner.dart' show Token, TokenType; | 10 import 'package:analyzer/src/generated/scanner.dart' show Token, TokenType; |
11 import 'package:logging/logging.dart' as logger; | 11 import 'package:logging/logging.dart' as logger; |
12 | 12 |
13 import 'package:dev_compiler/src/info.dart'; | 13 import 'package:dev_compiler/src/info.dart'; |
14 import 'package:dev_compiler/src/options.dart'; | 14 import 'package:dev_compiler/src/options.dart'; |
15 import 'package:dev_compiler/src/report.dart' show CheckerReporter; | 15 import 'package:dev_compiler/src/report.dart' show CheckerReporter; |
(...skipping 757 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
773 void _recordDynamicInvoke(AstNode node) { | 773 void _recordDynamicInvoke(AstNode node) { |
774 _reporter.log(new DynamicInvoke(_rules, node)); | 774 _reporter.log(new DynamicInvoke(_rules, node)); |
775 } | 775 } |
776 | 776 |
777 void _recordMessage(StaticInfo info) { | 777 void _recordMessage(StaticInfo info) { |
778 if (info == null) return; | 778 if (info == null) return; |
779 if (info.level >= logger.Level.SEVERE) _failure = true; | 779 if (info.level >= logger.Level.SEVERE) _failure = true; |
780 _reporter.log(info); | 780 _reporter.log(info); |
781 } | 781 } |
782 } | 782 } |
OLD | NEW |