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

Side by Side Diff: pkg/compiler/lib/src/typechecker.dart

Issue 1880323002: dart2js cleanup: remove unused imports and variables (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: merge master Created 4 years, 8 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
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 dart2js.typechecker; 5 library dart2js.typechecker;
6 6
7 import 'common.dart';
8 import 'common/names.dart' show Identifiers; 7 import 'common/names.dart' show Identifiers;
9 import 'common/resolution.dart' show Resolution; 8 import 'common/resolution.dart' show Resolution;
10 import 'common/tasks.dart' show CompilerTask; 9 import 'common/tasks.dart' show CompilerTask;
10 import 'common.dart';
11 import 'compiler.dart' show Compiler; 11 import 'compiler.dart' show Compiler;
12 import 'constants/expressions.dart'; 12 import 'constants/expressions.dart';
13 import 'constants/values.dart'; 13 import 'constants/values.dart';
14 import 'core_types.dart'; 14 import 'core_types.dart';
15 import 'dart_types.dart'; 15 import 'dart_types.dart';
16 import 'elements/elements.dart' 16 import 'elements/elements.dart'
17 show 17 show
18 AbstractFieldElement, 18 AbstractFieldElement,
19 AstElement, 19 AstElement,
20 AsyncMarker, 20 AsyncMarker,
21 ClassElement, 21 ClassElement,
22 ConstructorElement, 22 ConstructorElement,
23 Element, 23 Element,
24 Elements, 24 Elements,
25 EnumClassElement, 25 EnumClassElement,
26 EnumConstantElement, 26 EnumConstantElement,
27 ExecutableElement, 27 ExecutableElement,
28 FieldElement, 28 FieldElement,
29 FunctionElement, 29 FunctionElement,
30 GetterElement, 30 GetterElement,
31 InitializingFormalElement, 31 InitializingFormalElement,
32 LibraryElement, 32 LibraryElement,
33 Member,
34 MemberSignature, 33 MemberSignature,
35 Name, 34 Name,
36 ParameterElement, 35 ParameterElement,
37 PrivateName, 36 PrivateName,
38 PublicName, 37 PublicName,
39 ResolvedAst, 38 ResolvedAst,
40 SetterElement, 39 SetterElement,
41 TypeDeclarationElement, 40 TypeDeclarationElement,
42 TypedElement, 41 TypedElement,
43 TypedefElement,
44 VariableElement; 42 VariableElement;
43 import 'resolution/class_members.dart' show MembersCreator;
45 import 'resolution/tree_elements.dart' show TreeElements; 44 import 'resolution/tree_elements.dart' show TreeElements;
46 import 'resolution/class_members.dart' show MembersCreator;
47 import 'tree/tree.dart'; 45 import 'tree/tree.dart';
48 import 'util/util.dart' show Link, LinkBuilder; 46 import 'util/util.dart' show Link, LinkBuilder;
49 47
50 class TypeCheckerTask extends CompilerTask { 48 class TypeCheckerTask extends CompilerTask {
51 TypeCheckerTask(Compiler compiler) : super(compiler); 49 TypeCheckerTask(Compiler compiler) : super(compiler);
52 String get name => "Type checker"; 50 String get name => "Type checker";
53 51
54 void check(AstElement element) { 52 void check(AstElement element) {
55 if (element.isClass) return; 53 if (element.isClass) return;
56 if (element.isTypedef) return; 54 if (element.isTypedef) return;
(...skipping 1955 matching lines...) Expand 10 before | Expand all | Expand 10 after
2012 2010
2013 visitTypedef(Typedef node) { 2011 visitTypedef(Typedef node) {
2014 // Do not typecheck [Typedef] nodes. 2012 // Do not typecheck [Typedef] nodes.
2015 } 2013 }
2016 2014
2017 visitNode(Node node) { 2015 visitNode(Node node) {
2018 reporter.internalError(node, 2016 reporter.internalError(node,
2019 'Unexpected node ${node.getObjectDescription()} in the type checker.'); 2017 'Unexpected node ${node.getObjectDescription()} in the type checker.');
2020 } 2018 }
2021 } 2019 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/tree_ir/tree_ir_tracer.dart ('k') | pkg/compiler/lib/src/universe/call_structure.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698