(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
|
- Source: