Module: walkDeclarations

(require("walkDeclarations"))(rules, callback, testopt)

Recursively walk all declarations

Parameters:
Name Type Attributes Description
rules Object | Array

AST, array of rules, or single rule

callback function

Callback to be executed on each declaration. Arguments: (declaration, rule)

test Object <optional>

Conditions that need to be satisfied for a declaration to be visited, all optional

Properties
Name Type Description
properties string | RegExp | function | Array

Test for property names

values string | RegExp | function | Array

Test for values

rules string | RegExp | function | Array

Test for rules

Source: