reportAtPubNode method
Diagnostic
reportAtPubNode(
- PubspecNode node, {
- List<
Object> arguments = const [], - List<
DiagnosticMessage> contextMessages = const [],
Reports a diagnostic at Pubspec node, with message arguments and
contextMessages.
The arguments are interpolated into the DiagnosticCode.problemMessage
and DiagnosticCode.correctionMessage text. If present, the first
argument (at position 0) replaces each instance of {0}, the second
argument (at position 1) replaces each instance of {1}, etc.
Implementation
Diagnostic reportAtPubNode(
PubspecNode node, {
List<Object> arguments = const [],
List<DiagnosticMessage> contextMessages = const [],
}) => _reportAtPubNode(
node as PubspecNodeImpl,
diagnosticCode: diagnosticCode,
arguments: arguments,
contextMessages: contextMessages,
);