| 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.engine_test; | 5 library analyzer.test.generated.engine_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/element/element.dart'; | 10 import 'package:analyzer/dart/element/element.dart'; |
| 11 import 'package:analyzer/source/embedder.dart'; | 11 import 'package:analyzer/source/embedder.dart'; |
| 12 import 'package:analyzer/src/cancelable_future.dart'; |
| 12 import 'package:analyzer/src/context/cache.dart'; | 13 import 'package:analyzer/src/context/cache.dart'; |
| 13 import 'package:analyzer/src/context/context.dart'; | 14 import 'package:analyzer/src/context/context.dart'; |
| 14 import 'package:analyzer/src/context/source.dart'; | 15 import 'package:analyzer/src/context/source.dart'; |
| 15 import 'package:analyzer/src/generated/constant.dart'; | 16 import 'package:analyzer/src/generated/constant.dart'; |
| 16 import 'package:analyzer/src/generated/engine.dart'; | 17 import 'package:analyzer/src/generated/engine.dart'; |
| 17 import 'package:analyzer/src/generated/error.dart'; | 18 import 'package:analyzer/src/generated/error.dart'; |
| 18 import 'package:analyzer/src/generated/java_core.dart'; | 19 import 'package:analyzer/src/generated/java_core.dart'; |
| 19 import 'package:analyzer/src/generated/resolver.dart'; | 20 import 'package:analyzer/src/generated/resolver.dart'; |
| 20 import 'package:analyzer/src/generated/source_io.dart'; | 21 import 'package:analyzer/src/generated/source_io.dart'; |
| 21 import 'package:analyzer/src/string_source.dart'; | 22 import 'package:analyzer/src/string_source.dart'; |
| (...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 410 return null; | 411 return null; |
| 411 } | 412 } |
| 412 | 413 |
| 413 @override | 414 @override |
| 414 LineInfo computeLineInfo(Source source) { | 415 LineInfo computeLineInfo(Source source) { |
| 415 fail("Unexpected invocation of computeLineInfo"); | 416 fail("Unexpected invocation of computeLineInfo"); |
| 416 return null; | 417 return null; |
| 417 } | 418 } |
| 418 | 419 |
| 419 @override | 420 @override |
| 420 Future<CompilationUnit> computeResolvedCompilationUnitAsync( | 421 CancelableFuture<CompilationUnit> computeResolvedCompilationUnitAsync( |
| 421 Source source, Source librarySource) { | 422 Source source, Source librarySource) { |
| 422 fail("Unexpected invocation of getResolvedCompilationUnitFuture"); | 423 fail("Unexpected invocation of getResolvedCompilationUnitFuture"); |
| 423 return null; | 424 return null; |
| 424 } | 425 } |
| 425 | 426 |
| 426 @override | 427 @override |
| 427 Object computeResult(AnalysisTarget target, ResultDescriptor result) { | 428 Object/*=V*/ computeResult/*<V>*/( |
| 429 AnalysisTarget target, ResultDescriptor/*<V>*/ result) { |
| 428 fail("Unexpected invocation of computeResult"); | 430 fail("Unexpected invocation of computeResult"); |
| 429 return null; | 431 return null; |
| 430 } | 432 } |
| 431 | 433 |
| 432 @override | 434 @override |
| 433 void dispose() { | 435 void dispose() { |
| 434 fail("Unexpected invocation of dispose"); | 436 fail("Unexpected invocation of dispose"); |
| 435 } | 437 } |
| 436 | 438 |
| 437 @override | 439 @override |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 557 } | 559 } |
| 558 | 560 |
| 559 @override | 561 @override |
| 560 CompilationUnit getResolvedCompilationUnit2( | 562 CompilationUnit getResolvedCompilationUnit2( |
| 561 Source unitSource, Source librarySource) { | 563 Source unitSource, Source librarySource) { |
| 562 fail("Unexpected invocation of getResolvedCompilationUnit"); | 564 fail("Unexpected invocation of getResolvedCompilationUnit"); |
| 563 return null; | 565 return null; |
| 564 } | 566 } |
| 565 | 567 |
| 566 @override | 568 @override |
| 567 Object getResult(AnalysisTarget target, ResultDescriptor result) { | 569 Object/*=V*/ getResult/*<V>*/( |
| 570 AnalysisTarget target, ResultDescriptor/*<V>*/ result) { |
| 568 fail("Unexpected invocation of getResult"); | 571 fail("Unexpected invocation of getResult"); |
| 569 return null; | 572 return null; |
| 570 } | 573 } |
| 571 | 574 |
| 572 @override | 575 @override |
| 573 List<Source> getSourcesWithFullName(String path) { | 576 List<Source> getSourcesWithFullName(String path) { |
| 574 fail("Unexpected invocation of getSourcesWithFullName"); | 577 fail("Unexpected invocation of getSourcesWithFullName"); |
| 575 return null; | 578 return null; |
| 576 } | 579 } |
| 577 | 580 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 598 fail("Unexpected invocation of isServerLibrary"); | 601 fail("Unexpected invocation of isServerLibrary"); |
| 599 return false; | 602 return false; |
| 600 } | 603 } |
| 601 | 604 |
| 602 @override | 605 @override |
| 603 Stream<ResultChangedEvent> onResultChanged(ResultDescriptor descriptor) { | 606 Stream<ResultChangedEvent> onResultChanged(ResultDescriptor descriptor) { |
| 604 fail("Unexpected invocation of onResultChanged"); | 607 fail("Unexpected invocation of onResultChanged"); |
| 605 return null; | 608 return null; |
| 606 } | 609 } |
| 607 | 610 |
| 611 @deprecated |
| 608 @override | 612 @override |
| 609 Stream<ComputedResult> onResultComputed(ResultDescriptor descriptor) { | 613 Stream<ComputedResult> onResultComputed(ResultDescriptor descriptor) { |
| 610 fail("Unexpected invocation of onResultComputed"); | 614 fail("Unexpected invocation of onResultComputed"); |
| 611 return null; | 615 return null; |
| 612 } | 616 } |
| 613 | 617 |
| 614 @override | 618 @override |
| 615 CompilationUnit parseCompilationUnit(Source source) { | 619 CompilationUnit parseCompilationUnit(Source source) { |
| 616 fail("Unexpected invocation of parseCompilationUnit"); | 620 fail("Unexpected invocation of parseCompilationUnit"); |
| 617 return null; | 621 return null; |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 684 bool validateCacheConsistency() { | 688 bool validateCacheConsistency() { |
| 685 fail("Unexpected invocation of validateCacheConsistency"); | 689 fail("Unexpected invocation of validateCacheConsistency"); |
| 686 return false; | 690 return false; |
| 687 } | 691 } |
| 688 | 692 |
| 689 @override | 693 @override |
| 690 void visitContentCache(ContentCacheVisitor visitor) { | 694 void visitContentCache(ContentCacheVisitor visitor) { |
| 691 fail("Unexpected invocation of visitContentCache"); | 695 fail("Unexpected invocation of visitContentCache"); |
| 692 } | 696 } |
| 693 } | 697 } |
| OLD | NEW |