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

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

Issue 1308033008: Add AnalysisContext.getResult()/computeResult() (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 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
« no previous file with comments | « pkg/analyzer/lib/src/generated/engine.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 library engine.engine_test; 5 library engine.engine_test;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:collection'; 8 import 'dart:collection';
9 9
10 import 'package:analyzer/file_system/memory_file_system.dart'; 10 import 'package:analyzer/file_system/memory_file_system.dart';
(...skipping 5883 matching lines...) Expand 10 before | Expand all | Expand 10 after
5894 } 5894 }
5895 5895
5896 @override 5896 @override
5897 Future<CompilationUnit> computeResolvedCompilationUnitAsync( 5897 Future<CompilationUnit> computeResolvedCompilationUnitAsync(
5898 Source source, Source librarySource) { 5898 Source source, Source librarySource) {
5899 fail("Unexpected invocation of getResolvedCompilationUnitFuture"); 5899 fail("Unexpected invocation of getResolvedCompilationUnitFuture");
5900 return null; 5900 return null;
5901 } 5901 }
5902 5902
5903 @override 5903 @override
5904 Object computeResult(AnalysisTarget target, ResultDescriptor result) {
5905 fail("Unexpected invocation of computeResult");
5906 return null;
5907 }
5908
5909 @override
5904 void dispose() { 5910 void dispose() {
5905 fail("Unexpected invocation of dispose"); 5911 fail("Unexpected invocation of dispose");
5906 } 5912 }
5907 5913
5908 @override 5914 @override
5909 List<CompilationUnit> ensureResolvedDartUnits(Source source) { 5915 List<CompilationUnit> ensureResolvedDartUnits(Source source) {
5910 fail("Unexpected invocation of ensureResolvedDartUnits"); 5916 fail("Unexpected invocation of ensureResolvedDartUnits");
5911 return null; 5917 return null;
5912 } 5918 }
5913 5919
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
6036 } 6042 }
6037 6043
6038 @override 6044 @override
6039 @deprecated 6045 @deprecated
6040 ht.HtmlUnit getResolvedHtmlUnit(Source htmlSource) { 6046 ht.HtmlUnit getResolvedHtmlUnit(Source htmlSource) {
6041 fail("Unexpected invocation of getResolvedHtmlUnit"); 6047 fail("Unexpected invocation of getResolvedHtmlUnit");
6042 return null; 6048 return null;
6043 } 6049 }
6044 6050
6045 @override 6051 @override
6052 Object getResult(AnalysisTarget target, ResultDescriptor result) {
6053 fail("Unexpected invocation of getResult");
6054 return null;
6055 }
6056
6057 @override
6046 List<Source> getSourcesWithFullName(String path) { 6058 List<Source> getSourcesWithFullName(String path) {
6047 fail("Unexpected invocation of getSourcesWithFullName"); 6059 fail("Unexpected invocation of getSourcesWithFullName");
6048 return null; 6060 return null;
6049 } 6061 }
6050 6062
6051 @override 6063 @override
6052 bool handleContentsChanged( 6064 bool handleContentsChanged(
6053 Source source, String originalContents, String newContents, bool notify) { 6065 Source source, String originalContents, String newContents, bool notify) {
6054 fail("Unexpected invocation of handleContentsChanged"); 6066 fail("Unexpected invocation of handleContentsChanged");
6055 return false; 6067 return false;
(...skipping 938 matching lines...) Expand 10 before | Expand all | Expand 10 after
6994 @override 7006 @override
6995 bool exists() => true; 7007 bool exists() => true;
6996 } 7008 }
6997 7009
6998 class _UniversalCachePartitionTest_test_setMaxCacheSize 7010 class _UniversalCachePartitionTest_test_setMaxCacheSize
6999 implements CacheRetentionPolicy { 7011 implements CacheRetentionPolicy {
7000 @override 7012 @override
7001 RetentionPriority getAstPriority(Source source, SourceEntry sourceEntry) => 7013 RetentionPriority getAstPriority(Source source, SourceEntry sourceEntry) =>
7002 RetentionPriority.LOW; 7014 RetentionPriority.LOW;
7003 } 7015 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/generated/engine.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698