ErrorReporter. Remove empty 'arguments' arguments.

Change-Id: I70251ec7872162f148dc6a4b5feae99faa175890
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/349632
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
This commit is contained in:
Konstantin Shcheglov 2024-02-02 16:55:00 +00:00 committed by Commit Queue
parent ec20773558
commit f95441f707
13 changed files with 0 additions and 33 deletions

View file

@ -179,7 +179,6 @@ class ConstantVerifier extends RecursiveAstVisitor<void> {
_errorReporter.atNode(
node.returnType,
CompileTimeErrorCode.RECURSIVE_CONSTANT_CONSTRUCTOR,
arguments: [],
);
}
@ -953,7 +952,6 @@ class ConstantVerifier extends RecursiveAstVisitor<void> {
errorBuffer.toString(),
correctionTextBuffer.toString(),
],
messages: [],
data: correctionDataBuffer.isComplete
? correctionDataBuffer.parts
: null,

View file

@ -368,7 +368,6 @@ class ConstantEvaluationEngine {
final errorNode = configuration.errorNode(node);
result = InvalidConstant.forEntity(
errorNode, CompileTimeErrorCode.CONST_EVAL_THROWS_EXCEPTION,
arguments: [],
contextMessages: [...result.contextMessages, contextMessage]);
}

View file

@ -147,7 +147,6 @@ class AssignmentExpressionResolver {
_errorReporter.atNode(
right,
CompileTimeErrorCode.RECORD_LITERAL_ONE_POSITIONAL_NO_TRAILING_COMMA,
arguments: [],
);
return;
}
@ -178,13 +177,11 @@ class AssignmentExpressionResolver {
_errorReporter.atNode(
methodName,
CompileTimeErrorCode.USE_OF_VOID_RESULT,
arguments: [],
);
} else {
_errorReporter.atNode(
expression,
CompileTimeErrorCode.USE_OF_VOID_RESULT,
arguments: [],
);
}

View file

@ -26,7 +26,6 @@ class ConstructorReferenceResolver {
_resolver.errorReporter.atNode(
node,
WarningCode.SDK_VERSION_CONSTRUCTOR_TEAROFFS,
arguments: [],
);
}
node.constructorName.accept(_resolver);
@ -38,7 +37,6 @@ class ConstructorReferenceResolver {
node,
CompileTimeErrorCode
.TEAROFF_OF_GENERATIVE_CONSTRUCTOR_OF_ABSTRACT_CLASS,
arguments: [],
);
}
}

View file

@ -128,13 +128,11 @@ class FunctionExpressionInvocationResolver {
_errorReporter.atNode(
methodName,
CompileTimeErrorCode.USE_OF_VOID_RESULT,
arguments: [],
);
} else {
_errorReporter.atNode(
expression,
CompileTimeErrorCode.USE_OF_VOID_RESULT,
arguments: [],
);
}

View file

@ -105,7 +105,6 @@ class FunctionReferenceResolver {
_errorReporter.atNode(
function,
CompileTimeErrorCode.GENERIC_METHOD_TYPE_INSTANTIATION_ON_DYNAMIC,
arguments: [],
);
node.staticType = InvalidTypeImpl.instance;
return true;
@ -275,7 +274,6 @@ class FunctionReferenceResolver {
_errorReporter.atNode(
node.function,
CompileTimeErrorCode.DISALLOWED_TYPE_INSTANTIATION_EXPRESSION,
arguments: [],
);
node.staticType = InvalidTypeImpl.instance;
} else if (rawType is DynamicType) {
@ -341,7 +339,6 @@ class FunctionReferenceResolver {
_errorReporter.atNode(
node.function,
CompileTimeErrorCode.DISALLOWED_TYPE_INSTANTIATION_EXPRESSION,
arguments: [],
);
}
_resolve(node: node, rawType: rawType);
@ -495,7 +492,6 @@ class FunctionReferenceResolver {
_errorReporter.atNode(
function.identifier,
CompileTimeErrorCode.DISALLOWED_TYPE_INSTANTIATION_EXPRESSION,
arguments: [],
);
}
function.accept(_resolver);
@ -537,7 +533,6 @@ class FunctionReferenceResolver {
_errorReporter.atNode(
node,
CompileTimeErrorCode.GENERIC_METHOD_TYPE_INSTANTIATION_ON_DYNAMIC,
arguments: [],
);
node.staticType = InvalidTypeImpl.instance;
return;
@ -565,7 +560,6 @@ class FunctionReferenceResolver {
_errorReporter.atNode(
function.propertyName,
CompileTimeErrorCode.DISALLOWED_TYPE_INSTANTIATION_EXPRESSION,
arguments: [],
);
}

View file

@ -977,7 +977,6 @@ class ResolutionVisitor extends RecursiveAstVisitor<void> {
_errorReporter.atNode(
node,
WarningCode.SDK_VERSION_CONSTRUCTOR_TEAROFFS,
arguments: [],
);
}
return newNode.accept(this);

View file

@ -80,7 +80,6 @@ class AnnotationVerifier {
_errorReporter.atNode(
node,
WarningCode.INVALID_FACTORY_ANNOTATION,
arguments: [],
);
return;
}
@ -135,7 +134,6 @@ class AnnotationVerifier {
_errorReporter.atNode(
node,
WarningCode.INVALID_IMMUTABLE_ANNOTATION,
arguments: [],
);
}
}
@ -153,7 +151,6 @@ class AnnotationVerifier {
_errorReporter.atNode(
variable,
WarningCode.INVALID_INTERNAL_ANNOTATION,
arguments: [],
);
}
}
@ -164,7 +161,6 @@ class AnnotationVerifier {
_errorReporter.atNode(
variable,
WarningCode.INVALID_INTERNAL_ANNOTATION,
arguments: [],
);
}
}
@ -174,20 +170,17 @@ class AnnotationVerifier {
_errorReporter.atNode(
node,
WarningCode.INVALID_INTERNAL_ANNOTATION,
arguments: [],
);
}
} else if (parentElementIsPrivate) {
_errorReporter.atNode(
node,
WarningCode.INVALID_INTERNAL_ANNOTATION,
arguments: [],
);
} else if (_inPackagePublicApi) {
_errorReporter.atNode(
node,
WarningCode.INVALID_INTERNAL_ANNOTATION,
arguments: [],
);
}
}
@ -229,7 +222,6 @@ class AnnotationVerifier {
_errorReporter.atNode(
node,
WarningCode.INVALID_LITERAL_ANNOTATION,
arguments: [],
);
}
}

View file

@ -269,7 +269,6 @@ class BestPracticesVerifier extends RecursiveAstVisitor<void> {
_errorReporter.atToken(
newKeyword,
WarningCode.DEPRECATED_NEW_IN_COMMENT_REFERENCE,
arguments: [],
);
}
super.visitCommentReference(node);

View file

@ -356,7 +356,6 @@ class ReturnTypeVerifier {
expression,
CompileTimeErrorCode
.RECORD_LITERAL_ONE_POSITIONAL_NO_TRAILING_COMMA,
arguments: [],
);
return;
}

View file

@ -98,7 +98,6 @@ mixin ErrorDetectionHelpers {
expression,
CompileTimeErrorCode
.RECORD_LITERAL_ONE_POSITIONAL_NO_TRAILING_COMMA,
arguments: [],
);
return;
}
@ -239,13 +238,11 @@ mixin ErrorDetectionHelpers {
errorReporter.atNode(
methodName,
CompileTimeErrorCode.USE_OF_VOID_RESULT,
arguments: [],
);
} else {
errorReporter.atNode(
expression,
CompileTimeErrorCode.USE_OF_VOID_RESULT,
arguments: [],
);
}

View file

@ -6414,7 +6414,6 @@ class _UninstantiatedBoundChecker extends RecursiveAstVisitor<void> {
_errorReporter.atNode(
node,
CompileTimeErrorCode.NOT_INSTANTIATED_BOUND,
arguments: [],
);
}
}

View file

@ -272,7 +272,6 @@ class FfiVerifier extends RecursiveAstVisitor<void> {
_errorReporter.atNode(
name,
FfiCode.FFI_NATIVE_INVALID_DUPLICATE_DEFAULT_ASSET,
arguments: [],
);
}
@ -418,7 +417,6 @@ class FfiVerifier extends RecursiveAstVisitor<void> {
_errorReporter.atNode(
name,
FfiCode.FFI_NATIVE_INVALID_MULTIPLE_ANNOTATIONS,
arguments: [],
);
break;
}