Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(97)

Side by Side Diff: pkg/analyzer/test/generated/engine_test.dart

Issue 1124113004: Get AnalysisCache from InternalAnalysisContext. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 // This code was auto-generated, is not intended to be edited, and is subject to 5 // This code was auto-generated, is not intended to be edited, and is subject to
6 // significant change. Please see the README file for more information. 6 // significant change. Please see the README file for more information.
7 7
8 library engine.engine_test; 8 library engine.engine_test;
9 9
10 import 'dart:async'; 10 import 'dart:async';
(...skipping 5392 matching lines...) Expand 10 before | Expand all | Expand 10 after
5403 actualEvents.add(event); 5403 actualEvents.add(event);
5404 } 5404 }
5405 } 5405 }
5406 5406
5407 /** 5407 /**
5408 * Instances of the class `TestAnalysisContext` implement an analysis context in which every 5408 * Instances of the class `TestAnalysisContext` implement an analysis context in which every
5409 * method will cause a test to fail when invoked. 5409 * method will cause a test to fail when invoked.
5410 */ 5410 */
5411 class TestAnalysisContext implements InternalAnalysisContext { 5411 class TestAnalysisContext implements InternalAnalysisContext {
5412 @override 5412 @override
5413 AnalysisCache get analysisCache {
5414 fail("Unexpected invocation of analysisCache");
5415 return null;
5416 }
5417 @override
5413 AnalysisOptions get analysisOptions { 5418 AnalysisOptions get analysisOptions {
5414 fail("Unexpected invocation of getAnalysisOptions"); 5419 fail("Unexpected invocation of getAnalysisOptions");
5415 return null; 5420 return null;
5416 } 5421 }
5417 @override 5422 @override
5418 void set analysisOptions(AnalysisOptions options) { 5423 void set analysisOptions(AnalysisOptions options) {
5419 fail("Unexpected invocation of setAnalysisOptions"); 5424 fail("Unexpected invocation of setAnalysisOptions");
5420 } 5425 }
5421 @override 5426 @override
5422 void set analysisPriorityOrder(List<Source> sources) { 5427 void set analysisPriorityOrder(List<Source> sources) {
(...skipping 1178 matching lines...) Expand 10 before | Expand all | Expand 10 after
6601 @override 6606 @override
6602 bool exists() => true; 6607 bool exists() => true;
6603 } 6608 }
6604 6609
6605 class _UniversalCachePartitionTest_test_setMaxCacheSize 6610 class _UniversalCachePartitionTest_test_setMaxCacheSize
6606 implements CacheRetentionPolicy { 6611 implements CacheRetentionPolicy {
6607 @override 6612 @override
6608 RetentionPriority getAstPriority(Source source, SourceEntry sourceEntry) => 6613 RetentionPriority getAstPriority(Source source, SourceEntry sourceEntry) =>
6609 RetentionPriority.LOW; 6614 RetentionPriority.LOW;
6610 } 6615 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/generated/engine.dart ('k') | pkg/analyzer/test/src/context/cache_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698