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; | |
6 | |
7 import 'dart:collection'; | 5 import 'dart:collection'; |
8 import 'dart:convert'; | 6 import 'dart:convert'; |
9 import 'dart:io'; | 7 import 'dart:io'; |
10 import 'dart:math'; | 8 import 'dart:math'; |
11 | 9 |
12 import 'package:analysis_server/protocol/protocol.dart'; | 10 import 'package:analysis_server/protocol/protocol.dart'; |
13 import 'package:analysis_server/protocol/protocol_generated.dart'; | 11 import 'package:analysis_server/protocol/protocol_generated.dart'; |
14 import 'package:analysis_server/src/analysis_server.dart'; | 12 import 'package:analysis_server/src/analysis_server.dart'; |
15 import 'package:analysis_server/src/domain_completion.dart'; | 13 import 'package:analysis_server/src/domain_completion.dart'; |
16 import 'package:analysis_server/src/domain_diagnostic.dart'; | 14 import 'package:analysis_server/src/domain_diagnostic.dart'; |
(...skipping 2731 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2748 */ | 2746 */ |
2749 static String makeLink( | 2747 static String makeLink( |
2750 String path, Map<String, String> params, String innerHtml, | 2748 String path, Map<String, String> params, String innerHtml, |
2751 [bool hasError = false]) { | 2749 [bool hasError = false]) { |
2752 Uri uri = new Uri(path: path, queryParameters: params); | 2750 Uri uri = new Uri(path: path, queryParameters: params); |
2753 String href = HTML_ESCAPE.convert(uri.toString()); | 2751 String href = HTML_ESCAPE.convert(uri.toString()); |
2754 String classAttribute = hasError ? ' class="error"' : ''; | 2752 String classAttribute = hasError ? ' class="error"' : ''; |
2755 return '<a href="$href"$classAttribute>$innerHtml</a>'; | 2753 return '<a href="$href"$classAttribute>$innerHtml</a>'; |
2756 } | 2754 } |
2757 } | 2755 } |
OLD | NEW |