Skip to content

Commit cb64e64

Browse files
devoncarewCommit Queue
authored and
Commit Queue
committed
[third_party/pkg] put package:dap and package:language_server_protocol under analysis
Change-Id: Ie1a48956055fa0f4ebcd85e5d2b762021fc074d7 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/370101 Commit-Queue: Devon Carew <[email protected]> Reviewed-by: Sam Rawlins <[email protected]>
1 parent d533382 commit cb64e64

File tree

12 files changed

+30
-11
lines changed

12 files changed

+30
-11
lines changed

pkg/analysis_server/lib/src/lsp/handlers/custom/handler_diagnostic_server.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class DiagnosticServerHandler
1515
Method get handlesMessage => CustomMethods.diagnosticServer;
1616

1717
@override
18-
LspJsonHandler<void> get jsonHandler => NullJsonHandler;
18+
LspJsonHandler<void> get jsonHandler => nullJsonHandler;
1919

2020
@override
2121
Future<ErrorOr<DartDiagnosticServer>> handle(

pkg/analysis_server/lib/src/lsp/handlers/custom/handler_reanalyze.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class ReanalyzeHandler extends LspMessageHandler<void, void> {
1616
Method get handlesMessage => CustomMethods.reanalyze;
1717

1818
@override
19-
LspJsonHandler<void> get jsonHandler => NullJsonHandler;
19+
LspJsonHandler<void> get jsonHandler => nullJsonHandler;
2020

2121
@override
2222
Future<ErrorOr<void>> handle(

pkg/analysis_server/lib/src/lsp/handlers/handler_exit.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class ExitMessageHandler extends LspMessageHandler<void, void> {
2121
Method get handlesMessage => Method.exit;
2222

2323
@override
24-
LspJsonHandler<void> get jsonHandler => NullJsonHandler;
24+
LspJsonHandler<void> get jsonHandler => nullJsonHandler;
2525

2626
@override
2727
Future<ErrorOr<void>> handle(

pkg/analysis_server/lib/src/lsp/handlers/handler_reject.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class RejectMessageHandler extends SharedMessageHandler<Object?, void> {
1818
super.server, this.handlesMessage, this.errorCode, this.errorMessage);
1919

2020
@override
21-
LspJsonHandler<void> get jsonHandler => NullJsonHandler;
21+
LspJsonHandler<void> get jsonHandler => nullJsonHandler;
2222

2323
@override
2424
ErrorOr<void> handle(

pkg/analysis_server/lib/src/lsp/handlers/handler_shutdown.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class ShutdownMessageHandler extends LspMessageHandler<void, void> {
1414
Method get handlesMessage => Method.shutdown;
1515

1616
@override
17-
LspJsonHandler<void> get jsonHandler => NullJsonHandler;
17+
LspJsonHandler<void> get jsonHandler => nullJsonHandler;
1818

1919
@override
2020
ErrorOr<void> handle(

pkg/analysis_server/tool/lsp_spec/generate_all.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,8 @@ $licenseComment
110110
// To regenerate the file, use the script
111111
// "pkg/analysis_server/tool/lsp_spec/generate_all.dart".
112112
113+
// ignore_for_file: constant_identifier_names
114+
113115
import 'dart:convert' show JsonEncoder;
114116
115117
import 'package:collection/collection.dart';

third_party/pkg/dap/pubspec.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,5 @@ dev_dependencies:
1616
args: any
1717
collection: any
1818
http: any
19+
lints: any
1920
path: any

third_party/pkg/language_server_protocol/lib/protocol_custom_generated.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
// To regenerate the file, use the script
2525
// "pkg/analysis_server/tool/lsp_spec/generate_all.dart".
2626

27+
// ignore_for_file: constant_identifier_names
28+
2729
import 'dart:convert' show JsonEncoder;
2830

2931
import 'package:collection/collection.dart';

third_party/pkg/language_server_protocol/lib/protocol_generated.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
// To regenerate the file, use the script
2525
// "pkg/analysis_server/tool/lsp_spec/generate_all.dart".
2626

27+
// ignore_for_file: constant_identifier_names
28+
2729
import 'dart:convert' show JsonEncoder;
2830

2931
import 'package:collection/collection.dart';

third_party/pkg/language_server_protocol/lib/protocol_special.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import 'package:language_server_protocol/protocol_generated.dart';
99

1010
const jsonRpcVersion = '2.0';
1111

12-
const NullJsonHandler = LspJsonHandler<void>(_alwaysTrue, _alwaysNull);
12+
const nullJsonHandler = LspJsonHandler<void>(_alwaysTrue, _alwaysNull);
1313

1414
/// Returns if two objects are equal, recursively checking items in
1515
/// Maps/Lists.
Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
name: language_server_protocol
2-
version: 0.0.0
32
description: >-
43
A Dart implementation of the language server protocol.
54
repository: https://github.com/dart-lang/sdk/tree/main/third_party/pkg/language_server_protocol
5+
66
publish_to: none
77

88
environment:
99
sdk: '>=3.0.0 <4.0.0'
1010

11+
# Use 'any' constraints here; we get our versions from the DEPS file.
1112
dependencies:
12-
collection: 'any'
13+
collection: any
1314

14-
dependency_overrides:
15-
collection:
16-
path: ../collection
15+
# Use 'any' constraints here; we get our versions from the DEPS file.
16+
dev_dependencies:
17+
lints: any

tools/bots/test_matrix.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2958,6 +2958,17 @@
29582958
"pkg/pkg/dartdev/test/native_assets"
29592959
]
29602960
},
2961+
{
2962+
"name": "analyze third_party/pkg authored packages",
2963+
"script": "${build_root}/dart-sdk/bin/dart",
2964+
"arguments": [
2965+
"analyze",
2966+
"--suppress-analytics",
2967+
"--fatal-infos",
2968+
"third_party/pkg/dap",
2969+
"third_party/pkg/language_server_protocol"
2970+
]
2971+
},
29612972
{
29622973
"name": "pub integration tests",
29632974
"script": "tools/bots/pub_integration_test.py",

0 commit comments

Comments
 (0)