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

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

Issue 3004523003: Remove more references to the old plugin system (Closed)
Patch Set: Created 3 years, 3 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
« no previous file with comments | « pkg/analysis_server/lib/src/socket_server.dart ('k') | pkg/analysis_server/lib/starter.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2017, 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:async'; 5 import 'dart:async';
6 import 'dart:convert'; 6 import 'dart:convert';
7 import 'dart:io'; 7 import 'dart:io';
8 8
9 import 'package:analysis_server/protocol/protocol_generated.dart'; 9 import 'package:analysis_server/protocol/protocol_generated.dart';
10 import 'package:analysis_server/src/analysis_server.dart'; 10 import 'package:analysis_server/src/analysis_server.dart';
(...skipping 16 matching lines...) Expand all
27 import 'package:analyzer/src/dart/analysis/driver.dart'; 27 import 'package:analyzer/src/dart/analysis/driver.dart';
28 import 'package:analyzer/src/dart/analysis/file_state.dart'; 28 import 'package:analyzer/src/dart/analysis/file_state.dart';
29 import 'package:analyzer/src/dart/sdk/sdk.dart'; 29 import 'package:analyzer/src/dart/sdk/sdk.dart';
30 import 'package:analyzer/src/generated/engine.dart' hide AnalysisResult; 30 import 'package:analyzer/src/generated/engine.dart' hide AnalysisResult;
31 import 'package:analyzer/src/generated/sdk.dart'; 31 import 'package:analyzer/src/generated/sdk.dart';
32 import 'package:analyzer/src/generated/source.dart'; 32 import 'package:analyzer/src/generated/source.dart';
33 import 'package:analyzer/src/generated/utilities_general.dart'; 33 import 'package:analyzer/src/generated/utilities_general.dart';
34 import 'package:analyzer/src/lint/linter.dart'; 34 import 'package:analyzer/src/lint/linter.dart';
35 import 'package:analyzer/src/lint/registry.dart'; 35 import 'package:analyzer/src/lint/registry.dart';
36 import 'package:analyzer/src/services/lint.dart'; 36 import 'package:analyzer/src/services/lint.dart';
37 import 'package:plugin/plugin.dart';
38 37
39 final String kCustomCss = ''' 38 final String kCustomCss = '''
40 .lead, .page-title+.markdown-body>p:first-child { 39 .lead, .page-title+.markdown-body>p:first-child {
41 margin-bottom: 30px; 40 margin-bottom: 30px;
42 font-size: 20px; 41 font-size: 20px;
43 font-weight: 300; 42 font-weight: 300;
44 color: #555; 43 color: #555;
45 } 44 }
46 45
47 .container { 46 .container {
(...skipping 959 matching lines...) Expand 10 before | Expand all | Expand 10 after
1007 h3('Analysis plugins'); 1006 h3('Analysis plugins');
1008 List<PluginInfo> analysisPlugins = server.pluginManager.plugins; 1007 List<PluginInfo> analysisPlugins = server.pluginManager.plugins;
1009 1008
1010 if (analysisPlugins.isEmpty) { 1009 if (analysisPlugins.isEmpty) {
1011 blankslate('No analysis plugins active.'); 1010 blankslate('No analysis plugins active.');
1012 } else { 1011 } else {
1013 ul(analysisPlugins, (PluginInfo p) { 1012 ul(analysisPlugins, (PluginInfo p) {
1014 buf.writeln('${p.data.name} ${p.pluginId} (${p.data.version})'); 1013 buf.writeln('${p.data.name} ${p.pluginId} (${p.data.version})');
1015 }); 1014 });
1016 } 1015 }
1017
1018 h3('Analyzer plugins');
1019 void writePlugin(Plugin plugin) {
1020 buf.write(plugin.uniqueIdentifier);
1021 buf.write(' (');
1022 buf.write(plugin.runtimeType);
1023 buf.write(')');
1024 }
1025
1026 List<Plugin> plugins = [
1027 AnalysisEngine.instance.enginePlugin,
1028 ];
1029 plugins.addAll(server.userDefinedPlugins);
1030 ul(plugins, writePlugin);
1031 } 1016 }
1032 } 1017 }
1033 1018
1034 class ProfilePage extends DiagnosticPageWithNav { 1019 class ProfilePage extends DiagnosticPageWithNav {
1035 ProfilePage(DiagnosticsSite site) 1020 ProfilePage(DiagnosticsSite site)
1036 : super(site, 'profile', 'Profiling Info', 1021 : super(site, 'profile', 'Profiling Info',
1037 description: 'Profiling performance tag data.'); 1022 description: 'Profiling performance tag data.');
1038 1023
1039 @override 1024 @override
1040 void generateContent(Map<String, String> params) { 1025 void generateContent(Map<String, String> params) {
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
1198 h3('Execution domain'); 1183 h3('Execution domain');
1199 ul(ExecutionService.VALUES, (item) { 1184 ul(ExecutionService.VALUES, (item) {
1200 if (domain.onFileAnalyzed != null) { 1185 if (domain.onFileAnalyzed != null) {
1201 buf.write('$item (has subscriptions)'); 1186 buf.write('$item (has subscriptions)');
1202 } else { 1187 } else {
1203 buf.write('$item (no subscriptions)'); 1188 buf.write('$item (no subscriptions)');
1204 } 1189 }
1205 }); 1190 });
1206 } 1191 }
1207 } 1192 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/lib/src/socket_server.dart ('k') | pkg/analysis_server/lib/starter.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698