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'; |
(...skipping 18 matching lines...) Expand all Loading... |
29 import 'package:analyzer/dart/element/visitor.dart'; | 29 import 'package:analyzer/dart/element/visitor.dart'; |
30 import 'package:analyzer/exception/exception.dart'; | 30 import 'package:analyzer/exception/exception.dart'; |
31 import 'package:analyzer/file_system/file_system.dart'; | 31 import 'package:analyzer/file_system/file_system.dart'; |
32 import 'package:analyzer/source/error_processor.dart'; | 32 import 'package:analyzer/source/error_processor.dart'; |
33 import 'package:analyzer/source/sdk_ext.dart'; | 33 import 'package:analyzer/source/sdk_ext.dart'; |
34 import 'package:analyzer/src/context/cache.dart'; | 34 import 'package:analyzer/src/context/cache.dart'; |
35 import 'package:analyzer/src/context/context.dart' show AnalysisContextImpl; | 35 import 'package:analyzer/src/context/context.dart' show AnalysisContextImpl; |
36 import 'package:analyzer/src/context/source.dart'; | 36 import 'package:analyzer/src/context/source.dart'; |
37 import 'package:analyzer/src/dart/sdk/sdk.dart'; | 37 import 'package:analyzer/src/dart/sdk/sdk.dart'; |
38 import 'package:analyzer/src/generated/engine.dart'; | 38 import 'package:analyzer/src/generated/engine.dart'; |
39 import 'package:analyzer/src/generated/error.dart'; | |
40 import 'package:analyzer/src/generated/resolver.dart'; | 39 import 'package:analyzer/src/generated/resolver.dart'; |
41 import 'package:analyzer/src/generated/sdk.dart'; | 40 import 'package:analyzer/src/generated/sdk.dart'; |
42 import 'package:analyzer/src/generated/source.dart'; | 41 import 'package:analyzer/src/generated/source.dart'; |
43 import 'package:analyzer/src/generated/utilities_collection.dart'; | 42 import 'package:analyzer/src/generated/utilities_collection.dart'; |
44 import 'package:analyzer/src/generated/utilities_general.dart'; | 43 import 'package:analyzer/src/generated/utilities_general.dart'; |
45 import 'package:analyzer/src/services/lint.dart'; | 44 import 'package:analyzer/src/services/lint.dart'; |
46 import 'package:analyzer/src/task/dart.dart'; | 45 import 'package:analyzer/src/task/dart.dart'; |
47 import 'package:analyzer/src/task/driver.dart'; | 46 import 'package:analyzer/src/task/driver.dart'; |
48 import 'package:analyzer/src/task/html.dart'; | 47 import 'package:analyzer/src/task/html.dart'; |
49 import 'package:analyzer/src/task/options.dart'; | 48 import 'package:analyzer/src/task/options.dart'; |
| 49 import 'package:analyzer/src/task/options.dart' show CONFIGURED_ERROR_PROCESSORS
; |
50 import 'package:analyzer/task/dart.dart'; | 50 import 'package:analyzer/task/dart.dart'; |
51 import 'package:analyzer/task/general.dart'; | 51 import 'package:analyzer/task/general.dart'; |
52 import 'package:analyzer/task/html.dart'; | 52 import 'package:analyzer/task/html.dart'; |
53 import 'package:analyzer/task/model.dart'; | 53 import 'package:analyzer/task/model.dart'; |
54 import 'package:plugin/plugin.dart'; | 54 import 'package:plugin/plugin.dart'; |
55 | 55 |
56 /** | 56 /** |
57 * A function that can be used to generate HTML output into the given [buffer]. | 57 * A function that can be used to generate HTML output into the given [buffer]. |
58 * The HTML that is generated must be valid (special characters must already be | 58 * The HTML that is generated must be valid (special characters must already be |
59 * encoded). | 59 * encoded). |
(...skipping 2677 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2737 */ | 2737 */ |
2738 static String makeLink( | 2738 static String makeLink( |
2739 String path, Map<String, String> params, String innerHtml, | 2739 String path, Map<String, String> params, String innerHtml, |
2740 [bool hasError = false]) { | 2740 [bool hasError = false]) { |
2741 Uri uri = new Uri(path: path, queryParameters: params); | 2741 Uri uri = new Uri(path: path, queryParameters: params); |
2742 String href = HTML_ESCAPE.convert(uri.toString()); | 2742 String href = HTML_ESCAPE.convert(uri.toString()); |
2743 String classAttribute = hasError ? ' class="error"' : ''; | 2743 String classAttribute = hasError ? ' class="error"' : ''; |
2744 return '<a href="$href"$classAttribute>$innerHtml</a>'; | 2744 return '<a href="$href"$classAttribute>$innerHtml</a>'; |
2745 } | 2745 } |
2746 } | 2746 } |
OLD | NEW |