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

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

Issue 1399103002: remove unused imports (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 2 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 | « no previous file | lib/src/compiler.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 dev_compiler.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 11
12 import '../../strong_mode.dart' show StrongModeOptions;
13 import '../info.dart'; 12 import '../info.dart';
14 import '../utils.dart' show getMemberType; 13 import '../utils.dart' show getMemberType;
15 import 'rules.dart'; 14 import 'rules.dart';
16 15
17 /// Checks for overriding declarations of fields and methods. This is used to 16 /// Checks for overriding declarations of fields and methods. This is used to
18 /// check overrides between classes and superclasses, interfaces, and mixin 17 /// check overrides between classes and superclasses, interfaces, and mixin
19 /// applications. 18 /// applications.
20 class _OverrideChecker { 19 class _OverrideChecker {
21 bool _failure = false; 20 bool _failure = false;
22 final TypeRules _rules; 21 final TypeRules _rules;
(...skipping 936 matching lines...) Expand 10 before | Expand all | Expand 10 after
959 if (info is CoercionInfo) { 958 if (info is CoercionInfo) {
960 // TODO(jmesserly): if we're run again on the same AST, we'll produce the 959 // TODO(jmesserly): if we're run again on the same AST, we'll produce the
961 // same annotations. This should be harmless. This might go away once 960 // same annotations. This should be harmless. This might go away once
962 // CodeChecker is integrated better with analyzer, as it will know that 961 // CodeChecker is integrated better with analyzer, as it will know that
963 // checking has already been performed. 962 // checking has already been performed.
964 // assert(CoercionInfo.get(info.node) == null); 963 // assert(CoercionInfo.get(info.node) == null);
965 CoercionInfo.set(info.node, info); 964 CoercionInfo.set(info.node, info);
966 } 965 }
967 } 966 }
968 } 967 }
OLDNEW
« no previous file with comments | « no previous file | lib/src/compiler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698