mirror of
https://github.com/dart-lang/sdk
synced 2024-09-04 16:03:44 +00:00
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:
parent
ec20773558
commit
f95441f707
|
@ -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,
|
||||
|
|
|
@ -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]);
|
||||
}
|
||||
|
||||
|
|
|
@ -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: [],
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -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: [],
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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: [],
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -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: [],
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -977,7 +977,6 @@ class ResolutionVisitor extends RecursiveAstVisitor<void> {
|
|||
_errorReporter.atNode(
|
||||
node,
|
||||
WarningCode.SDK_VERSION_CONSTRUCTOR_TEAROFFS,
|
||||
arguments: [],
|
||||
);
|
||||
}
|
||||
return newNode.accept(this);
|
||||
|
|
|
@ -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: [],
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -269,7 +269,6 @@ class BestPracticesVerifier extends RecursiveAstVisitor<void> {
|
|||
_errorReporter.atToken(
|
||||
newKeyword,
|
||||
WarningCode.DEPRECATED_NEW_IN_COMMENT_REFERENCE,
|
||||
arguments: [],
|
||||
);
|
||||
}
|
||||
super.visitCommentReference(node);
|
||||
|
|
|
@ -356,7 +356,6 @@ class ReturnTypeVerifier {
|
|||
expression,
|
||||
CompileTimeErrorCode
|
||||
.RECORD_LITERAL_ONE_POSITIONAL_NO_TRAILING_COMMA,
|
||||
arguments: [],
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -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: [],
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -6414,7 +6414,6 @@ class _UninstantiatedBoundChecker extends RecursiveAstVisitor<void> {
|
|||
_errorReporter.atNode(
|
||||
node,
|
||||
CompileTimeErrorCode.NOT_INSTANTIATED_BOUND,
|
||||
arguments: [],
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue