TokenProcessingState.currentDepth

size_t currentDepth() const @safe pure nothrow

Returns the current element nesting depth.

This equals the length of the element stack.