Skip to main content

Module context

Module context 

Source
Expand description

Context-aware directive traversal.

This module provides DirectiveWithContext and AllDirectivesWithContextIter, which perform depth-first traversal of the config AST while tracking the parent block hierarchy (e.g., ["http", "server"]).

Obtained via Config::all_directives_with_context().

Structsยง

AllDirectivesWithContextIter
Iterator over all directives with their parent context.
DirectiveWithContext
A directive paired with its parent block context.