Version 3.11.0-86.0.dev
Merge 475efb170836736f2a888d9e8ea17088a1333f5f into dev
diff --git a/DEPS b/DEPS
index dd07112..bd57301 100644
--- a/DEPS
+++ b/DEPS
@@ -97,7 +97,7 @@
# Prefer to use hashes of binaryen that have been reviewed & rolled into g3.
"binaryen_rev" : "23f7af14bba0139e61bb8f403c4ef53dfee44023",
- "boringssl_rev": "58da9b0d721fd807279f4e3898741c92cf43bdbd",
+ "boringssl_rev": "6ac7ca19009a23230a21a55d998a5e0c931df195",
"browser-compat-data_tag": "ac8cae697014da1ff7124fba33b0b4245cc6cd1b", # v1.0.22
"cpu_features_rev": "936b9ab5515dead115606559502e3864958f7f6e",
"devtools_rev": "0327830448901920f739259364c3f2f624df5a03",
diff --git a/pkg/analysis_server/integration_test/lsp/handle_test.dart b/pkg/analysis_server/integration_test/lsp/handle_test.dart
index e691b0e..68b29cd 100644
--- a/pkg/analysis_server/integration_test/lsp/handle_test.dart
+++ b/pkg/analysis_server/integration_test/lsp/handle_test.dart
@@ -58,7 +58,7 @@
getHover(testFileUri, Position(character: 0, line: 0)),
throwsA(
isResponseError(
- ServerErrorCodes.InvalidFilePath,
+ ServerErrorCodes.invalidFilePath,
message: 'File does not exist',
),
),
diff --git a/pkg/analysis_server/lib/src/analysis_server.dart b/pkg/analysis_server/lib/src/analysis_server.dart
index 30504f2..4a2ebb3 100644
--- a/pkg/analysis_server/lib/src/analysis_server.dart
+++ b/pkg/analysis_server/lib/src/analysis_server.dart
@@ -564,7 +564,7 @@
switch (dtd?.state) {
case DtdConnectionState.Connecting || DtdConnectionState.Connected:
return lsp.error(
- lsp.ServerErrorCodes.StateError,
+ lsp.ServerErrorCodes.stateError,
'Server is already connected to DTD',
);
case DtdConnectionState.Disconnected || DtdConnectionState.Error || null:
diff --git a/pkg/analysis_server/lib/src/handler/legacy/lsp_over_legacy_handler.dart b/pkg/analysis_server/lib/src/handler/legacy/lsp_over_legacy_handler.dart
index 424235b8..28f8f0e 100644
--- a/pkg/analysis_server/lib/src/handler/legacy/lsp_over_legacy_handler.dart
+++ b/pkg/analysis_server/lib/src/handler/legacy/lsp_over_legacy_handler.dart
@@ -89,7 +89,7 @@
} catch (e) {
var errorMessage =
'An error occurred while handling ${message.method} request: $e';
- result = error(ServerErrorCodes.UnhandledError, errorMessage);
+ result = error(ServerErrorCodes.unhandledError, errorMessage);
}
var lspResponse = ResponseMessage(
diff --git a/pkg/analysis_server/lib/src/legacy_analysis_server.dart b/pkg/analysis_server/lib/src/legacy_analysis_server.dart
index 4bbf6f6..fa4b2ec 100644
--- a/pkg/analysis_server/lib/src/legacy_analysis_server.dart
+++ b/pkg/analysis_server/lib/src/legacy_analysis_server.dart
@@ -782,7 +782,7 @@
: lsp.ResponseMessage(
jsonrpc: lsp.jsonRpcVersion,
error: lsp.ResponseError(
- code: lsp.ServerErrorCodes.UnhandledError,
+ code: lsp.ServerErrorCodes.unhandledError,
message:
"The client responded to a '$method' LSP request but"
' did not include a valid response in the lspResponse field',
diff --git a/pkg/analysis_server/lib/src/lsp/constants.dart b/pkg/analysis_server/lib/src/lsp/constants.dart
index f391fca..e50a2c5 100644
--- a/pkg/analysis_server/lib/src/lsp/constants.dart
+++ b/pkg/analysis_server/lib/src/lsp/constants.dart
@@ -313,61 +313,61 @@
CodeActionKind.Source,
// We have to explicitly list this for the client to enable built-in command.
CodeActionKind.SourceOrganizeImports,
- FixAll,
- SortMembers,
+ fixAll,
+ sortMembers,
CodeActionKind.QuickFix,
CodeActionKind.Refactor,
];
- static const SortMembers = CodeActionKind('source.sortMembers');
+ static const sortMembers = CodeActionKind('source.sortMembers');
// TODO(dantup): Once this PR is merged into LSP and released, regenerated the
// LSP protocol code and swap this code CodeActionKind.SourceFixAll
// https://github.com/microsoft/language-server-protocol/pull/1308
- static const FixAll = CodeActionKind('source.fixAll');
+ static const fixAll = CodeActionKind('source.fixAll');
// TODO(dantup): Remove this in favour of CodeActionKind.RefactorMove once it
// has been added to a published LSP version.
- static const RefactorMove = CodeActionKind('refactor.move');
+ static const refactorMove = CodeActionKind('refactor.move');
}
abstract final class ServerErrorCodes {
// JSON-RPC reserves -32000 to -32099 for implementation-defined server-errors.
- static const ServerAlreadyStarted = ErrorCodes(-32000);
- static const UnhandledError = ErrorCodes(-32001);
- static const ServerAlreadyInitialized = ErrorCodes(-32002);
- static const InvalidFilePath = ErrorCodes(-32003);
- static const InvalidFileLineCol = ErrorCodes(-32004);
- static const UnknownCommand = ErrorCodes(-32005);
- static const InvalidCommandArguments = ErrorCodes(-32006);
+ static const serverAlreadyStarted = ErrorCodes(-32000);
+ static const unhandledError = ErrorCodes(-32001);
+ static const serverAlreadyInitialized = ErrorCodes(-32002);
+ static const invalidFilePath = ErrorCodes(-32003);
+ static const invalidFileLineCol = ErrorCodes(-32004);
+ static const unknownCommand = ErrorCodes(-32005);
+ static const invalidCommandArguments = ErrorCodes(-32006);
/// A file that is not part of the analyzed set.
- static const FileNotAnalyzed = ErrorCodes(-32007);
- static const FileHasErrors = ErrorCodes(-32008);
- static const ClientFailedToApplyEdit = ErrorCodes(-32009);
- static const RenameNotValid = ErrorCodes(-32010);
- static const FeatureDisabled = ErrorCodes(-32012);
+ static const fileNotAnalyzed = ErrorCodes(-32007);
+ static const fileHasErrors = ErrorCodes(-32008);
+ static const clientFailedToApplyEdit = ErrorCodes(-32009);
+ static const renameNotValid = ErrorCodes(-32010);
+ static const featureDisabled = ErrorCodes(-32012);
/// A file that is expected to be analyzed, but failed.
- static const FileAnalysisFailed = ErrorCodes(-32013);
+ static const fileAnalysisFailed = ErrorCodes(-32013);
/// Computation of a refactoring change failed.
- static const RefactoringComputeStatusFailure = ErrorCodes(-32014);
+ static const refactoringComputeStatusFailure = ErrorCodes(-32014);
/// General state error.
- static const StateError = ErrorCodes(-32015);
+ static const stateError = ErrorCodes(-32015);
/// A request was made that requires use of workspace/applyEdit but the
/// current editor does not support it.
- static const EditsUnsupportedByEditor = ErrorCodes(-32016);
+ static const editsUnsupportedByEditor = ErrorCodes(-32016);
/// An editArgument request tried to modify an invocation at a position where
/// there was no invocation.
- static const EditArgumentInvalidPosition = ErrorCodes(-32017);
+ static const editArgumentInvalidPosition = ErrorCodes(-32017);
/// An editArgument request tried to modify a parameter that does not exist or
/// is not editable.
- static const EditArgumentInvalidParameter = ErrorCodes(-32018);
+ static const editArgumentInvalidParameter = ErrorCodes(-32018);
/// An editArgument request tried to set an argument value that is not valid.
- static const EditArgumentInvalidValue = ErrorCodes(-32019);
+ static const editArgumentInvalidValue = ErrorCodes(-32019);
/// An error raised when the server detects that the server and client are out
/// of sync and cannot recover. For example if a textDocument/didChange notification
@@ -381,7 +381,7 @@
/// restart the server. However clients should be careful to not restart a
/// crashing server endlessly. VS Code for example doesn't restart a server
/// if it crashes 5 times in the last 180 seconds."
- static const ClientServerInconsistentState = ErrorCodes(-32099);
+ static const clientServerInconsistentState = ErrorCodes(-32099);
}
/// Strings used in user prompts (window/showMessageRequest).
diff --git a/pkg/analysis_server/lib/src/lsp/handlers/code_actions/dart.dart b/pkg/analysis_server/lib/src/lsp/handlers/code_actions/dart.dart
index 9d84084..8cbb8b8 100644
--- a/pkg/analysis_server/lib/src/lsp/handlers/code_actions/dart.dart
+++ b/pkg/analysis_server/lib/src/lsp/handlers/code_actions/dart.dart
@@ -520,9 +520,9 @@
}
return [
- if (shouldIncludeKind(DartCodeActionKind.SortMembers))
+ if (shouldIncludeKind(DartCodeActionKind.sortMembers))
createAction(
- DartCodeActionKind.SortMembers,
+ DartCodeActionKind.sortMembers,
'Sort Members',
Commands.sortMembers,
),
@@ -533,8 +533,8 @@
Commands.organizeImports,
),
if (serverSupportsCommand(Commands.fixAll) &&
- shouldIncludeKind(DartCodeActionKind.FixAll))
- createAction(DartCodeActionKind.FixAll, 'Fix All', Commands.fixAll),
+ shouldIncludeKind(DartCodeActionKind.fixAll))
+ createAction(DartCodeActionKind.fixAll, 'Fix All', Commands.fixAll),
];
}
diff --git a/pkg/analysis_server/lib/src/lsp/handlers/commands/abstract_refactor.dart b/pkg/analysis_server/lib/src/lsp/handlers/commands/abstract_refactor.dart
index e30019b..04ed6dd 100644
--- a/pkg/analysis_server/lib/src/lsp/handlers/commands/abstract_refactor.dart
+++ b/pkg/analysis_server/lib/src/lsp/handlers/commands/abstract_refactor.dart
@@ -139,7 +139,7 @@
return success(refactor);
}
return error(
- ServerErrorCodes.InvalidCommandArguments,
+ ServerErrorCodes.invalidCommandArguments,
'Location supplied to $commandName $kind is no longer valid',
);
@@ -155,13 +155,13 @@
return success(refactor);
}
return error(
- ServerErrorCodes.InvalidCommandArguments,
+ ServerErrorCodes.invalidCommandArguments,
'Location supplied to $commandName $kind is no longer valid',
);
default:
return error(
- ServerErrorCodes.InvalidCommandArguments,
+ ServerErrorCodes.invalidCommandArguments,
'Unknown RefactoringKind $kind was supplied to $commandName',
);
}
@@ -188,7 +188,7 @@
(parameters['options'] is! Map<String, Object?>?)) {
return ErrorOr.error(
ResponseError(
- code: ServerErrorCodes.InvalidCommandArguments,
+ code: ServerErrorCodes.invalidCommandArguments,
message:
'$commandName requires 6 parameters: '
'kind: String (RefactoringKind), '
diff --git a/pkg/analysis_server/lib/src/lsp/handlers/commands/apply_code_action.dart b/pkg/analysis_server/lib/src/lsp/handlers/commands/apply_code_action.dart
index d0b3d59..7d02488 100644
--- a/pkg/analysis_server/lib/src/lsp/handlers/commands/apply_code_action.dart
+++ b/pkg/analysis_server/lib/src/lsp/handlers/commands/apply_code_action.dart
@@ -59,7 +59,7 @@
if (!(server.editorClientCapabilities?.applyEdit ?? false)) {
return ErrorOr.error(
ResponseError(
- code: ServerErrorCodes.StateError,
+ code: ServerErrorCodes.stateError,
message: 'The editor does not support workspace/applyEdit',
),
);
@@ -99,7 +99,7 @@
if (errors.isNotEmpty) {
return ErrorOr.error(
ResponseError(
- code: ServerErrorCodes.InvalidCommandArguments,
+ code: ServerErrorCodes.invalidCommandArguments,
message:
'${Commands.applyCodeAction} requires 3 parameters: '
'textDocument: Map<String, Object?> (OptionalVersionedTextDocumentIdentifier), '
@@ -161,12 +161,12 @@
return actions.mapResult((actions) async {
return switch (actions) {
null || [] => error(
- ServerErrorCodes.InvalidCommandArguments,
+ ServerErrorCodes.invalidCommandArguments,
'The code action $kind is not valid at this location',
),
[var action] => await _applyAction(action),
[...] => error(
- ServerErrorCodes.InvalidCommandArguments,
+ ServerErrorCodes.invalidCommandArguments,
'The code action $kind is ambigious at this location',
),
};
diff --git a/pkg/analysis_server/lib/src/lsp/handlers/commands/fix_all.dart b/pkg/analysis_server/lib/src/lsp/handlers/commands/fix_all.dart
index 0c49abd..b8a7333 100644
--- a/pkg/analysis_server/lib/src/lsp/handlers/commands/fix_all.dart
+++ b/pkg/analysis_server/lib/src/lsp/handlers/commands/fix_all.dart
@@ -36,7 +36,7 @@
if (parameters['path'] is! String) {
return ErrorOr.error(
ResponseError(
- code: ServerErrorCodes.InvalidCommandArguments,
+ code: ServerErrorCodes.invalidCommandArguments,
message: '$commandName requires a Map argument containing a "path"',
),
);
diff --git a/pkg/analysis_server/lib/src/lsp/handlers/commands/fix_all_in_workspace.dart b/pkg/analysis_server/lib/src/lsp/handlers/commands/fix_all_in_workspace.dart
index 05dbcbe..d757902 100644
--- a/pkg/analysis_server/lib/src/lsp/handlers/commands/fix_all_in_workspace.dart
+++ b/pkg/analysis_server/lib/src/lsp/handlers/commands/fix_all_in_workspace.dart
@@ -43,14 +43,14 @@
if (!clientCapabilities.applyEdit) {
return error(
- ServerErrorCodes.FeatureDisabled,
+ ServerErrorCodes.featureDisabled,
'"$commandName" is only available for clients that support workspace/applyEdit',
);
}
if (!clientCapabilities.changeAnnotations) {
return error(
- ServerErrorCodes.FeatureDisabled,
+ ServerErrorCodes.featureDisabled,
'"$commandName" is only available for clients that support change annotations',
);
}
diff --git a/pkg/analysis_server/lib/src/lsp/handlers/commands/organize_imports.dart b/pkg/analysis_server/lib/src/lsp/handlers/commands/organize_imports.dart
index 9ab2912..b47d8e9 100644
--- a/pkg/analysis_server/lib/src/lsp/handlers/commands/organize_imports.dart
+++ b/pkg/analysis_server/lib/src/lsp/handlers/commands/organize_imports.dart
@@ -29,7 +29,7 @@
if (parameters['path'] is! String) {
return ErrorOr.error(
ResponseError(
- code: ServerErrorCodes.InvalidCommandArguments,
+ code: ServerErrorCodes.invalidCommandArguments,
message: '$commandName requires a Map argument containing a "path"',
),
);
@@ -58,7 +58,7 @@
}
return ErrorOr.error(
ResponseError(
- code: ServerErrorCodes.FileHasErrors,
+ code: ServerErrorCodes.fileHasErrors,
message:
'Unable to $commandName because the file contains parse errors',
data: path,
diff --git a/pkg/analysis_server/lib/src/lsp/handlers/commands/refactor_command_handler.dart b/pkg/analysis_server/lib/src/lsp/handlers/commands/refactor_command_handler.dart
index c35ebfd..74887e9 100644
--- a/pkg/analysis_server/lib/src/lsp/handlers/commands/refactor_command_handler.dart
+++ b/pkg/analysis_server/lib/src/lsp/handlers/commands/refactor_command_handler.dart
@@ -47,7 +47,7 @@
arguments == null) {
return ErrorOr.error(
ResponseError(
- code: ServerErrorCodes.InvalidCommandArguments,
+ code: ServerErrorCodes.invalidCommandArguments,
message:
'Refactoring operations require 4 parameters: '
'filePath: String, '
@@ -123,7 +123,7 @@
var reason = status.reason ?? 'Cannot compute the change. No details.';
return ErrorOr.error(
ResponseError(
- code: ServerErrorCodes.RefactoringComputeStatusFailure,
+ code: ServerErrorCodes.refactoringComputeStatusFailure,
message: reason,
),
);
@@ -141,7 +141,7 @@
if (fileResult is! FileResult) {
return ErrorOr.error(
ResponseError(
- code: ServerErrorCodes.FileAnalysisFailed,
+ code: ServerErrorCodes.fileAnalysisFailed,
message: 'Could not access "$path".',
),
);
diff --git a/pkg/analysis_server/lib/src/lsp/handlers/commands/send_workspace_edit.dart b/pkg/analysis_server/lib/src/lsp/handlers/commands/send_workspace_edit.dart
index c5cd9d6..2c1c750 100644
--- a/pkg/analysis_server/lib/src/lsp/handlers/commands/send_workspace_edit.dart
+++ b/pkg/analysis_server/lib/src/lsp/handlers/commands/send_workspace_edit.dart
@@ -37,7 +37,7 @@
if (parameters['edit'] is! Map<String, Object?>) {
return ErrorOr.error(
ResponseError(
- code: ServerErrorCodes.InvalidCommandArguments,
+ code: ServerErrorCodes.invalidCommandArguments,
message:
'$commandName requires a Map argument containing "edit" (WorkspaceEdit)',
),
diff --git a/pkg/analysis_server/lib/src/lsp/handlers/commands/simple_edit_handler.dart b/pkg/analysis_server/lib/src/lsp/handlers/commands/simple_edit_handler.dart
index 6eda21f..dd2cae2 100644
--- a/pkg/analysis_server/lib/src/lsp/handlers/commands/simple_edit_handler.dart
+++ b/pkg/analysis_server/lib/src/lsp/handlers/commands/simple_edit_handler.dart
@@ -75,7 +75,7 @@
if (editResponse.error != null) {
return error(
- ServerErrorCodes.ClientFailedToApplyEdit,
+ ServerErrorCodes.clientFailedToApplyEdit,
'Client failed to apply workspace edit for $commandName',
editResponse.error.toString(),
);
@@ -99,7 +99,7 @@
return success(null);
} else {
return error(
- ServerErrorCodes.ClientFailedToApplyEdit,
+ ServerErrorCodes.clientFailedToApplyEdit,
'Client failed to apply workspace edit for $commandName '
'(reason: $failureReason)',
workspaceEdit.toString(),
diff --git a/pkg/analysis_server/lib/src/lsp/handlers/commands/sort_members.dart b/pkg/analysis_server/lib/src/lsp/handlers/commands/sort_members.dart
index 8eea96b..310fa9a 100644
--- a/pkg/analysis_server/lib/src/lsp/handlers/commands/sort_members.dart
+++ b/pkg/analysis_server/lib/src/lsp/handlers/commands/sort_members.dart
@@ -30,7 +30,7 @@
if (parameters['path'] is! String) {
return ErrorOr.error(
ResponseError(
- code: ServerErrorCodes.InvalidCommandArguments,
+ code: ServerErrorCodes.invalidCommandArguments,
message: '$commandName requires a Map argument containing a "path"',
),
);
@@ -56,7 +56,7 @@
}
return ErrorOr.error(
ResponseError(
- code: ServerErrorCodes.FileNotAnalyzed,
+ code: ServerErrorCodes.fileNotAnalyzed,
message: '$commandName is only available for analyzed files',
),
);
@@ -71,7 +71,7 @@
}
return ErrorOr.error(
ResponseError(
- code: ServerErrorCodes.FileHasErrors,
+ code: ServerErrorCodes.fileHasErrors,
message:
'Unable to $commandName because the file contains parse errors',
data: path,
diff --git a/pkg/analysis_server/lib/src/lsp/handlers/custom/editable_arguments/handler_edit_argument.dart b/pkg/analysis_server/lib/src/lsp/handlers/custom/editable_arguments/handler_edit_argument.dart
index 8561894..5520d34 100644
--- a/pkg/analysis_server/lib/src/lsp/handlers/custom/editable_arguments/handler_edit_argument.dart
+++ b/pkg/analysis_server/lib/src/lsp/handlers/custom/editable_arguments/handler_edit_argument.dart
@@ -52,7 +52,7 @@
if (!editorClientCapabilities.applyEdit) {
return error(
- ServerErrorCodes.EditsUnsupportedByEditor,
+ ServerErrorCodes.editsUnsupportedByEditor,
'The connected editor does not support applying edits',
);
}
@@ -86,7 +86,7 @@
var invocationInfo = getInvocationInfo(result, offset);
if (invocationInfo == null) {
return error(
- ServerErrorCodes.EditArgumentInvalidPosition,
+ ServerErrorCodes.editArgumentInvalidPosition,
'No invocation was found at the provided position',
);
}
@@ -110,7 +110,7 @@
);
if (parameter == null) {
return error(
- ServerErrorCodes.EditArgumentInvalidParameter,
+ ServerErrorCodes.editArgumentInvalidParameter,
"The parameter '$parameterName' was not found in this invocation. The available parameters are ${parameters.map((p) => p.name).join(', ')}",
);
}
@@ -135,7 +135,7 @@
notEditableReason.substring(0, 1).toLowerCase() +
notEditableReason.substring(1);
return error(
- ServerErrorCodes.EditArgumentInvalidParameter,
+ ServerErrorCodes.editArgumentInvalidParameter,
"The parameter '$parameterName' is not editable because $notEditableReasonLower",
);
}
@@ -210,7 +210,7 @@
return success('null');
} else {
return error(
- ServerErrorCodes.EditArgumentInvalidValue,
+ ServerErrorCodes.editArgumentInvalidValue,
"The value for the parameter '${edit.name}' can't be null",
);
}
@@ -246,13 +246,13 @@
);
} else {
return error(
- ServerErrorCodes.EditArgumentInvalidValue,
+ ServerErrorCodes.editArgumentInvalidValue,
"The value for the parameter '${edit.name}' should be one of ${getQualifiedEnumConstantNames(element).map((v) => "'$v'").join(', ')} but was '$value'",
);
}
} else {
return error(
- ServerErrorCodes.EditArgumentInvalidValue,
+ ServerErrorCodes.editArgumentInvalidValue,
"The value for the parameter '${edit.name}' should be $type but was ${value.runtimeType}",
);
}
@@ -343,7 +343,7 @@
// Handle errors from the client.
if (editResponse.error != null) {
return error(
- ServerErrorCodes.ClientFailedToApplyEdit,
+ ServerErrorCodes.clientFailedToApplyEdit,
"The editor failed to apply the workspace edit '$editDescription'",
editResponse.error.toString(),
);
@@ -362,7 +362,7 @@
// did not apply the edit. This might be because the version has
// changed.
return error(
- ServerErrorCodes.ClientFailedToApplyEdit,
+ ServerErrorCodes.clientFailedToApplyEdit,
"The editor did not apply the workspace edit '$editDescription' "
'(reason: ${failureReason ?? 'not given'})',
workspaceEdit.toString(),
diff --git a/pkg/analysis_server/lib/src/lsp/handlers/custom/handler_diagnostic_server.dart b/pkg/analysis_server/lib/src/lsp/handlers/custom/handler_diagnostic_server.dart
index 9b7ca4c..f0d9e39 100644
--- a/pkg/analysis_server/lib/src/lsp/handlers/custom/handler_diagnostic_server.dart
+++ b/pkg/analysis_server/lib/src/lsp/handlers/custom/handler_diagnostic_server.dart
@@ -26,7 +26,7 @@
var diagnosticServer = server.diagnosticServer;
if (diagnosticServer == null) {
return error(
- ServerErrorCodes.FeatureDisabled,
+ ServerErrorCodes.featureDisabled,
'The diagnostic server is not available',
);
}
diff --git a/pkg/analysis_server/lib/src/lsp/handlers/handler_execute_command.dart b/pkg/analysis_server/lib/src/lsp/handlers/handler_execute_command.dart
index 9d68b77..1e10e37 100644
--- a/pkg/analysis_server/lib/src/lsp/handlers/handler_execute_command.dart
+++ b/pkg/analysis_server/lib/src/lsp/handlers/handler_execute_command.dart
@@ -80,14 +80,14 @@
var handler = commandHandlers[params.command];
if (handler == null) {
return error(
- ServerErrorCodes.UnknownCommand,
+ ServerErrorCodes.unknownCommand,
'${params.command} is not a valid command identifier',
);
}
if (handler.requiresTrustedCaller && !message.isTrustedCaller) {
return error(
- ServerErrorCodes.UnknownCommand,
+ ServerErrorCodes.unknownCommand,
'${params.command} can only be called by the owning process',
);
}
@@ -123,7 +123,7 @@
} else {
return ErrorOr.error(
ResponseError(
- code: ServerErrorCodes.InvalidCommandArguments,
+ code: ServerErrorCodes.invalidCommandArguments,
message: '${params.command} requires a single Map argument',
),
);
diff --git a/pkg/analysis_server/lib/src/lsp/handlers/handler_format_on_type.dart b/pkg/analysis_server/lib/src/lsp/handlers/handler_format_on_type.dart
index 1db8aa4..be9f879 100644
--- a/pkg/analysis_server/lib/src/lsp/handlers/handler_format_on_type.dart
+++ b/pkg/analysis_server/lib/src/lsp/handlers/handler_format_on_type.dart
@@ -31,7 +31,7 @@
var file = server.resourceProvider.getFile(path);
if (!file.exists) {
return error(
- ServerErrorCodes.InvalidFilePath,
+ ServerErrorCodes.invalidFilePath,
'File does not exist',
path,
);
diff --git a/pkg/analysis_server/lib/src/lsp/handlers/handler_format_range.dart b/pkg/analysis_server/lib/src/lsp/handlers/handler_format_range.dart
index 490ffc4..a821142 100644
--- a/pkg/analysis_server/lib/src/lsp/handlers/handler_format_range.dart
+++ b/pkg/analysis_server/lib/src/lsp/handlers/handler_format_range.dart
@@ -31,7 +31,7 @@
var file = server.resourceProvider.getFile(path);
if (!file.exists) {
return error(
- ServerErrorCodes.InvalidFilePath,
+ ServerErrorCodes.invalidFilePath,
'File does not exist',
path,
);
diff --git a/pkg/analysis_server/lib/src/lsp/handlers/handler_formatting.dart b/pkg/analysis_server/lib/src/lsp/handlers/handler_formatting.dart
index 7cb9ef4..90dfd81 100644
--- a/pkg/analysis_server/lib/src/lsp/handlers/handler_formatting.dart
+++ b/pkg/analysis_server/lib/src/lsp/handlers/handler_formatting.dart
@@ -30,7 +30,7 @@
var file = server.resourceProvider.getFile(path);
if (!file.exists) {
return error(
- ServerErrorCodes.InvalidFilePath,
+ ServerErrorCodes.invalidFilePath,
'File does not exist',
path,
);
diff --git a/pkg/analysis_server/lib/src/lsp/handlers/handler_rename.dart b/pkg/analysis_server/lib/src/lsp/handlers/handler_rename.dart
index afeaa7c..f5f8399 100644
--- a/pkg/analysis_server/lib/src/lsp/handlers/handler_rename.dart
+++ b/pkg/analysis_server/lib/src/lsp/handlers/handler_rename.dart
@@ -88,7 +88,7 @@
var initStatus = await refactoring.checkInitialConditions();
if (initStatus.hasFatalError) {
return error(
- ServerErrorCodes.RenameNotValid,
+ ServerErrorCodes.renameNotValid,
initStatus.problem!.message,
);
}
@@ -186,7 +186,7 @@
}
if (initStatus.hasFatalError) {
return error(
- ServerErrorCodes.RenameNotValid,
+ ServerErrorCodes.renameNotValid,
initStatus.problem!.message,
);
}
@@ -196,7 +196,7 @@
var optionsStatus = refactoring.checkNewName();
if (optionsStatus.hasError) {
return error(
- ServerErrorCodes.RenameNotValid,
+ ServerErrorCodes.renameNotValid,
optionsStatus.problem!.message,
);
}
@@ -208,7 +208,7 @@
}
if (finalStatus.hasFatalError) {
return error(
- ServerErrorCodes.RenameNotValid,
+ ServerErrorCodes.renameNotValid,
finalStatus.problem!.message,
);
} else if (finalStatus.hasError || finalStatus.hasWarning) {
@@ -217,7 +217,7 @@
// If this change would produce errors but we can't prompt the user,
// just fail with the message.
if (prompt == null) {
- return error(ServerErrorCodes.RenameNotValid, finalStatus.message!);
+ return error(ServerErrorCodes.renameNotValid, finalStatus.message!);
}
// Set the completer to complete to show that request is paused, and
diff --git a/pkg/analysis_server/lib/src/lsp/handlers/handler_states.dart b/pkg/analysis_server/lib/src/lsp/handlers/handler_states.dart
index 76af7e0..326afc4 100644
--- a/pkg/analysis_server/lib/src/lsp/handlers/handler_states.dart
+++ b/pkg/analysis_server/lib/src/lsp/handlers/handler_states.dart
@@ -160,12 +160,12 @@
InitializedStateMessageHandler(AnalysisServer server) : super(server) {
reject(
Method.initialize,
- ServerErrorCodes.ServerAlreadyInitialized,
+ ServerErrorCodes.serverAlreadyInitialized,
'Server already initialized',
);
reject(
Method.initialized,
- ServerErrorCodes.ServerAlreadyInitialized,
+ ServerErrorCodes.serverAlreadyInitialized,
'Server already initialized',
);
@@ -182,7 +182,7 @@
) : super(server) {
reject(
Method.initialize,
- ServerErrorCodes.ServerAlreadyInitialized,
+ ServerErrorCodes.serverAlreadyInitialized,
'Server already initialized',
);
registerHandler(ShutdownMessageHandler(server));
diff --git a/pkg/analysis_server/lib/src/lsp/handlers/handler_text_document_changes.dart b/pkg/analysis_server/lib/src/lsp/handlers/handler_text_document_changes.dart
index 7133602..d67edfd 100644
--- a/pkg/analysis_server/lib/src/lsp/handlers/handler_text_document_changes.dart
+++ b/pkg/analysis_server/lib/src/lsp/handlers/handler_text_document_changes.dart
@@ -57,7 +57,7 @@
// and this is a serious failure.
if (oldContents == null) {
return error(
- ServerErrorCodes.ClientServerInconsistentState,
+ ServerErrorCodes.clientServerInconsistentState,
'Unable to edit document because the file was not previously opened: $path',
);
}
diff --git a/pkg/analysis_server/lib/src/lsp/handlers/handlers.dart b/pkg/analysis_server/lib/src/lsp/handlers/handlers.dart
index f33ffca..2698923 100644
--- a/pkg/analysis_server/lib/src/lsp/handlers/handlers.dart
+++ b/pkg/analysis_server/lib/src/lsp/handlers/handlers.dart
@@ -92,7 +92,7 @@
).then((_) => server.analysisContextsRebuilt);
ErrorOr<T> analysisFailedError<T>(String path) => error<T>(
- ServerErrorCodes.FileAnalysisFailed,
+ ServerErrorCodes.fileAnalysisFailed,
'Analysis failed for file',
path,
);
@@ -125,7 +125,7 @@
}
ErrorOr<T> fileNotAnalyzedError<T>(String path) => error<T>(
- ServerErrorCodes.FileNotAnalyzed,
+ ServerErrorCodes.fileNotAnalyzed,
'File is not being analyzed',
path,
);
@@ -139,7 +139,7 @@
if (lineInfo == null) {
return error(
- ServerErrorCodes.InvalidFilePath,
+ ServerErrorCodes.invalidFilePath,
'Unable to obtain line information for file',
path,
);
@@ -170,7 +170,7 @@
if (uri == null) {
return ErrorOr<String>.error(
ResponseError(
- code: ServerErrorCodes.InvalidFilePath,
+ code: ServerErrorCodes.invalidFilePath,
message: 'Document URI was not supplied',
),
);
@@ -181,7 +181,7 @@
if (uri.scheme.isEmpty) {
return ErrorOr<String>.error(
ResponseError(
- code: ServerErrorCodes.InvalidFilePath,
+ code: ServerErrorCodes.invalidFilePath,
message: 'URI is not a valid file:// URI',
data: uri.toString(),
),
@@ -196,7 +196,7 @@
: supportedSchemes.map((scheme) => "'$scheme'").join(', ');
return ErrorOr<String>.error(
ResponseError(
- code: ServerErrorCodes.InvalidFilePath,
+ code: ServerErrorCodes.invalidFilePath,
message:
"URI scheme '${uri.scheme}' is not supported. "
'Allowed schemes are $supportedSchemesString.',
@@ -222,7 +222,7 @@
if (isWindows && filePath.startsWith(r'\')) {
return ErrorOr<String>.error(
ResponseError(
- code: ServerErrorCodes.InvalidFilePath,
+ code: ServerErrorCodes.invalidFilePath,
message:
'URI does not contain an absolute file path '
'(missing drive letter)',
@@ -237,7 +237,7 @@
// Windows if there are invalid characters.
return ErrorOr<String>.error(
ResponseError(
- code: ServerErrorCodes.InvalidFilePath,
+ code: ServerErrorCodes.invalidFilePath,
message: 'URI does not contain a valid file path',
data: uri.toString(),
),
@@ -304,7 +304,7 @@
: fileNotAnalyzedError(path);
} else if (!result.exists) {
return error(
- ServerErrorCodes.InvalidFilePath,
+ ServerErrorCodes.invalidFilePath,
'File does not exist',
path,
);
diff --git a/pkg/analysis_server/lib/src/lsp/lsp_analysis_server.dart b/pkg/analysis_server/lib/src/lsp/lsp_analysis_server.dart
index 3109793..6745a8e 100644
--- a/pkg/analysis_server/lib/src/lsp/lsp_analysis_server.dart
+++ b/pkg/analysis_server/lib/src/lsp/lsp_analysis_server.dart
@@ -559,7 +559,7 @@
sendErrorResponse(
message,
ResponseError(
- code: ServerErrorCodes.UnhandledError,
+ code: ServerErrorCodes.unhandledError,
message: errorMessage,
),
);
@@ -787,7 +787,7 @@
// Handle fatal errors where the client/server state is out of sync and we
// should not continue.
- if (error.code == ServerErrorCodes.ClientServerInconsistentState) {
+ if (error.code == ServerErrorCodes.clientServerInconsistentState) {
// Do not process any further messages.
messageHandler = FailureStateMessageHandler(this);
diff --git a/pkg/analysis_server/lib/src/lsp/lsp_socket_server.dart b/pkg/analysis_server/lib/src/lsp/lsp_socket_server.dart
index 5e819cc..fc382e8 100644
--- a/pkg/analysis_server/lib/src/lsp/lsp_socket_server.dart
+++ b/pkg/analysis_server/lib/src/lsp/lsp_socket_server.dart
@@ -58,7 +58,7 @@
void createAnalysisServer(LspServerCommunicationChannel serverChannel) {
if (analysisServer != null) {
var error = ResponseError(
- code: ServerErrorCodes.ServerAlreadyStarted,
+ code: ServerErrorCodes.serverAlreadyStarted,
message: 'Server already started',
);
serverChannel.sendNotification(
diff --git a/pkg/analysis_server/lib/src/lsp/mapping.dart b/pkg/analysis_server/lib/src/lsp/mapping.dart
index ca6f642..1a462ea 100644
--- a/pkg/analysis_server/lib/src/lsp/mapping.dart
+++ b/pkg/analysis_server/lib/src/lsp/mapping.dart
@@ -1458,8 +1458,8 @@
return ErrorOr<int>.error(
lsp.ResponseError(
code: failureIsCritical
- ? lsp.ServerErrorCodes.ClientServerInconsistentState
- : lsp.ServerErrorCodes.InvalidFileLineCol,
+ ? lsp.ServerErrorCodes.clientServerInconsistentState
+ : lsp.ServerErrorCodes.invalidFileLineCol,
message: 'Invalid line number',
data: pos.line.toString(),
),
@@ -1483,8 +1483,8 @@
return ErrorOr<int>.error(
lsp.ResponseError(
code: failureIsCritical
- ? lsp.ServerErrorCodes.ClientServerInconsistentState
- : lsp.ServerErrorCodes.InvalidFileLineCol,
+ ? lsp.ServerErrorCodes.clientServerInconsistentState
+ : lsp.ServerErrorCodes.invalidFileLineCol,
message: 'Invalid line number',
data: originalLine.toString(),
),
diff --git a/pkg/analysis_server/lib/src/services/refactoring/move_top_level_to_file.dart b/pkg/analysis_server/lib/src/services/refactoring/move_top_level_to_file.dart
index de30873..be9baee 100644
--- a/pkg/analysis_server/lib/src/services/refactoring/move_top_level_to_file.dart
+++ b/pkg/analysis_server/lib/src/services/refactoring/move_top_level_to_file.dart
@@ -41,7 +41,7 @@
bool get isExperimental => false;
@override
- CodeActionKind get kind => DartCodeActionKind.RefactorMove;
+ CodeActionKind get kind => DartCodeActionKind.refactorMove;
@override
List<CommandParameter> get parameters => [
diff --git a/pkg/analysis_server/test/lsp/code_lens/augmentations_test.dart b/pkg/analysis_server/test/lsp/code_lens/augmentations_test.dart
index ecae53e..eeaebca 100644
--- a/pkg/analysis_server/test/lsp/code_lens/augmentations_test.dart
+++ b/pkg/analysis_server/test/lsp/code_lens/augmentations_test.dart
@@ -257,7 +257,7 @@
expectNoCodeLenses(nonExistentFileUri),
throwsA(
isResponseError(
- ServerErrorCodes.InvalidFilePath,
+ ServerErrorCodes.invalidFilePath,
message: 'File does not exist',
),
),
diff --git a/pkg/analysis_server/test/lsp/commands/fix_all_in_workspace_test.dart b/pkg/analysis_server/test/lsp/commands/fix_all_in_workspace_test.dart
index a2434b1..2e49cb3 100644
--- a/pkg/analysis_server/test/lsp/commands/fix_all_in_workspace_test.dart
+++ b/pkg/analysis_server/test/lsp/commands/fix_all_in_workspace_test.dart
@@ -245,7 +245,7 @@
executeCommand(Command(command: commandId, title: 'UNUSED')),
throwsA(
isResponseError(
- ServerErrorCodes.FeatureDisabled,
+ ServerErrorCodes.featureDisabled,
message:
'"$commandName" is only available for '
'clients that support workspace/applyEdit',
@@ -262,7 +262,7 @@
executeCommand(Command(command: commandId, title: 'UNUSED')),
throwsA(
isResponseError(
- ServerErrorCodes.FeatureDisabled,
+ ServerErrorCodes.featureDisabled,
message:
'"$commandName" is only available for '
'clients that support change annotations',
diff --git a/pkg/analysis_server/test/lsp/document_highlights_test.dart b/pkg/analysis_server/test/lsp/document_highlights_test.dart
index 09ea8ab..a332d78 100644
--- a/pkg/analysis_server/test/lsp/document_highlights_test.dart
+++ b/pkg/analysis_server/test/lsp/document_highlights_test.dart
@@ -169,7 +169,7 @@
await expectLater(
request,
- throwsA(isResponseError(ServerErrorCodes.InvalidFileLineCol)),
+ throwsA(isResponseError(ServerErrorCodes.invalidFileLineCol)),
);
}
diff --git a/pkg/analysis_server/test/lsp/document_symbols_test.dart b/pkg/analysis_server/test/lsp/document_symbols_test.dart
index 27122ec..da1ae8d 100644
--- a/pkg/analysis_server/test/lsp/document_symbols_test.dart
+++ b/pkg/analysis_server/test/lsp/document_symbols_test.dart
@@ -219,7 +219,7 @@
getDocumentSymbols(mainFileUri),
throwsA(
isResponseError(
- ServerErrorCodes.FileNotAnalyzed,
+ ServerErrorCodes.fileNotAnalyzed,
message: 'File is not being analyzed',
),
),
diff --git a/pkg/analysis_server/test/lsp/format_test.dart b/pkg/analysis_server/test/lsp/format_test.dart
index 177aeb7..641bd57 100644
--- a/pkg/analysis_server/test/lsp/format_test.dart
+++ b/pkg/analysis_server/test/lsp/format_test.dart
@@ -283,7 +283,7 @@
);
await expectLater(
formatRangeRequest,
- throwsA(isResponseError(ServerErrorCodes.InvalidFileLineCol)),
+ throwsA(isResponseError(ServerErrorCodes.invalidFileLineCol)),
);
}
@@ -801,7 +801,7 @@
formatDocument(toUri(join(projectFolderPath, 'missing.dart'))),
throwsA(
isResponseError(
- ServerErrorCodes.InvalidFilePath,
+ ServerErrorCodes.invalidFilePath,
message: 'File does not exist',
),
),
@@ -818,7 +818,7 @@
),
throwsA(
isResponseError(
- ServerErrorCodes.InvalidFilePath,
+ ServerErrorCodes.invalidFilePath,
message: 'URI does not contain a valid file path',
),
),
@@ -832,7 +832,7 @@
formatDocument(Uri.parse('a:/a.dart')),
throwsA(
isResponseError(
- ServerErrorCodes.InvalidFilePath,
+ ServerErrorCodes.invalidFilePath,
message:
"URI scheme 'a' is not supported. Allowed schemes are 'file'.",
),
diff --git a/pkg/analysis_server/test/lsp/hover_test.dart b/pkg/analysis_server/test/lsp/hover_test.dart
index ab4f87d..6478524 100644
--- a/pkg/analysis_server/test/lsp/hover_test.dart
+++ b/pkg/analysis_server/test/lsp/hover_test.dart
@@ -472,7 +472,7 @@
await openFile(mainFileUri, '');
await expectLater(
() => getHover(mainFileUri, Position(line: 999, character: 999)),
- throwsA(isResponseError(ServerErrorCodes.InvalidFileLineCol)),
+ throwsA(isResponseError(ServerErrorCodes.invalidFileLineCol)),
);
}
diff --git a/pkg/analysis_server/test/lsp/initialization_test.dart b/pkg/analysis_server/test/lsp/initialization_test.dart
index e34db9c..dbdb552 100644
--- a/pkg/analysis_server/test/lsp/initialization_test.dart
+++ b/pkg/analysis_server/test/lsp/initialization_test.dart
@@ -999,7 +999,7 @@
expect(response.error, isNotNull);
expect(
response.error!.code,
- equals(ServerErrorCodes.ServerAlreadyInitialized),
+ equals(ServerErrorCodes.serverAlreadyInitialized),
);
}
diff --git a/pkg/analysis_server/test/lsp/rename_test.dart b/pkg/analysis_server/test/lsp/rename_test.dart
index 3be838e..c17351c 100644
--- a/pkg/analysis_server/test/lsp/rename_test.dart
+++ b/pkg/analysis_server/test/lsp/rename_test.dart
@@ -207,7 +207,7 @@
expect(response.id, equals(request.id));
expect(response.result, isNull);
expect(response.error, isNotNull);
- expect(response.error!.code, ServerErrorCodes.RenameNotValid);
+ expect(response.error!.code, ServerErrorCodes.renameNotValid);
expect(response.error!.message, contains('is defined in the SDK'));
}
@@ -560,7 +560,7 @@
'MyOtherClass',
supportsWindowShowMessageRequest: false,
);
- expect(error.code, equals(ServerErrorCodes.RenameNotValid));
+ expect(error.code, equals(ServerErrorCodes.renameNotValid));
expect(
error.message,
contains('Library already declares class with name \'MyOtherClass\'.'),
@@ -893,7 +893,7 @@
final a = n^ew MyClass();
''';
var error = await _test_rename_failure(content, 'not a valid class name');
- expect(error.code, equals(ServerErrorCodes.RenameNotValid));
+ expect(error.code, equals(ServerErrorCodes.renameNotValid));
expect(error.message, contains('name must not contain'));
}
@@ -902,7 +902,7 @@
class My^Class {}
''';
var error = await _test_rename_failure(content, 'MyClass');
- expect(error.code, equals(ServerErrorCodes.RenameNotValid));
+ expect(error.code, equals(ServerErrorCodes.renameNotValid));
expect(
error.message,
contains('new name must be different than the current name'),
@@ -962,7 +962,7 @@
expect(response.id, equals(request.id));
expect(response.result, isNull);
expect(response.error, isNotNull);
- expect(response.error!.code, ServerErrorCodes.RenameNotValid);
+ expect(response.error!.code, ServerErrorCodes.renameNotValid);
expect(response.error!.message, contains('is defined in the SDK'));
}
diff --git a/pkg/analysis_server/test/lsp/server_test.dart b/pkg/analysis_server/test/lsp/server_test.dart
index fd4996c..93ffe4a 100644
--- a/pkg/analysis_server/test/lsp/server_test.dart
+++ b/pkg/analysis_server/test/lsp/server_test.dart
@@ -210,7 +210,7 @@
getHover(missingFileUri, startOfDocPos),
throwsA(
isResponseError(
- ServerErrorCodes.InvalidFilePath,
+ ServerErrorCodes.invalidFilePath,
message: 'File does not exist',
),
),
@@ -226,7 +226,7 @@
),
throwsA(
isResponseError(
- ServerErrorCodes.InvalidFilePath,
+ ServerErrorCodes.invalidFilePath,
message: 'URI does not contain a valid file path',
),
),
@@ -249,7 +249,7 @@
getHover(missingDriveLetterFileUri, startOfDocPos),
throwsA(
isResponseError(
- ServerErrorCodes.InvalidFilePath,
+ ServerErrorCodes.invalidFilePath,
message:
'URI does not contain an absolute file path (missing drive letter)',
),
@@ -264,7 +264,7 @@
getHover(relativeFileUri, startOfDocPos),
throwsA(
isResponseError(
- ServerErrorCodes.InvalidFilePath,
+ ServerErrorCodes.invalidFilePath,
message:
"URI scheme 'foo' is not supported. Allowed schemes are 'file'.",
),
@@ -281,7 +281,7 @@
// 'a/b.dart' so will get the not-file-scheme error message.
throwsA(
isResponseError(
- ServerErrorCodes.InvalidFilePath,
+ ServerErrorCodes.invalidFilePath,
message: 'URI is not a valid file:// URI',
),
),
diff --git a/pkg/analysis_server/test/shared/shared_apply_code_action_tests.dart b/pkg/analysis_server/test/shared/shared_apply_code_action_tests.dart
index 3403d9d..e34a9d0 100644
--- a/pkg/analysis_server/test/shared/shared_apply_code_action_tests.dart
+++ b/pkg/analysis_server/test/shared/shared_apply_code_action_tests.dart
@@ -55,7 +55,7 @@
executeCommand(command),
throwsA(
isResponseError(
- ServerErrorCodes.InvalidCommandArguments,
+ ServerErrorCodes.invalidCommandArguments,
message:
'The code action refactor.convert.toDoubleQuotedString '
'is not valid at this location',
@@ -80,7 +80,7 @@
executeCommand(command),
throwsA(
isResponseError(
- ServerErrorCodes.StateError,
+ ServerErrorCodes.stateError,
message: 'The editor does not support workspace/applyEdit',
),
),
@@ -102,7 +102,7 @@
executeCommand(command),
throwsA(
isResponseError(
- ServerErrorCodes.InvalidCommandArguments,
+ ServerErrorCodes.invalidCommandArguments,
message:
'dart.edit.codeAction.apply requires 3 parameters: '
'textDocument: Map<String, Object?> (OptionalVersionedTextDocumentIdentifier), '
diff --git a/pkg/analysis_server/test/shared/shared_code_actions_source_tests.dart b/pkg/analysis_server/test/shared/shared_code_actions_source_tests.dart
index b993a22..da2d7e1 100644
--- a/pkg/analysis_server/test/shared/shared_code_actions_source_tests.dart
+++ b/pkg/analysis_server/test/shared/shared_code_actions_source_tests.dart
@@ -122,7 +122,7 @@
// the test helper to make consuming success results simpler).
await expectLater(
executeCommand(command),
- throwsA(isResponseError(ServerErrorCodes.FileHasErrors)),
+ throwsA(isResponseError(ServerErrorCodes.fileHasErrors)),
);
}
@@ -261,7 +261,7 @@
// the test helper to make consuming success results simpler).
await expectLater(
commandResponse,
- throwsA(isResponseError(ServerErrorCodes.ClientFailedToApplyEdit)),
+ throwsA(isResponseError(ServerErrorCodes.clientFailedToApplyEdit)),
);
}
@@ -295,7 +295,7 @@
// the test helper to make consuming success results simpler).
await expectLater(
executeCommand(command),
- throwsA(isResponseError(ServerErrorCodes.FileHasErrors)),
+ throwsA(isResponseError(ServerErrorCodes.fileHasErrors)),
);
}
@@ -381,9 +381,9 @@
hasLength(serverSupportsFixAll ? 3 : 2),
);
expect(await ofKind(CodeActionKind.SourceOrganizeImports), hasLength(1));
- expect(await ofKind(DartCodeActionKind.SortMembers), hasLength(1));
+ expect(await ofKind(DartCodeActionKind.sortMembers), hasLength(1));
expect(
- await ofKind(DartCodeActionKind.FixAll),
+ await ofKind(DartCodeActionKind.fixAll),
hasLength(serverSupportsFixAll ? 1 : 0),
);
expect(await ofKind(CodeActionKind('source.foo')), isEmpty);
diff --git a/pkg/analysis_server/test/shared/shared_dtd_tests.dart b/pkg/analysis_server/test/shared/shared_dtd_tests.dart
index c0e7949..b960448 100644
--- a/pkg/analysis_server/test/shared/shared_dtd_tests.dart
+++ b/pkg/analysis_server/test/shared/shared_dtd_tests.dart
@@ -240,7 +240,7 @@
sendConnectToDtdRequest(),
throwsA(
isResponseError(
- ServerErrorCodes.StateError,
+ ServerErrorCodes.stateError,
message: 'Server is already connected to DTD',
),
),
@@ -451,7 +451,7 @@
.having(
(e) => e.code,
'code',
- ServerErrorCodes.InvalidFilePath.toJson(),
+ ServerErrorCodes.invalidFilePath.toJson(),
)
.having((e) => e.message, 'message', 'File does not exist')
.having((e) => e.data, 'data', nonExistantFilePath);
diff --git a/pkg/analysis_server/test/shared/shared_edit_argument_tests.dart b/pkg/analysis_server/test/shared/shared_edit_argument_tests.dart
index d3a88d5..7e68841 100644
--- a/pkg/analysis_server/test/shared/shared_edit_argument_tests.dart
+++ b/pkg/analysis_server/test/shared/shared_edit_argument_tests.dart
@@ -278,7 +278,7 @@
params: '([int? x, int y = 10, int? z])',
originalArgs: '(1)',
edit: ArgumentEdit(name: 'z', newValue: 2),
- errorCode: ServerErrorCodes.EditArgumentInvalidParameter,
+ errorCode: ServerErrorCodes.editArgumentInvalidParameter,
message:
"The parameter 'z' is not editable because "
"a value for the 3rd parameter can't be added until a value for all preceding positional parameters have been added.",
@@ -290,7 +290,7 @@
params: '([int? x = 10, int? y])',
originalArgs: '()',
edit: ArgumentEdit(name: 'y', newValue: 2),
- errorCode: ServerErrorCodes.EditArgumentInvalidParameter,
+ errorCode: ServerErrorCodes.editArgumentInvalidParameter,
message:
"The parameter 'y' is not editable because "
"a value for the 2nd parameter can't be added until a value for all preceding positional parameters have been added.",
@@ -323,7 +323,7 @@
params: '(int? x, int? y, int? z)',
originalArgs: '(1)',
edit: ArgumentEdit(name: 'z', newValue: 2),
- errorCode: ServerErrorCodes.EditArgumentInvalidParameter,
+ errorCode: ServerErrorCodes.editArgumentInvalidParameter,
message:
"The parameter 'z' is not editable because "
"a value for the 3rd parameter can't be added until a value for all preceding positional parameters have been added.",
@@ -336,7 +336,7 @@
params: '(int? x, int? y)',
originalArgs: '()',
edit: ArgumentEdit(name: 'y', newValue: 2),
- errorCode: ServerErrorCodes.EditArgumentInvalidParameter,
+ errorCode: ServerErrorCodes.editArgumentInvalidParameter,
message:
"The parameter 'y' is not editable because "
"a value for the 2nd parameter can't be added until a value for all preceding positional parameters have been added.",
@@ -349,7 +349,7 @@
params: '(int? x, int? y, { int? z })',
originalArgs: '(z: 1)',
edit: ArgumentEdit(name: 'y', newValue: 2),
- errorCode: ServerErrorCodes.EditArgumentInvalidParameter,
+ errorCode: ServerErrorCodes.editArgumentInvalidParameter,
message:
"The parameter 'y' is not editable because "
"a value for the 2nd parameter can't be added until a value for all preceding positional parameters have been added.",
@@ -416,7 +416,7 @@
params: '({ bool? x })',
originalArgs: '(x: true)',
edit: ArgumentEdit(name: 'x', newValue: 'invalid'),
- errorCode: ServerErrorCodes.EditArgumentInvalidValue,
+ errorCode: ServerErrorCodes.editArgumentInvalidValue,
message: "The value for the parameter 'x' should be bool? but was String",
);
}
@@ -435,7 +435,7 @@
params: '({ required bool x })',
originalArgs: '(x: true)',
edit: ArgumentEdit(name: 'x'),
- errorCode: ServerErrorCodes.EditArgumentInvalidValue,
+ errorCode: ServerErrorCodes.editArgumentInvalidValue,
message: "The value for the parameter 'x' can't be null",
);
}
@@ -463,7 +463,7 @@
params: '({ double? x })',
originalArgs: '(x: 1.1)',
edit: ArgumentEdit(name: 'x', newValue: 'invalid'),
- errorCode: ServerErrorCodes.EditArgumentInvalidValue,
+ errorCode: ServerErrorCodes.editArgumentInvalidValue,
message:
"The value for the parameter 'x' should be double? but was String",
);
@@ -483,7 +483,7 @@
params: '({ required double x })',
originalArgs: '(x: 1.0)',
edit: ArgumentEdit(name: 'x'),
- errorCode: ServerErrorCodes.EditArgumentInvalidValue,
+ errorCode: ServerErrorCodes.editArgumentInvalidValue,
message: "The value for the parameter 'x' can't be null",
);
}
@@ -599,7 +599,7 @@
params: '({ E? x })',
originalArgs: '(x: E.one)',
edit: ArgumentEdit(name: 'x', newValue: 'invalid'),
- errorCode: ServerErrorCodes.EditArgumentInvalidValue,
+ errorCode: ServerErrorCodes.editArgumentInvalidValue,
message:
"The value for the parameter 'x' should be one of 'E.one', 'E.two' but was 'invalid'",
);
@@ -621,7 +621,7 @@
params: '({ required E x })',
originalArgs: '(x: E.one)',
edit: ArgumentEdit(name: 'x'),
- errorCode: ServerErrorCodes.EditArgumentInvalidValue,
+ errorCode: ServerErrorCodes.editArgumentInvalidValue,
message: "The value for the parameter 'x' can't be null",
);
}
@@ -654,7 +654,7 @@
params: '({ int? x })',
originalArgs: '(x: 1)',
edit: ArgumentEdit(name: 'x', newValue: 'invalid'),
- errorCode: ServerErrorCodes.EditArgumentInvalidValue,
+ errorCode: ServerErrorCodes.editArgumentInvalidValue,
message: "The value for the parameter 'x' should be int? but was String",
);
}
@@ -673,7 +673,7 @@
params: '({ required int x })',
originalArgs: '(x: 1)',
edit: ArgumentEdit(name: 'x'),
- errorCode: ServerErrorCodes.EditArgumentInvalidValue,
+ errorCode: ServerErrorCodes.editArgumentInvalidValue,
message: "The value for the parameter 'x' can't be null",
);
}
@@ -728,7 +728,7 @@
params: '({ String? x })',
originalArgs: "(x: 'a')",
edit: ArgumentEdit(name: 'x', newValue: 123),
- errorCode: ServerErrorCodes.EditArgumentInvalidValue,
+ errorCode: ServerErrorCodes.editArgumentInvalidValue,
message: "The value for the parameter 'x' should be String? but was int",
);
}
@@ -756,7 +756,7 @@
params: '({ required String x })',
originalArgs: "(x: 'a')",
edit: ArgumentEdit(name: 'x'),
- errorCode: ServerErrorCodes.EditArgumentInvalidValue,
+ errorCode: ServerErrorCodes.editArgumentInvalidValue,
message: "The value for the parameter 'x' can't be null",
);
}
@@ -858,7 +858,7 @@
params: '({ required String x })',
originalArgs: "(x: 'a')",
edit: ArgumentEdit(name: 'x'),
- errorCode: ServerErrorCodes.EditsUnsupportedByEditor,
+ errorCode: ServerErrorCodes.editsUnsupportedByEditor,
message: 'The connected editor does not support applying edits',
);
}
diff --git a/pkg/dartdev/lib/src/commands/compile.dart b/pkg/dartdev/lib/src/commands/compile.dart
index 4b32c90..2a6adab 100644
--- a/pkg/dartdev/lib/src/commands/compile.dart
+++ b/pkg/dartdev/lib/src/commands/compile.dart
@@ -765,7 +765,6 @@
--no-inline=*<noInline>*
- --traps-never-happen
-Os
'''); // end of binaryenFlagsDeferredLoading
diff --git a/runtime/tests/concurrency/stress_test_list.json b/runtime/tests/concurrency/stress_test_list.json
index 73dd207..47bed12 100644
--- a/runtime/tests/concurrency/stress_test_list.json
+++ b/runtime/tests/concurrency/stress_test_list.json
@@ -3502,7 +3502,6 @@
"../../../tests/standalone/io/process_pid_test.dart",
"../../../tests/standalone/io/process_segfault_test.dart",
"../../../tests/standalone/io/process_start_exception_test.dart",
- "../../../tests/standalone/io/raw_datagram_read_all_test.dart",
"../../../tests/standalone/io/raw_datagram_zero_length_test.dart",
"../../../tests/standalone/io/raw_server_socket_cancel_test.dart",
"../../../tests/standalone/io/raw_socket_typed_data_test.dart",
diff --git a/tools/VERSION b/tools/VERSION
index 3024f22..c59388e 100644
--- a/tools/VERSION
+++ b/tools/VERSION
@@ -27,5 +27,5 @@
MAJOR 3
MINOR 11
PATCH 0
-PRERELEASE 85
+PRERELEASE 86
PRERELEASE_PATCH 0