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 library analysis_server.src.status.get_handler; | 5 library analysis_server.src.status.get_handler; |
6 | 6 |
7 import 'dart:collection'; | 7 import 'dart:collection'; |
8 import 'dart:convert'; | 8 import 'dart:convert'; |
9 import 'dart:io'; | 9 import 'dart:io'; |
10 import 'dart:math'; | 10 import 'dart:math'; |
11 | 11 |
12 import 'package:analysis_server/protocol/protocol.dart'; | 12 import 'package:analysis_server/protocol/protocol.dart'; |
13 import 'package:analysis_server/protocol/protocol_generated.dart' hide Element; | 13 import 'package:analysis_server/protocol/protocol_generated.dart'; |
14 import 'package:analysis_server/src/analysis_server.dart'; | 14 import 'package:analysis_server/src/analysis_server.dart'; |
15 import 'package:analysis_server/src/domain_completion.dart'; | 15 import 'package:analysis_server/src/domain_completion.dart'; |
16 import 'package:analysis_server/src/domain_diagnostic.dart'; | 16 import 'package:analysis_server/src/domain_diagnostic.dart'; |
17 import 'package:analysis_server/src/domain_execution.dart'; | 17 import 'package:analysis_server/src/domain_execution.dart'; |
18 import 'package:analysis_server/src/operation/operation.dart'; | 18 import 'package:analysis_server/src/operation/operation.dart'; |
19 import 'package:analysis_server/src/operation/operation_analysis.dart'; | 19 import 'package:analysis_server/src/operation/operation_analysis.dart'; |
20 import 'package:analysis_server/src/operation/operation_queue.dart'; | 20 import 'package:analysis_server/src/operation/operation_queue.dart'; |
21 import 'package:analysis_server/src/services/completion/completion_performance.d
art'; | 21 import 'package:analysis_server/src/services/completion/completion_performance.d
art'; |
22 import 'package:analysis_server/src/socket_server.dart'; | 22 import 'package:analysis_server/src/socket_server.dart'; |
23 import 'package:analysis_server/src/status/ast_writer.dart'; | 23 import 'package:analysis_server/src/status/ast_writer.dart'; |
(...skipping 2724 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2748 */ | 2748 */ |
2749 static String makeLink( | 2749 static String makeLink( |
2750 String path, Map<String, String> params, String innerHtml, | 2750 String path, Map<String, String> params, String innerHtml, |
2751 [bool hasError = false]) { | 2751 [bool hasError = false]) { |
2752 Uri uri = new Uri(path: path, queryParameters: params); | 2752 Uri uri = new Uri(path: path, queryParameters: params); |
2753 String href = HTML_ESCAPE.convert(uri.toString()); | 2753 String href = HTML_ESCAPE.convert(uri.toString()); |
2754 String classAttribute = hasError ? ' class="error"' : ''; | 2754 String classAttribute = hasError ? ' class="error"' : ''; |
2755 return '<a href="$href"$classAttribute>$innerHtml</a>'; | 2755 return '<a href="$href"$classAttribute>$innerHtml</a>'; |
2756 } | 2756 } |
2757 } | 2757 } |
OLD | NEW |