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

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

Issue 2879273002: Make server use the common protocol classes (Closed)
Patch Set: Created 3 years, 7 months 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) 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
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 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/lib/src/status/get_handler.dart ('k') | pkg/analysis_server/test/analysis/get_errors_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698