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

Side by Side Diff: pkg/analysis_server/lib/src/status/get_handler.dart

Issue 1490233007: Remove the old task model (Closed) Base URL: https://github.com/dart-lang/sdk.git@analyzer-breaking-0.27
Patch Set: Created 5 years 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 analysis_server.src.status.get_handler; 5 library analysis_server.src.status.get_handler;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:collection'; 8 import 'dart:collection';
9 import 'dart:convert'; 9 import 'dart:convert';
10 import 'dart:io'; 10 import 'dart:io';
(...skipping 12 matching lines...) Expand all
23 import 'package:analysis_server/src/services/index/store/split_store.dart'; 23 import 'package:analysis_server/src/services/index/store/split_store.dart';
24 import 'package:analysis_server/src/socket_server.dart'; 24 import 'package:analysis_server/src/socket_server.dart';
25 import 'package:analysis_server/src/status/ast_writer.dart'; 25 import 'package:analysis_server/src/status/ast_writer.dart';
26 import 'package:analysis_server/src/status/element_writer.dart'; 26 import 'package:analysis_server/src/status/element_writer.dart';
27 import 'package:analysis_server/src/utilities/average.dart'; 27 import 'package:analysis_server/src/utilities/average.dart';
28 import 'package:analyzer/file_system/file_system.dart'; 28 import 'package:analyzer/file_system/file_system.dart';
29 import 'package:analyzer/src/context/cache.dart'; 29 import 'package:analyzer/src/context/cache.dart';
30 import 'package:analyzer/src/context/context.dart' show AnalysisContextImpl; 30 import 'package:analyzer/src/context/context.dart' show AnalysisContextImpl;
31 import 'package:analyzer/src/generated/ast.dart'; 31 import 'package:analyzer/src/generated/ast.dart';
32 import 'package:analyzer/src/generated/element.dart'; 32 import 'package:analyzer/src/generated/element.dart';
33 import 'package:analyzer/src/generated/engine.dart' 33 import 'package:analyzer/src/generated/engine.dart';
34 hide AnalysisCache, AnalysisContextImpl, AnalysisTask;
35 import 'package:analyzer/src/generated/java_engine.dart'; 34 import 'package:analyzer/src/generated/java_engine.dart';
36 import 'package:analyzer/src/generated/resolver.dart'; 35 import 'package:analyzer/src/generated/resolver.dart';
37 import 'package:analyzer/src/generated/source.dart'; 36 import 'package:analyzer/src/generated/source.dart';
38 import 'package:analyzer/src/generated/utilities_collection.dart'; 37 import 'package:analyzer/src/generated/utilities_collection.dart';
39 import 'package:analyzer/src/generated/utilities_general.dart'; 38 import 'package:analyzer/src/generated/utilities_general.dart';
40 import 'package:analyzer/src/task/dart.dart'; 39 import 'package:analyzer/src/task/dart.dart';
41 import 'package:analyzer/src/task/driver.dart'; 40 import 'package:analyzer/src/task/driver.dart';
42 import 'package:analyzer/src/task/html.dart'; 41 import 'package:analyzer/src/task/html.dart';
43 import 'package:analyzer/src/task/options.dart'; 42 import 'package:analyzer/src/task/options.dart';
44 import 'package:analyzer/task/dart.dart'; 43 import 'package:analyzer/task/dart.dart';
(...skipping 1985 matching lines...) Expand 10 before | Expand all | Expand 10 after
2030 */ 2029 */
2031 static String makeLink( 2030 static String makeLink(
2032 String path, Map<String, String> params, String innerHtml, 2031 String path, Map<String, String> params, String innerHtml,
2033 [bool hasError = false]) { 2032 [bool hasError = false]) {
2034 Uri uri = new Uri(path: path, queryParameters: params); 2033 Uri uri = new Uri(path: path, queryParameters: params);
2035 String href = HTML_ESCAPE.convert(uri.toString()); 2034 String href = HTML_ESCAPE.convert(uri.toString());
2036 String classAttribute = hasError ? ' class="error"' : ''; 2035 String classAttribute = hasError ? ' class="error"' : '';
2037 return '<a href="$href"$classAttribute>$innerHtml</a>'; 2036 return '<a href="$href"$classAttribute>$innerHtml</a>';
2038 } 2037 }
2039 } 2038 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/lib/src/status/element_writer.dart ('k') | pkg/analysis_server/lib/src/status/tree_writer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698