| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |