Skip to content

Commit f95441f

Browse files
scheglovCommit Queue
authored and
Commit Queue
committed
ErrorReporter. Remove empty 'arguments' arguments.
Change-Id: I70251ec7872162f148dc6a4b5feae99faa175890 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/349632 Commit-Queue: Konstantin Shcheglov <[email protected]> Reviewed-by: Brian Wilkerson <[email protected]>
1 parent ec20773 commit f95441f

13 files changed

+0
-33
lines changed

pkg/analyzer/lib/src/dart/constant/constant_verifier.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,6 @@ class ConstantVerifier extends RecursiveAstVisitor<void> {
179179
_errorReporter.atNode(
180180
node.returnType,
181181
CompileTimeErrorCode.RECURSIVE_CONSTANT_CONSTRUCTOR,
182-
arguments: [],
183182
);
184183
}
185184

@@ -953,7 +952,6 @@ class ConstantVerifier extends RecursiveAstVisitor<void> {
953952
errorBuffer.toString(),
954953
correctionTextBuffer.toString(),
955954
],
956-
messages: [],
957955
data: correctionDataBuffer.isComplete
958956
? correctionDataBuffer.parts
959957
: null,

pkg/analyzer/lib/src/dart/constant/evaluation.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,6 @@ class ConstantEvaluationEngine {
368368
final errorNode = configuration.errorNode(node);
369369
result = InvalidConstant.forEntity(
370370
errorNode, CompileTimeErrorCode.CONST_EVAL_THROWS_EXCEPTION,
371-
arguments: [],
372371
contextMessages: [...result.contextMessages, contextMessage]);
373372
}
374373

pkg/analyzer/lib/src/dart/resolver/assignment_expression_resolver.dart

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,6 @@ class AssignmentExpressionResolver {
147147
_errorReporter.atNode(
148148
right,
149149
CompileTimeErrorCode.RECORD_LITERAL_ONE_POSITIONAL_NO_TRAILING_COMMA,
150-
arguments: [],
151150
);
152151
return;
153152
}
@@ -178,13 +177,11 @@ class AssignmentExpressionResolver {
178177
_errorReporter.atNode(
179178
methodName,
180179
CompileTimeErrorCode.USE_OF_VOID_RESULT,
181-
arguments: [],
182180
);
183181
} else {
184182
_errorReporter.atNode(
185183
expression,
186184
CompileTimeErrorCode.USE_OF_VOID_RESULT,
187-
arguments: [],
188185
);
189186
}
190187

pkg/analyzer/lib/src/dart/resolver/constructor_reference_resolver.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ class ConstructorReferenceResolver {
2626
_resolver.errorReporter.atNode(
2727
node,
2828
WarningCode.SDK_VERSION_CONSTRUCTOR_TEAROFFS,
29-
arguments: [],
3029
);
3130
}
3231
node.constructorName.accept(_resolver);
@@ -38,7 +37,6 @@ class ConstructorReferenceResolver {
3837
node,
3938
CompileTimeErrorCode
4039
.TEAROFF_OF_GENERATIVE_CONSTRUCTOR_OF_ABSTRACT_CLASS,
41-
arguments: [],
4240
);
4341
}
4442
}

pkg/analyzer/lib/src/dart/resolver/function_expression_invocation_resolver.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,13 +128,11 @@ class FunctionExpressionInvocationResolver {
128128
_errorReporter.atNode(
129129
methodName,
130130
CompileTimeErrorCode.USE_OF_VOID_RESULT,
131-
arguments: [],
132131
);
133132
} else {
134133
_errorReporter.atNode(
135134
expression,
136135
CompileTimeErrorCode.USE_OF_VOID_RESULT,
137-
arguments: [],
138136
);
139137
}
140138

pkg/analyzer/lib/src/dart/resolver/function_reference_resolver.dart

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ class FunctionReferenceResolver {
105105
_errorReporter.atNode(
106106
function,
107107
CompileTimeErrorCode.GENERIC_METHOD_TYPE_INSTANTIATION_ON_DYNAMIC,
108-
arguments: [],
109108
);
110109
node.staticType = InvalidTypeImpl.instance;
111110
return true;
@@ -275,7 +274,6 @@ class FunctionReferenceResolver {
275274
_errorReporter.atNode(
276275
node.function,
277276
CompileTimeErrorCode.DISALLOWED_TYPE_INSTANTIATION_EXPRESSION,
278-
arguments: [],
279277
);
280278
node.staticType = InvalidTypeImpl.instance;
281279
} else if (rawType is DynamicType) {
@@ -341,7 +339,6 @@ class FunctionReferenceResolver {
341339
_errorReporter.atNode(
342340
node.function,
343341
CompileTimeErrorCode.DISALLOWED_TYPE_INSTANTIATION_EXPRESSION,
344-
arguments: [],
345342
);
346343
}
347344
_resolve(node: node, rawType: rawType);
@@ -495,7 +492,6 @@ class FunctionReferenceResolver {
495492
_errorReporter.atNode(
496493
function.identifier,
497494
CompileTimeErrorCode.DISALLOWED_TYPE_INSTANTIATION_EXPRESSION,
498-
arguments: [],
499495
);
500496
}
501497
function.accept(_resolver);
@@ -537,7 +533,6 @@ class FunctionReferenceResolver {
537533
_errorReporter.atNode(
538534
node,
539535
CompileTimeErrorCode.GENERIC_METHOD_TYPE_INSTANTIATION_ON_DYNAMIC,
540-
arguments: [],
541536
);
542537
node.staticType = InvalidTypeImpl.instance;
543538
return;
@@ -565,7 +560,6 @@ class FunctionReferenceResolver {
565560
_errorReporter.atNode(
566561
function.propertyName,
567562
CompileTimeErrorCode.DISALLOWED_TYPE_INSTANTIATION_EXPRESSION,
568-
arguments: [],
569563
);
570564
}
571565

pkg/analyzer/lib/src/dart/resolver/resolution_visitor.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -977,7 +977,6 @@ class ResolutionVisitor extends RecursiveAstVisitor<void> {
977977
_errorReporter.atNode(
978978
node,
979979
WarningCode.SDK_VERSION_CONSTRUCTOR_TEAROFFS,
980-
arguments: [],
981980
);
982981
}
983982
return newNode.accept(this);

pkg/analyzer/lib/src/error/annotation_verifier.dart

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ class AnnotationVerifier {
8080
_errorReporter.atNode(
8181
node,
8282
WarningCode.INVALID_FACTORY_ANNOTATION,
83-
arguments: [],
8483
);
8584
return;
8685
}
@@ -135,7 +134,6 @@ class AnnotationVerifier {
135134
_errorReporter.atNode(
136135
node,
137136
WarningCode.INVALID_IMMUTABLE_ANNOTATION,
138-
arguments: [],
139137
);
140138
}
141139
}
@@ -153,7 +151,6 @@ class AnnotationVerifier {
153151
_errorReporter.atNode(
154152
variable,
155153
WarningCode.INVALID_INTERNAL_ANNOTATION,
156-
arguments: [],
157154
);
158155
}
159156
}
@@ -164,7 +161,6 @@ class AnnotationVerifier {
164161
_errorReporter.atNode(
165162
variable,
166163
WarningCode.INVALID_INTERNAL_ANNOTATION,
167-
arguments: [],
168164
);
169165
}
170166
}
@@ -174,20 +170,17 @@ class AnnotationVerifier {
174170
_errorReporter.atNode(
175171
node,
176172
WarningCode.INVALID_INTERNAL_ANNOTATION,
177-
arguments: [],
178173
);
179174
}
180175
} else if (parentElementIsPrivate) {
181176
_errorReporter.atNode(
182177
node,
183178
WarningCode.INVALID_INTERNAL_ANNOTATION,
184-
arguments: [],
185179
);
186180
} else if (_inPackagePublicApi) {
187181
_errorReporter.atNode(
188182
node,
189183
WarningCode.INVALID_INTERNAL_ANNOTATION,
190-
arguments: [],
191184
);
192185
}
193186
}
@@ -229,7 +222,6 @@ class AnnotationVerifier {
229222
_errorReporter.atNode(
230223
node,
231224
WarningCode.INVALID_LITERAL_ANNOTATION,
232-
arguments: [],
233225
);
234226
}
235227
}

pkg/analyzer/lib/src/error/best_practices_verifier.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,6 @@ class BestPracticesVerifier extends RecursiveAstVisitor<void> {
269269
_errorReporter.atToken(
270270
newKeyword,
271271
WarningCode.DEPRECATED_NEW_IN_COMMENT_REFERENCE,
272-
arguments: [],
273272
);
274273
}
275274
super.visitCommentReference(node);

pkg/analyzer/lib/src/error/return_type_verifier.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,6 @@ class ReturnTypeVerifier {
356356
expression,
357357
CompileTimeErrorCode
358358
.RECORD_LITERAL_ONE_POSITIONAL_NO_TRAILING_COMMA,
359-
arguments: [],
360359
);
361360
return;
362361
}

pkg/analyzer/lib/src/generated/error_detection_helpers.dart

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ mixin ErrorDetectionHelpers {
9898
expression,
9999
CompileTimeErrorCode
100100
.RECORD_LITERAL_ONE_POSITIONAL_NO_TRAILING_COMMA,
101-
arguments: [],
102101
);
103102
return;
104103
}
@@ -239,13 +238,11 @@ mixin ErrorDetectionHelpers {
239238
errorReporter.atNode(
240239
methodName,
241240
CompileTimeErrorCode.USE_OF_VOID_RESULT,
242-
arguments: [],
243241
);
244242
} else {
245243
errorReporter.atNode(
246244
expression,
247245
CompileTimeErrorCode.USE_OF_VOID_RESULT,
248-
arguments: [],
249246
);
250247
}
251248

pkg/analyzer/lib/src/generated/error_verifier.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6414,7 +6414,6 @@ class _UninstantiatedBoundChecker extends RecursiveAstVisitor<void> {
64146414
_errorReporter.atNode(
64156415
node,
64166416
CompileTimeErrorCode.NOT_INSTANTIATED_BOUND,
6417-
arguments: [],
64186417
);
64196418
}
64206419
}

pkg/analyzer/lib/src/generated/ffi_verifier.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,6 @@ class FfiVerifier extends RecursiveAstVisitor<void> {
272272
_errorReporter.atNode(
273273
name,
274274
FfiCode.FFI_NATIVE_INVALID_DUPLICATE_DEFAULT_ASSET,
275-
arguments: [],
276275
);
277276
}
278277

@@ -418,7 +417,6 @@ class FfiVerifier extends RecursiveAstVisitor<void> {
418417
_errorReporter.atNode(
419418
name,
420419
FfiCode.FFI_NATIVE_INVALID_MULTIPLE_ANNOTATIONS,
421-
arguments: [],
422420
);
423421
break;
424422
}

0 commit comments

Comments
 (0)