Gate doc-comment tokenizing.
This commit is contained in:
@@ -33,7 +33,11 @@ impl Engine {
|
||||
pub fn optimization_level(&self) -> crate::OptimizationLevel {
|
||||
self.optimization_level
|
||||
}
|
||||
/// Enable/disable doc-comments.
|
||||
/// _(METADATA)_ Enable/disable doc-comments for functions.
|
||||
/// Exported under the `metadata` feature only.
|
||||
/// Not available under `no_function`.
|
||||
#[cfg(not(feature = "no_function"))]
|
||||
#[cfg(feature = "metadata")]
|
||||
#[inline(always)]
|
||||
pub fn enable_doc_comments(&mut self, enable: bool) -> &mut Self {
|
||||
self.disable_doc_comments = !enable;
|
||||
|
Reference in New Issue
Block a user