blob: 8d38f85e8b38a73432a65627ef5b6c71fa36e5b4 [file] [edit]
// Copyright (c) 2023, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
abstract class Generation<T> {
List<T> generate();
}
String enumName(String? context) => '${context ?? ''}MessagesEnum';
String indicesName(String? context) => '${context ?? ''}MessagesIndex';
String getDataFileName(String e) => e.split('.').first;