Skip to content

Commit ffbfa20

Browse files
author
Dart CI
committed
Version 2.10.0-105.0.dev
Merge commit 'f8fbefd951af2a21f5f85bb6d711b9d0bf636af2' into 'dev'
2 parents a2c9cae + f8fbefd commit ffbfa20

File tree

52 files changed

+498
-97
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+498
-97
lines changed

DEPS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ vars = {
9797
"dart_style_tag": "1.3.7", # Please see the note above before updating.
9898

9999
"chromedriver_tag": "83.0.4103.39",
100-
"dartdoc_rev" : "291ebc50072746bc59ccab59115a298915218428",
100+
"dartdoc_rev" : "b039e21a7226b61ca2de7bd6c7a07fc77d4f64a9",
101101
"ffi_rev": "454ab0f9ea6bd06942a983238d8a6818b1357edb",
102102
"fixnum_rev": "16d3890c6dc82ca629659da1934e412292508bba",
103103
"glob_rev": "e9f4e6b7ae8abe5071461cf8f47191bb19cf7ef6",

pkg/analysis_server/lib/src/services/correction/bulk_fix_processor.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import 'package:analysis_server/plugin/edit/fix/fix_dart.dart';
88
import 'package:analysis_server/src/services/correction/change_workspace.dart';
99
import 'package:analysis_server/src/services/correction/dart/abstract_producer.dart';
1010
import 'package:analysis_server/src/services/correction/dart/add_await.dart';
11+
import 'package:analysis_server/src/services/correction/dart/add_const.dart';
1112
import 'package:analysis_server/src/services/correction/dart/add_override.dart';
1213
import 'package:analysis_server/src/services/correction/dart/convert_add_all_to_spread.dart';
1314
import 'package:analysis_server/src/services/correction/dart/convert_conditional_expression_to_if_element.dart';
@@ -88,6 +89,7 @@ class BulkFixProcessor {
8889
LintNames.prefer_adjacent_string_concatenation: RemoveOperator.newInstance,
8990
LintNames.prefer_conditional_assignment:
9091
ReplaceWithConditionalAssignment.newInstance,
92+
LintNames.prefer_const_constructors_in_immutables: AddConst.newInstance,
9193
LintNames.prefer_const_declarations: ReplaceFinalWithConst.newInstance,
9294
LintNames.prefer_contains: ConvertToContains.newInstance,
9395
LintNames.prefer_equal_for_default_values:

pkg/analysis_server/lib/src/services/correction/fix/data_driven/transform_set_error_code.dart

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,16 @@ import 'package:analyzer/error/error.dart';
88
/// An error code representing a problem in a file containing an encoding of a
99
/// transform set.
1010
class TransformSetErrorCode extends ErrorCode {
11+
/**
12+
* Parameters:
13+
* 0: the key with which the value is associated
14+
* 1: the expected type of the value
15+
* 0: the actual type of the value
16+
*/
17+
static const TransformSetErrorCode invalidValue = TransformSetErrorCode(
18+
'invalidValue',
19+
"The value of '{0}' should be of type '{1}' but is of type '{2}'.");
20+
1121
/**
1222
* Parameters:
1323
* 0: the unsupported key
@@ -20,7 +30,7 @@ class TransformSetErrorCode extends ErrorCode {
2030
* 0: the message produced by the YAML parser
2131
*/
2232
static const TransformSetErrorCode yamlSyntaxError =
23-
TransformSetErrorCode('yamlSyntaxError', "{0}");
33+
TransformSetErrorCode('yamlSyntaxError', "Parse error: {0}");
2434

2535
/// Initialize a newly created error code.
2636
const TransformSetErrorCode(String name, String message,

0 commit comments

Comments
 (0)