reportMismatches method

void reportMismatches(
  1. SqlInvocation call,
  2. AnalysisContext context
)

Implementation

void reportMismatches(SqlInvocation call, AnalysisContext context) {
  final expectedArgs = argumentCountFor(call.name.toLowerCase());

  if (expectedArgs != null) {
    final actualArgs = actualArgumentCount(call);

    if (actualArgs != expectedArgs) {
      reportArgumentCountMismatch(call, context, expectedArgs, actualArgs);
    }
  }
}