| OLD | NEW |
| 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 import "dart:uri"; | 5 import "dart:uri"; |
| 6 import "../../../lib/compiler/implementation/elements/elements.dart"; | 6 import "../../../sdk/lib/_internal/compiler/implementation/elements/elements.dar
t"; |
| 7 import '../../../lib/compiler/implementation/scanner/scannerlib.dart'; | 7 import '../../../sdk/lib/_internal/compiler/implementation/scanner/scannerlib.da
rt'; |
| 8 import '../../../lib/compiler/implementation/source_file.dart'; | 8 import '../../../sdk/lib/_internal/compiler/implementation/source_file.dart'; |
| 9 import '../../../lib/compiler/implementation/types/types.dart'; | 9 import '../../../sdk/lib/_internal/compiler/implementation/types/types.dart'; |
| 10 import '../../../lib/compiler/implementation/tree/tree.dart'; | 10 import '../../../sdk/lib/_internal/compiler/implementation/tree/tree.dart'; |
| 11 import "../../../lib/compiler/implementation/dart2jslib.dart" as leg; | 11 import "../../../sdk/lib/_internal/compiler/implementation/dart2jslib.dart" as l
eg; |
| 12 | 12 |
| 13 import "parser_helper.dart"; | 13 import "parser_helper.dart"; |
| 14 import "compiler_helper.dart"; | 14 import "compiler_helper.dart"; |
| 15 import "mock_compiler.dart"; | 15 import "mock_compiler.dart"; |
| 16 | 16 |
| 17 /** | 17 /** |
| 18 * Finds the node corresponding to the last occurence of the substring | 18 * Finds the node corresponding to the last occurence of the substring |
| 19 * [: identifier; :] in the program represented by the visited AST. | 19 * [: identifier; :] in the program represented by the visited AST. |
| 20 */ | 20 */ |
| 21 class VariableFinderVisitor extends Visitor { | 21 class VariableFinderVisitor extends Visitor { |
| (...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 537 testGetters(); | 537 testGetters(); |
| 538 testSetters(); | 538 testSetters(); |
| 539 testNamedParameters(); | 539 testNamedParameters(); |
| 540 testListLiterals(); | 540 testListLiterals(); |
| 541 testMapLiterals(); | 541 testMapLiterals(); |
| 542 testReturn(); | 542 testReturn(); |
| 543 // testNoReturn(); // right now we infer the empty type instead of null | 543 // testNoReturn(); // right now we infer the empty type instead of null |
| 544 testArithmeticOperators(); | 544 testArithmeticOperators(); |
| 545 testOperators(); | 545 testOperators(); |
| 546 } | 546 } |
| OLD | NEW |