OLD | NEW |
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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 import 'dart:convert'; | 5 import 'dart:convert'; |
6 import 'dart:io'; | 6 import 'dart:io'; |
7 import 'dart:math'; | 7 import 'dart:math'; |
8 | 8 |
9 import 'package:analysis_server/protocol/protocol.dart'; | 9 import 'package:analysis_server/protocol/protocol.dart'; |
10 import 'package:analysis_server/protocol/protocol_generated.dart' hide Element; | 10 import 'package:analysis_server/protocol/protocol_generated.dart'; |
11 import 'package:analysis_server/src/analysis_server.dart'; | 11 import 'package:analysis_server/src/analysis_server.dart'; |
12 import 'package:analysis_server/src/domain_completion.dart'; | 12 import 'package:analysis_server/src/domain_completion.dart'; |
13 import 'package:analysis_server/src/domain_diagnostic.dart'; | 13 import 'package:analysis_server/src/domain_diagnostic.dart'; |
14 import 'package:analysis_server/src/domain_execution.dart'; | 14 import 'package:analysis_server/src/domain_execution.dart'; |
15 import 'package:analysis_server/src/services/completion/completion_performance.d
art'; | 15 import 'package:analysis_server/src/services/completion/completion_performance.d
art'; |
16 import 'package:analysis_server/src/socket_server.dart'; | 16 import 'package:analysis_server/src/socket_server.dart'; |
17 import 'package:analysis_server/src/status/get_handler.dart'; | 17 import 'package:analysis_server/src/status/get_handler.dart'; |
18 import 'package:analyzer/exception/exception.dart'; | 18 import 'package:analyzer/exception/exception.dart'; |
19 import 'package:analyzer/file_system/file_system.dart'; | 19 import 'package:analyzer/file_system/file_system.dart'; |
20 import 'package:analyzer/instrumentation/instrumentation.dart'; | 20 import 'package:analyzer/instrumentation/instrumentation.dart'; |
(...skipping 1229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1250 String path, Map<String, String> params, String innerHtml, | 1250 String path, Map<String, String> params, String innerHtml, |
1251 [bool hasError = false]) { | 1251 [bool hasError = false]) { |
1252 Uri uri = params.isEmpty | 1252 Uri uri = params.isEmpty |
1253 ? new Uri(path: path) | 1253 ? new Uri(path: path) |
1254 : new Uri(path: path, queryParameters: params); | 1254 : new Uri(path: path, queryParameters: params); |
1255 String href = HTML_ESCAPE.convert(uri.toString()); | 1255 String href = HTML_ESCAPE.convert(uri.toString()); |
1256 String classAttribute = hasError ? ' class="error"' : ''; | 1256 String classAttribute = hasError ? ' class="error"' : ''; |
1257 return '<a href="$href" $classAttribute>$innerHtml</a>'; | 1257 return '<a href="$href" $classAttribute>$innerHtml</a>'; |
1258 } | 1258 } |
1259 } | 1259 } |
OLD | NEW |