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

Side by Side Diff: lib/src/checker/checker.dart

Issue 954773003: rename package:ddc to package:dev_compiler (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 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 | « lib/runtime/dart_runtime.dart ('k') | lib/src/checker/resolver.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) 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 ddc.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:ddc/src/info.dart'; 13 import 'package:dev_compiler/src/info.dart';
14 import 'package:ddc/src/options.dart'; 14 import 'package:dev_compiler/src/options.dart';
15 import 'package:ddc/src/report.dart' show CheckerReporter; 15 import 'package:dev_compiler/src/report.dart' show CheckerReporter;
16 import 'package:ddc/src/utils.dart' show getMemberType; 16 import 'package:dev_compiler/src/utils.dart' show getMemberType;
17 import 'rules.dart'; 17 import 'rules.dart';
18 18
19 /// Checks for overriding declarations of fields and methods. This is used to 19 /// Checks for overriding declarations of fields and methods. This is used to
20 /// check overrides between classes and superclasses, interfaces, and mixin 20 /// check overrides between classes and superclasses, interfaces, and mixin
21 /// applications. 21 /// applications.
22 class _OverrideChecker { 22 class _OverrideChecker {
23 bool _failure = false; 23 bool _failure = false;
24 final TypeRules _rules; 24 final TypeRules _rules;
25 final CheckerReporter _reporter; 25 final CheckerReporter _reporter;
26 final bool _inferFromOverrides; 26 final bool _inferFromOverrides;
(...skipping 643 matching lines...) Expand 10 before | Expand all | Expand 10 after
670 void _recordDynamicInvoke(AstNode node) { 670 void _recordDynamicInvoke(AstNode node) {
671 _reporter.log(new DynamicInvoke(_rules, node)); 671 _reporter.log(new DynamicInvoke(_rules, node));
672 } 672 }
673 673
674 void _recordMessage(StaticInfo info) { 674 void _recordMessage(StaticInfo info) {
675 if (info == null) return; 675 if (info == null) return;
676 if (info.level >= logger.Level.SEVERE) _failure = true; 676 if (info.level >= logger.Level.SEVERE) _failure = true;
677 _reporter.log(info); 677 _reporter.log(info);
678 } 678 }
679 } 679 }
OLDNEW
« no previous file with comments | « lib/runtime/dart_runtime.dart ('k') | lib/src/checker/resolver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698