static DocumentParameterExpressionBuilder() { _document = ContextType.GetProperty(nameof(IResolverContext.Document)) !; Debug.Assert(_document is not null, "Document property is missing."); }