reportTypeErrorForNode method
- @Deprecated('Use reportErrorForNode(), it will convert types as well')
Report an error with the given errorCode
and arguments
. The node
is
used to compute the location of the error. The arguments are expected to
contain two or more types. Convert the types into strings by using the
display names of the types, unless there are two or more types with the
same names, in which case the extended display names of the types will be
used in order to clarify the message.
If there are not two or more types in the argument list, the method reportErrorForNode should be used instead.
Implementation
@Deprecated('Use reportErrorForNode(), it will convert types as well')
void reportTypeErrorForNode(
ErrorCode errorCode, AstNode node, List<Object> arguments) {
reportErrorForOffset(errorCode, node.offset, node.length, arguments);
}