| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 library analyzer.test.generated.all_the_rest_test; | 5 library analyzer.test.generated.all_the_rest_test; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 | 8 |
| 9 import 'package:analyzer/dart/ast/ast.dart'; | 9 import 'package:analyzer/dart/ast/ast.dart'; |
| 10 import 'package:analyzer/dart/ast/token.dart'; | 10 import 'package:analyzer/dart/ast/token.dart'; |
| (...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 355 class ElementLocatorTest extends ResolverTestCase { | 355 class ElementLocatorTest extends ResolverTestCase { |
| 356 void fail_locate_Identifier_partOfDirective() { | 356 void fail_locate_Identifier_partOfDirective() { |
| 357 // Can't resolve the library element without the library declaration. | 357 // Can't resolve the library element without the library declaration. |
| 358 // AstNode id = findNodeIn("foo", "part of foo.bar;"); | 358 // AstNode id = findNodeIn("foo", "part of foo.bar;"); |
| 359 // Element element = ElementLocator.locate(id); | 359 // Element element = ElementLocator.locate(id); |
| 360 // assertInstanceOf(LibraryElement.class, element); | 360 // assertInstanceOf(LibraryElement.class, element); |
| 361 fail("Test this case"); | 361 fail("Test this case"); |
| 362 } | 362 } |
| 363 | 363 |
| 364 @override | 364 @override |
| 365 void reset({List<List<String>> packages}) { | 365 void reset() { |
| 366 AnalysisOptionsImpl analysisOptions = new AnalysisOptionsImpl(); | 366 AnalysisOptionsImpl analysisOptions = new AnalysisOptionsImpl(); |
| 367 analysisOptions.hint = false; | 367 analysisOptions.hint = false; |
| 368 resetWithOptions(analysisOptions); | 368 resetWith(options: analysisOptions); |
| 369 } | 369 } |
| 370 | 370 |
| 371 test_locate_AssignmentExpression() async { | 371 test_locate_AssignmentExpression() async { |
| 372 AstNode id = await _findNodeIn( | 372 AstNode id = await _findNodeIn( |
| 373 "+=", | 373 "+=", |
| 374 r''' | 374 r''' |
| 375 int x = 0; | 375 int x = 0; |
| 376 void main() { | 376 void main() { |
| 377 x += 1; | 377 x += 1; |
| 378 }'''); | 378 }'''); |
| (...skipping 1893 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2272 expect(UriKind.fromEncoding(0x70), same(UriKind.PACKAGE_URI)); | 2272 expect(UriKind.fromEncoding(0x70), same(UriKind.PACKAGE_URI)); |
| 2273 expect(UriKind.fromEncoding(0x58), same(null)); | 2273 expect(UriKind.fromEncoding(0x58), same(null)); |
| 2274 } | 2274 } |
| 2275 | 2275 |
| 2276 test_getEncoding() async { | 2276 test_getEncoding() async { |
| 2277 expect(UriKind.DART_URI.encoding, 0x64); | 2277 expect(UriKind.DART_URI.encoding, 0x64); |
| 2278 expect(UriKind.FILE_URI.encoding, 0x66); | 2278 expect(UriKind.FILE_URI.encoding, 0x66); |
| 2279 expect(UriKind.PACKAGE_URI.encoding, 0x70); | 2279 expect(UriKind.PACKAGE_URI.encoding, 0x70); |
| 2280 } | 2280 } |
| 2281 } | 2281 } |
| OLD | NEW |