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

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

Issue 1313893004: Move isPrivateName and isPublicName to Name. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 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 | « pkg/compiler/lib/src/typechecker.dart ('k') | no next file » | 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) 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
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 PartialClassElement, 50 PartialClassElement,
51 PartialFunctionElement; 51 PartialFunctionElement;
52 52
53 class ElementVisitor extends elements_visitor.BaseElementVisitor { 53 class ElementVisitor extends elements_visitor.BaseElementVisitor {
54 visitElement(e, a) {} 54 visitElement(e, a) {}
55 } 55 }
56 56
57 void main(List<String> arguments) { 57 void main(List<String> arguments) {
58 useApi(null); 58 useApi(null);
59 dart2js.main(arguments); 59 dart2js.main(arguments);
60 dart2jslib.isPublicName(null); 60 elements.Name.isPublicName(null);
61 useConstant(); 61 useConstant();
62 useNode(null); 62 useNode(null);
63 useUtil(null); 63 useUtil(null);
64 useSetlet(null); 64 useSetlet(null);
65 useImmutableEmptySet(null); 65 useImmutableEmptySet(null);
66 useElementVisitor(new ElementVisitor()); 66 useElementVisitor(new ElementVisitor());
67 useJsNode(new js.Program(null)); 67 useJsNode(new js.Program(null));
68 useJsNode(new js.NamedFunction(null, null)); 68 useJsNode(new js.NamedFunction(null, null));
69 useJsNode(new js.ArrayHole()); 69 useJsNode(new js.ArrayHole());
70 useJsOther(new js.SimpleJavaScriptPrintingContext()); 70 useJsOther(new js.SimpleJavaScriptPrintingContext());
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 336
337 class TreeVisitor1 extends tree_ir.ExpressionVisitor1 337 class TreeVisitor1 extends tree_ir.ExpressionVisitor1
338 with tree_ir.StatementVisitor1 { 338 with tree_ir.StatementVisitor1 {
339 noSuchMethod(inv) {} 339 noSuchMethod(inv) {}
340 } 340 }
341 341
342 useTreeVisitors() { 342 useTreeVisitors() {
343 new TreeVisitor1().visitExpression(null, null); 343 new TreeVisitor1().visitExpression(null, null);
344 new TreeVisitor1().visitStatement(null, null); 344 new TreeVisitor1().visitStatement(null, null);
345 } 345 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/typechecker.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698