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

Side by Side Diff: pkg/analyzer/lib/task/dart.dart

Issue 2297343002: Flush results when contexts are made idle. (Closed)
Patch Set: Un-fail completion tests. Created 4 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/task/dart.dart ('k') | pkg/analyzer/test/generated/engine_test.dart » ('j') | 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) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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.task.dart; 5 library analyzer.task.dart;
6 6
7 import 'package:analyzer/dart/ast/ast.dart'; 7 import 'package:analyzer/dart/ast/ast.dart';
8 import 'package:analyzer/dart/ast/token.dart'; 8 import 'package:analyzer/dart/ast/token.dart';
9 import 'package:analyzer/dart/element/element.dart'; 9 import 'package:analyzer/dart/element/element.dart';
10 import 'package:analyzer/src/generated/error.dart'; 10 import 'package:analyzer/src/generated/error.dart';
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 cachingPolicy: AST_CACHING_POLICY); 95 cachingPolicy: AST_CACHING_POLICY);
96 96
97 /** 97 /**
98 * The resolved [CompilationUnit] associated with a compilation unit, with 98 * The resolved [CompilationUnit] associated with a compilation unit, with
99 * constants resolved. 99 * constants resolved.
100 * 100 *
101 * The result is only available for [LibrarySpecificUnit]s. 101 * The result is only available for [LibrarySpecificUnit]s.
102 */ 102 */
103 final ResultDescriptor<CompilationUnit> RESOLVED_UNIT = 103 final ResultDescriptor<CompilationUnit> RESOLVED_UNIT =
104 new ResultDescriptor<CompilationUnit>('RESOLVED_UNIT', null, 104 new ResultDescriptor<CompilationUnit>('RESOLVED_UNIT', null,
105 cachingPolicy: AST_CACHING_POLICY); 105 cachingPolicy: AST_RESOLVED_CACHING_POLICY);
106 106
107 /** 107 /**
108 * The kind of a [Source]. 108 * The kind of a [Source].
109 */ 109 */
110 final ResultDescriptor<SourceKind> SOURCE_KIND = 110 final ResultDescriptor<SourceKind> SOURCE_KIND =
111 new ResultDescriptor<SourceKind>('SOURCE_KIND', SourceKind.UNKNOWN); 111 new ResultDescriptor<SourceKind>('SOURCE_KIND', SourceKind.UNKNOWN);
112 112
113 /** 113 /**
114 * The token stream produced while scanning a compilation unit. 114 * The token stream produced while scanning a compilation unit.
115 * 115 *
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 @override 175 @override
176 bool operator ==(other) { 176 bool operator ==(other) {
177 return other is LibrarySpecificUnit && 177 return other is LibrarySpecificUnit &&
178 other.library == library && 178 other.library == library &&
179 other.unit == unit; 179 other.unit == unit;
180 } 180 }
181 181
182 @override 182 @override
183 String toString() => '$unit in $library'; 183 String toString() => '$unit in $library';
184 } 184 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/task/dart.dart ('k') | pkg/analyzer/test/generated/engine_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698