@adguard/agtree
Version:
Tool set for working with adblock filter lists
26 lines (23 loc) • 577 B
JavaScript
/*
* AGTree v4.1.1 (build date: Thu, 23 Apr 2026 09:15:37 GMT)
* (c) 2026 Adguard Software Ltd.
* Released under the MIT license
* https://github.com/AdguardTeam/tsurlfilter/tree/master/packages/agtree#readme
*/
import { BaseGenerator } from '../base-generator.js';
/**
* Generator for value nodes.
*/
class ValueGenerator extends BaseGenerator {
/**
* Converts a value node to a string.
*
* @param node Value node.
*
* @returns Raw string.
*/
static generate(node) {
return node.value;
}
}
export { ValueGenerator };