visitAggregateFunctionInvocation method

  1. @override
void visitAggregateFunctionInvocation(
  1. AggregateFunctionInvocation e,
  2. void arg
)
override

Implementation

@override
void visitAggregateFunctionInvocation(
    AggregateFunctionInvocation e, void arg) {
  if (e.orderBy != null &&
      context.engineOptions.version < SqliteVersion.v3_44) {
    context.reportError(AnalysisError(
      type: AnalysisErrorType.notSupportedInDesiredVersion,
      message:
          'ORDER BY in aggregate functions require sqlite 3.44 or later.',
      relevantNode: e.orderBy,
    ));
  }

  super.visitAggregateFunctionInvocation(e, arg);
}