@adguard/agtree
Version:
Tool set for working with adblock filter lists
28 lines (25 loc) • 714 B
JavaScript
/*
* AGTree v3.4.3 (build date: Thu, 11 Dec 2025 13:43:19 GMT)
* (c) 2025 Adguard Software Ltd.
* Released under the MIT license
* https://github.com/AdguardTeam/tsurlfilter/tree/master/packages/agtree#readme
*/
import { NotImplementedError } from '../errors/not-implemented-error.js';
/* eslint-disable @typescript-eslint/no-unused-vars */
/**
* @file Base generator class.
*/
/**
* Base class for generators. Each generator should extend this class.
*/
class BaseGenerator {
/**
* Generates a string from the AST node.
*
* @param node AST node to generate a string from.
*/
static generate(node) {
throw new NotImplementedError();
}
}
export { BaseGenerator };