| 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/plugin/resolver_provider.dart'; | 11 import 'package:analyzer/plugin/resolver_provider.dart'; |
| 12 import 'package:analyzer/source/embedder.dart'; | 12 import 'package:analyzer/source/embedder.dart'; |
| 13 import 'package:analyzer/src/cancelable_future.dart'; | 13 import 'package:analyzer/src/cancelable_future.dart'; |
| 14 import 'package:analyzer/src/context/cache.dart'; | 14 import 'package:analyzer/src/context/cache.dart'; |
| 15 import 'package:analyzer/src/context/context.dart'; | 15 import 'package:analyzer/src/context/context.dart'; |
| 16 import 'package:analyzer/src/context/source.dart'; | 16 import 'package:analyzer/src/context/source.dart'; |
| 17 import 'package:analyzer/src/generated/constant.dart'; | 17 import 'package:analyzer/src/generated/constant.dart'; |
| 18 import 'package:analyzer/src/generated/engine.dart'; | 18 import 'package:analyzer/src/generated/engine.dart'; |
| 19 import 'package:analyzer/src/generated/error.dart'; | 19 import 'package:analyzer/src/generated/error.dart'; |
| 20 import 'package:analyzer/src/generated/java_core.dart'; | 20 import 'package:analyzer/src/generated/java_core.dart'; |
| 21 import 'package:analyzer/src/generated/resolver.dart'; | 21 import 'package:analyzer/src/generated/resolver.dart'; |
| 22 import 'package:analyzer/src/generated/source_io.dart'; | 22 import 'package:analyzer/src/generated/source_io.dart'; |
| 23 import 'package:analyzer/src/string_source.dart'; | 23 import 'package:analyzer/src/string_source.dart'; |
| 24 import 'package:analyzer/task/dart.dart'; |
| 24 import 'package:analyzer/task/model.dart'; | 25 import 'package:analyzer/task/model.dart'; |
| 25 import 'package:html/dom.dart' show Document; | 26 import 'package:html/dom.dart' show Document; |
| 26 import 'package:typed_mock/typed_mock.dart'; | 27 import 'package:typed_mock/typed_mock.dart'; |
| 27 import 'package:unittest/unittest.dart'; | 28 import 'package:unittest/unittest.dart'; |
| 28 | 29 |
| 29 import '../reflective_tests.dart'; | 30 import '../reflective_tests.dart'; |
| 30 import '../utils.dart'; | 31 import '../utils.dart'; |
| 31 | 32 |
| 32 main() { | 33 main() { |
| 33 initializeTestEnvironment(); | 34 initializeTestEnvironment(); |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 void set analysisOptions(AnalysisOptions options) { | 219 void set analysisOptions(AnalysisOptions options) { |
| 219 fail("Unexpected invocation of setAnalysisOptions"); | 220 fail("Unexpected invocation of setAnalysisOptions"); |
| 220 } | 221 } |
| 221 | 222 |
| 222 @override | 223 @override |
| 223 void set analysisPriorityOrder(List<Source> sources) { | 224 void set analysisPriorityOrder(List<Source> sources) { |
| 224 fail("Unexpected invocation of setAnalysisPriorityOrder"); | 225 fail("Unexpected invocation of setAnalysisPriorityOrder"); |
| 225 } | 226 } |
| 226 | 227 |
| 227 @override | 228 @override |
| 229 CacheConsistencyValidator get cacheConsistencyValidator { |
| 230 fail("Unexpected invocation of cacheConsistencyValidator"); |
| 231 return null; |
| 232 } |
| 233 |
| 234 @override |
| 228 set contentCache(ContentCache value) { | 235 set contentCache(ContentCache value) { |
| 229 fail("Unexpected invocation of setContentCache"); | 236 fail("Unexpected invocation of setContentCache"); |
| 230 } | 237 } |
| 231 | 238 |
| 232 @override | 239 @override |
| 233 DeclaredVariables get declaredVariables { | 240 DeclaredVariables get declaredVariables { |
| 234 fail("Unexpected invocation of getDeclaredVariables"); | 241 fail("Unexpected invocation of getDeclaredVariables"); |
| 235 return null; | 242 return null; |
| 236 } | 243 } |
| 237 | 244 |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 386 fail("Unexpected invocation of applyAnalysisDelta"); | 393 fail("Unexpected invocation of applyAnalysisDelta"); |
| 387 } | 394 } |
| 388 | 395 |
| 389 @override | 396 @override |
| 390 ApplyChangesStatus applyChanges(ChangeSet changeSet) { | 397 ApplyChangesStatus applyChanges(ChangeSet changeSet) { |
| 391 fail("Unexpected invocation of applyChanges"); | 398 fail("Unexpected invocation of applyChanges"); |
| 392 return null; | 399 return null; |
| 393 } | 400 } |
| 394 | 401 |
| 395 @override | 402 @override |
| 403 AnalysisTarget canonicalizeTarget(AnalysisTarget target) => target; |
| 404 |
| 405 @override |
| 396 String computeDocumentationComment(Element element) { | 406 String computeDocumentationComment(Element element) { |
| 397 fail("Unexpected invocation of computeDocumentationComment"); | 407 fail("Unexpected invocation of computeDocumentationComment"); |
| 398 return null; | 408 return null; |
| 399 } | 409 } |
| 400 | 410 |
| 401 @override | 411 @override |
| 402 List<AnalysisError> computeErrors(Source source) { | 412 List<AnalysisError> computeErrors(Source source) { |
| 403 fail("Unexpected invocation of computeErrors"); | 413 fail("Unexpected invocation of computeErrors"); |
| 404 return null; | 414 return null; |
| 405 } | 415 } |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 538 return null; | 548 return null; |
| 539 } | 549 } |
| 540 | 550 |
| 541 @override | 551 @override |
| 542 LibraryElement getLibraryElement(Source source) { | 552 LibraryElement getLibraryElement(Source source) { |
| 543 fail("Unexpected invocation of getLibraryElement"); | 553 fail("Unexpected invocation of getLibraryElement"); |
| 544 return null; | 554 return null; |
| 545 } | 555 } |
| 546 | 556 |
| 547 @override | 557 @override |
| 558 LibrarySpecificUnit getLibrarySpecificUnit(Source library, Source unit) { |
| 559 return new LibrarySpecificUnit(library, unit); |
| 560 } |
| 561 |
| 562 @override |
| 548 LineInfo getLineInfo(Source source) { | 563 LineInfo getLineInfo(Source source) { |
| 549 fail("Unexpected invocation of getLineInfo"); | 564 fail("Unexpected invocation of getLineInfo"); |
| 550 return null; | 565 return null; |
| 551 } | 566 } |
| 552 | 567 |
| 553 @override | 568 @override |
| 554 int getModificationStamp(Source source) { | 569 int getModificationStamp(Source source) { |
| 555 fail("Unexpected invocation of getModificationStamp"); | 570 fail("Unexpected invocation of getModificationStamp"); |
| 556 return 0; | 571 return 0; |
| 557 } | 572 } |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 698 | 713 |
| 699 @override | 714 @override |
| 700 void test_flushAstStructures(Source source) { | 715 void test_flushAstStructures(Source source) { |
| 701 fail("Unexpected invocation of test_flushAstStructures"); | 716 fail("Unexpected invocation of test_flushAstStructures"); |
| 702 } | 717 } |
| 703 | 718 |
| 704 @override | 719 @override |
| 705 void visitContentCache(ContentCacheVisitor visitor) { | 720 void visitContentCache(ContentCacheVisitor visitor) { |
| 706 fail("Unexpected invocation of visitContentCache"); | 721 fail("Unexpected invocation of visitContentCache"); |
| 707 } | 722 } |
| 708 | |
| 709 @override | |
| 710 CacheConsistencyValidator get cacheConsistencyValidator { | |
| 711 fail("Unexpected invocation of cacheConsistencyValidator"); | |
| 712 return null; | |
| 713 } | |
| 714 } | 723 } |
| OLD | NEW |