Don't supply arguments when reporting CONST_DEFERRED_CLASS.

This error message doesn't take any arguments.

Change-Id: I5ff2e43c6d6877189ad8cf7cefded72b4867a309
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/213727
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
This commit is contained in:
Paul Berry 2021-09-17 15:50:51 +00:00 committed by commit-bot@chromium.org
parent f8b1161496
commit eead1f7f5c

View file

@ -1987,9 +1987,7 @@ class ErrorVerifier extends RecursiveAstVisitor<void>
ConstructorName constructorName, TypeName typeName) {
if (typeName.isDeferred) {
errorReporter.reportErrorForNode(
CompileTimeErrorCode.CONST_DEFERRED_CLASS,
constructorName,
[typeName.name.name]);
CompileTimeErrorCode.CONST_DEFERRED_CLASS, constructorName);
}
}