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

Side by Side Diff: sdk/lib/_internal/compiler/implementation/use_unused_api.dart

Issue 141753002: Reapply "Implement new model for class members." and "Implement new model for interface members." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix dart2dart bug. Created 6 years, 11 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 | Annotate | Revision Log
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 /// This file use methods that aren't used by dart2js.dart, but that we wish to 5 /// This file use methods that aren't used by dart2js.dart, but that we wish to
6 /// keep anyway. This might be general API that isn't currently in use, 6 /// keep anyway. This might be general API that isn't currently in use,
7 /// debugging aids, or API only used for testing (see TODO below). 7 /// debugging aids, or API only used for testing (see TODO below).
8 8
9 library dart2js.use_unused_api; 9 library dart2js.use_unused_api;
10 10
11 import 'dart2js.dart' as dart2js; 11 import 'dart2js.dart' as dart2js;
12 12
13 import 'dart2jslib.dart' as dart2jslib; 13 import 'dart2jslib.dart' as dart2jslib;
14 14
15 import 'tree/tree.dart' as tree; 15 import 'tree/tree.dart' as tree;
16 16
17 import 'util/util.dart' as util; 17 import 'util/util.dart' as util;
18 18
19 import 'elements/elements.dart' as elements;
20
19 import 'elements/visitor.dart' as elements_visitor; 21 import 'elements/visitor.dart' as elements_visitor;
20 22
21 import 'js/js.dart' as js; 23 import 'js/js.dart' as js;
22 24
23 import 'types/concrete_types_inferrer.dart' as concrete_types_inferrer; 25 import 'types/concrete_types_inferrer.dart' as concrete_types_inferrer;
24 26
25 import 'colors.dart' as colors; 27 import 'colors.dart' as colors;
26 28
27 import 'filenames.dart' as filenames; 29 import 'filenames.dart' as filenames;
28 30
(...skipping 19 matching lines...) Expand all
48 useElementVisitor(new ElementVisitor()); 50 useElementVisitor(new ElementVisitor());
49 useJs(new js.Program(null)); 51 useJs(new js.Program(null));
50 useJs(new js.Blob(null)); 52 useJs(new js.Blob(null));
51 useJs(new js.NamedFunction(null, null)); 53 useJs(new js.NamedFunction(null, null));
52 useConcreteTypesInferrer(null); 54 useConcreteTypesInferrer(null);
53 useColor(); 55 useColor();
54 useFilenames(); 56 useFilenames();
55 useSsa(null); 57 useSsa(null);
56 useCodeBuffer(null); 58 useCodeBuffer(null);
57 usedByTests(); 59 usedByTests();
60 useElements(null, null);
58 } 61 }
59 62
60 void useConstant(dart2jslib.Constant constant, dart2jslib.ConstantSystem cs) { 63 void useConstant(dart2jslib.Constant constant, dart2jslib.ConstantSystem cs) {
61 constant.isObject(); 64 constant.isObject();
62 cs.isBool(constant); 65 cs.isBool(constant);
63 } 66 }
64 67
65 void useNode(tree.Node node) { 68 void useNode(tree.Node node) {
66 node 69 node
67 ..asBreakStatement() 70 ..asBreakStatement()
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 171
169 useCodeBuffer(dart2jslib.CodeBuffer buffer) { 172 useCodeBuffer(dart2jslib.CodeBuffer buffer) {
170 buffer.writeln(); 173 buffer.writeln();
171 } 174 }
172 175
173 usedByTests() { 176 usedByTests() {
174 // TODO(ahe): We should try to avoid including API used only for tests. In 177 // TODO(ahe): We should try to avoid including API used only for tests. In
175 // most cases, such API can be moved to a test library. 178 // most cases, such API can be moved to a test library.
176 dart2jslib.World world = null; 179 dart2jslib.World world = null;
177 dart2jslib.Compiler compiler = null; 180 dart2jslib.Compiler compiler = null;
181 compiler.currentlyInUserCode();
182 compiler.inUserCode(null);
178 type_graph_inferrer.TypeGraphInferrer typeGraphInferrer = null; 183 type_graph_inferrer.TypeGraphInferrer typeGraphInferrer = null;
179 source_file_provider.SourceFileProvider sourceFileProvider = null; 184 source_file_provider.SourceFileProvider sourceFileProvider = null;
180 world.hasAnyUserDefinedGetter(null); 185 world.hasAnyUserDefinedGetter(null);
181 compiler.importHelperLibrary(null); 186 compiler.importHelperLibrary(null);
182 typeGraphInferrer.getCallersOf(null); 187 typeGraphInferrer.getCallersOf(null);
183 dart_types.Types.sorted(null); 188 dart_types.Types.sorted(null);
184 new universe.TypedSelector.subclass(null, null); 189 new universe.TypedSelector.subclass(null, null);
185 new universe.TypedSelector.subtype(null, null); 190 new universe.TypedSelector.subtype(null, null);
186 new universe.TypedSelector.exact(null, null); 191 new universe.TypedSelector.exact(null, null);
187 sourceFileProvider.readStringFromUri(null); 192 sourceFileProvider.readStringFromUri(null);
188 } 193 }
194
195 useElements(elements.ClassElement e, elements.Name n) {
196 e.lookupClassMember(null);
197 e.lookupInterfaceMember(null);
198 n.isAccessibleFrom(null);
199 }
OLDNEW
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/typechecker.dart ('k') | tests/compiler/dart2js/in_user_code_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698