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 // 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; | 8 library engine; |
9 | 9 |
10 import 'dart:async'; | 10 import 'dart:async'; |
(...skipping 2253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2264 @override | 2264 @override |
2265 CompilationUnit parseCompilationUnit(Source source) => | 2265 CompilationUnit parseCompilationUnit(Source source) => |
2266 _getDartParseData2(source, DartEntry.PARSED_UNIT, null); | 2266 _getDartParseData2(source, DartEntry.PARSED_UNIT, null); |
2267 | 2267 |
2268 @override | 2268 @override |
2269 Document parseHtmlDocument(Source source) { | 2269 Document parseHtmlDocument(Source source) { |
2270 return null; | 2270 return null; |
2271 } | 2271 } |
2272 | 2272 |
2273 @override | 2273 @override |
| 2274 @deprecated |
2274 ht.HtmlUnit parseHtmlUnit(Source source) => | 2275 ht.HtmlUnit parseHtmlUnit(Source source) => |
2275 _getHtmlParseData(source, HtmlEntry.PARSED_UNIT, null); | 2276 _getHtmlParseData(source, HtmlEntry.PARSED_UNIT, null); |
2276 | 2277 |
2277 @override | 2278 @override |
2278 AnalysisResult performAnalysisTask() { | 2279 AnalysisResult performAnalysisTask() { |
2279 if (_TRACE_PERFORM_TASK) { | 2280 if (_TRACE_PERFORM_TASK) { |
2280 print("----------------------------------------"); | 2281 print("----------------------------------------"); |
2281 } | 2282 } |
2282 return PerformanceStatistics.performAnaysis.makeCurrentWhile(() { | 2283 return PerformanceStatistics.performAnaysis.makeCurrentWhile(() { |
2283 int getStart = JavaSystem.currentTimeMillis(); | 2284 int getStart = JavaSystem.currentTimeMillis(); |
(...skipping 3734 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6018 | 6019 |
6019 /** | 6020 /** |
6020 * Reports that the given Dart [source] was parsed in the given [context], | 6021 * Reports that the given Dart [source] was parsed in the given [context], |
6021 * producing the given [unit]. | 6022 * producing the given [unit]. |
6022 */ | 6023 */ |
6023 void parsedDart(AnalysisContext context, Source source, CompilationUnit unit); | 6024 void parsedDart(AnalysisContext context, Source source, CompilationUnit unit); |
6024 | 6025 |
6025 /** | 6026 /** |
6026 * Reports that the given HTML [source] was parsed in the given [context]. | 6027 * Reports that the given HTML [source] was parsed in the given [context]. |
6027 */ | 6028 */ |
| 6029 @deprecated |
6028 void parsedHtml(AnalysisContext context, Source source, ht.HtmlUnit unit); | 6030 void parsedHtml(AnalysisContext context, Source source, ht.HtmlUnit unit); |
6029 | 6031 |
6030 /** | 6032 /** |
6031 * Reports that the given Dart [source] was resolved in the given [context]. | 6033 * Reports that the given Dart [source] was resolved in the given [context]. |
6032 */ | 6034 */ |
6033 void resolvedDart( | 6035 void resolvedDart( |
6034 AnalysisContext context, Source source, CompilationUnit unit); | 6036 AnalysisContext context, Source source, CompilationUnit unit); |
6035 | 6037 |
6036 /** | 6038 /** |
6037 * Reports that the given HTML [source] was resolved in the given [context]. | 6039 * Reports that the given HTML [source] was resolved in the given [context]. |
6038 */ | 6040 */ |
| 6041 @deprecated |
6039 void resolvedHtml(AnalysisContext context, Source source, ht.HtmlUnit unit); | 6042 void resolvedHtml(AnalysisContext context, Source source, ht.HtmlUnit unit); |
6040 } | 6043 } |
6041 | 6044 |
6042 /** | 6045 /** |
6043 * Futures returned by [AnalysisContext] for pending analysis results will | 6046 * Futures returned by [AnalysisContext] for pending analysis results will |
6044 * complete with this error if it is determined that analysis results will | 6047 * complete with this error if it is determined that analysis results will |
6045 * never become available (e.g. because the requested source is not subject to | 6048 * never become available (e.g. because the requested source is not subject to |
6046 * analysis, or because the requested source is a part file which is not a part | 6049 * analysis, or because the requested source is a part file which is not a part |
6047 * of any known library). | 6050 * of any known library). |
6048 */ | 6051 */ |
(...skipping 882 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6931 /** | 6934 /** |
6932 * The fully resolved Dart AST that changed as a result of the analysis, or | 6935 * The fully resolved Dart AST that changed as a result of the analysis, or |
6933 * `null` if the AST was not changed. | 6936 * `null` if the AST was not changed. |
6934 */ | 6937 */ |
6935 CompilationUnit get resolvedDartUnit; | 6938 CompilationUnit get resolvedDartUnit; |
6936 | 6939 |
6937 /** | 6940 /** |
6938 * The fully resolved HTML AST that changed as a result of the analysis, or | 6941 * The fully resolved HTML AST that changed as a result of the analysis, or |
6939 * `null` if the AST was not changed. | 6942 * `null` if the AST was not changed. |
6940 */ | 6943 */ |
| 6944 @deprecated |
6941 ht.HtmlUnit get resolvedHtmlUnit; | 6945 ht.HtmlUnit get resolvedHtmlUnit; |
6942 | 6946 |
6943 /** | 6947 /** |
6944 * Return the source for which the result is being reported. | 6948 * Return the source for which the result is being reported. |
6945 */ | 6949 */ |
6946 Source get source; | 6950 Source get source; |
6947 } | 6951 } |
6948 | 6952 |
6949 /** | 6953 /** |
6950 * An implementation of a [ChangeNotice]. | 6954 * An implementation of a [ChangeNotice]. |
(...skipping 18 matching lines...) Expand all Loading... |
6969 /** | 6973 /** |
6970 * The fully resolved Dart AST that changed as a result of the analysis, or | 6974 * The fully resolved Dart AST that changed as a result of the analysis, or |
6971 * `null` if the AST was not changed. | 6975 * `null` if the AST was not changed. |
6972 */ | 6976 */ |
6973 CompilationUnit resolvedDartUnit; | 6977 CompilationUnit resolvedDartUnit; |
6974 | 6978 |
6975 /** | 6979 /** |
6976 * The fully resolved HTML AST that changed as a result of the analysis, or | 6980 * The fully resolved HTML AST that changed as a result of the analysis, or |
6977 * `null` if the AST was not changed. | 6981 * `null` if the AST was not changed. |
6978 */ | 6982 */ |
| 6983 @deprecated |
6979 ht.HtmlUnit resolvedHtmlUnit; | 6984 ht.HtmlUnit resolvedHtmlUnit; |
6980 | 6985 |
6981 /** | 6986 /** |
6982 * The errors that changed as a result of the analysis, or `null` if errors | 6987 * The errors that changed as a result of the analysis, or `null` if errors |
6983 * were not changed. | 6988 * were not changed. |
6984 */ | 6989 */ |
6985 List<AnalysisError> _errors; | 6990 List<AnalysisError> _errors; |
6986 | 6991 |
6987 /** | 6992 /** |
6988 * The line information associated with the source, or `null` if errors were | 6993 * The line information associated with the source, or `null` if errors were |
(...skipping 4839 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11828 PendingFuture pendingFuture = | 11833 PendingFuture pendingFuture = |
11829 new PendingFuture<T>(_context, source, computeValue); | 11834 new PendingFuture<T>(_context, source, computeValue); |
11830 if (!pendingFuture.evaluate(sourceEntry)) { | 11835 if (!pendingFuture.evaluate(sourceEntry)) { |
11831 _context._pendingFutureSources | 11836 _context._pendingFutureSources |
11832 .putIfAbsent(source, () => <PendingFuture>[]) | 11837 .putIfAbsent(source, () => <PendingFuture>[]) |
11833 .add(pendingFuture); | 11838 .add(pendingFuture); |
11834 } | 11839 } |
11835 return pendingFuture.future; | 11840 return pendingFuture.future; |
11836 } | 11841 } |
11837 } | 11842 } |
OLD | NEW |