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

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

Issue 1448173002: Add ApplyChangesStatus to AnalysisContext.applyChanges() and use it in DAS. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 1 month 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
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 5844 matching lines...) Expand 10 before | Expand all | Expand 10 after
5855 void addListener(AnalysisListener listener) { 5855 void addListener(AnalysisListener listener) {
5856 fail("Unexpected invocation of addListener"); 5856 fail("Unexpected invocation of addListener");
5857 } 5857 }
5858 5858
5859 @override 5859 @override
5860 void applyAnalysisDelta(AnalysisDelta delta) { 5860 void applyAnalysisDelta(AnalysisDelta delta) {
5861 fail("Unexpected invocation of applyAnalysisDelta"); 5861 fail("Unexpected invocation of applyAnalysisDelta");
5862 } 5862 }
5863 5863
5864 @override 5864 @override
5865 void applyChanges(ChangeSet changeSet) { 5865 ApplyChangesStatus applyChanges(ChangeSet changeSet) {
5866 fail("Unexpected invocation of applyChanges"); 5866 fail("Unexpected invocation of applyChanges");
5867 return null;
5867 } 5868 }
5868 5869
5869 @override 5870 @override
5870 String computeDocumentationComment(Element element) { 5871 String computeDocumentationComment(Element element) {
5871 fail("Unexpected invocation of computeDocumentationComment"); 5872 fail("Unexpected invocation of computeDocumentationComment");
5872 return null; 5873 return null;
5873 } 5874 }
5874 5875
5875 @override 5876 @override
5876 List<AnalysisError> computeErrors(Source source) { 5877 List<AnalysisError> computeErrors(Source source) {
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after
6224 @override 6225 @override
6225 void visitContentCache(ContentCacheVisitor visitor) { 6226 void visitContentCache(ContentCacheVisitor visitor) {
6226 fail("Unexpected invocation of visitContentCache"); 6227 fail("Unexpected invocation of visitContentCache");
6227 } 6228 }
6228 } 6229 }
6229 6230
6230 class TestAnalysisContext_test_applyChanges extends TestAnalysisContext { 6231 class TestAnalysisContext_test_applyChanges extends TestAnalysisContext {
6231 bool invoked = false; 6232 bool invoked = false;
6232 TestAnalysisContext_test_applyChanges(); 6233 TestAnalysisContext_test_applyChanges();
6233 @override 6234 @override
6234 void applyChanges(ChangeSet changeSet) { 6235 ApplyChangesStatus applyChanges(ChangeSet changeSet) {
6235 invoked = true; 6236 invoked = true;
6237 return new ApplyChangesStatus(false);
6236 } 6238 }
6237 } 6239 }
6238 6240
6239 class TestAnalysisContext_test_computeDocumentationComment 6241 class TestAnalysisContext_test_computeDocumentationComment
6240 extends TestAnalysisContext { 6242 extends TestAnalysisContext {
6241 bool invoked = false; 6243 bool invoked = false;
6242 TestAnalysisContext_test_computeDocumentationComment(); 6244 TestAnalysisContext_test_computeDocumentationComment();
6243 @override 6245 @override
6244 String computeDocumentationComment(Element element) { 6246 String computeDocumentationComment(Element element) {
6245 invoked = true; 6247 invoked = true;
(...skipping 801 matching lines...) Expand 10 before | Expand all | Expand 10 after
7047 @override 7049 @override
7048 bool exists() => true; 7050 bool exists() => true;
7049 } 7051 }
7050 7052
7051 class _UniversalCachePartitionTest_test_setMaxCacheSize 7053 class _UniversalCachePartitionTest_test_setMaxCacheSize
7052 implements CacheRetentionPolicy { 7054 implements CacheRetentionPolicy {
7053 @override 7055 @override
7054 RetentionPriority getAstPriority(Source source, SourceEntry sourceEntry) => 7056 RetentionPriority getAstPriority(Source source, SourceEntry sourceEntry) =>
7055 RetentionPriority.LOW; 7057 RetentionPriority.LOW;
7056 } 7058 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698