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

Side by Side Diff: dart/tests/compiler/dart2js/cpa_inference_test.dart

Issue 11184046: Clean up leg.dart. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebased on CL 11187067 Created 8 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 | Annotate | Revision Log
OLDNEW
1 #import("dart:uri"); 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 #import("../../../lib/compiler/implementation/elements/elements.dart"); 2 // for details. All rights reserved. Use of this source code is governed by a
3 #import('../../../lib/compiler/implementation/scanner/scannerlib.dart'); 3 // BSD-style license that can be found in the LICENSE file.
4 #import('../../../lib/compiler/implementation/source_file.dart');
5 #import('../../../lib/compiler/implementation/types/types.dart');
6 #import('../../../lib/compiler/implementation/tree/tree.dart');
7 #import("../../../lib/compiler/implementation/leg.dart", prefix: "leg");
8 4
9 #import("parser_helper.dart"); 5 import "dart:uri";
10 #import("compiler_helper.dart"); 6 import "../../../lib/compiler/implementation/elements/elements.dart";
11 #import("mock_compiler.dart"); 7 import '../../../lib/compiler/implementation/scanner/scannerlib.dart';
8 import '../../../lib/compiler/implementation/source_file.dart';
9 import '../../../lib/compiler/implementation/types/types.dart';
10 import '../../../lib/compiler/implementation/tree/tree.dart';
11 import "../../../lib/compiler/implementation/dart2jslib.dart" as leg;
12
13 import "parser_helper.dart";
14 import "compiler_helper.dart";
15 import "mock_compiler.dart";
12 16
13 /** 17 /**
14 * Finds the node corresponding to the last occurence of the substring 18 * Finds the node corresponding to the last occurence of the substring
15 * [: identifier; :] in the program represented by the visited AST. 19 * [: identifier; :] in the program represented by the visited AST.
16 */ 20 */
17 class VariableFinderVisitor extends Visitor { 21 class VariableFinderVisitor extends Visitor {
18 final String identifier; 22 final String identifier;
19 Node result; 23 Node result;
20 24
21 VariableFinderVisitor(this.identifier); 25 VariableFinderVisitor(this.identifier);
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after
381 testMutuallyRecusiveFunction(); 385 testMutuallyRecusiveFunction();
382 testConstructor(); 386 testConstructor();
383 testGetters(); 387 testGetters();
384 testSetters(); 388 testSetters();
385 testNamedParameters(); 389 testNamedParameters();
386 testListLiterals(); 390 testListLiterals();
387 testMapLiterals(); 391 testMapLiterals();
388 testReturn(); 392 testReturn();
389 // testNoReturn(); // right now we infer the empty type instead of null 393 // testNoReturn(); // right now we infer the empty type instead of null
390 } 394 }
OLDNEW
« no previous file with comments | « dart/tests/compiler/dart2js/compiler_test.dart ('k') | dart/tests/compiler/dart2js/dart_backend_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698