Gate doc-comment tokenizing.

This commit is contained in:
Stephen Chung
2021-04-09 23:13:33 +08:00
parent 29d186b361
commit 4aaf957d73
4 changed files with 37 additions and 4 deletions

View File

@@ -758,6 +758,8 @@ pub struct Engine {
pub(crate) limits: Limits,
/// Disable doc-comments?
#[cfg(not(feature = "no_function"))]
#[cfg(feature = "metadata")]
pub(crate) disable_doc_comments: bool,
}
@@ -874,6 +876,8 @@ impl Engine {
max_map_size: None,
},
#[cfg(not(feature = "no_function"))]
#[cfg(feature = "metadata")]
disable_doc_comments: false,
};
@@ -930,6 +934,8 @@ impl Engine {
max_map_size: None,
},
#[cfg(not(feature = "no_function"))]
#[cfg(feature = "metadata")]
disable_doc_comments: false,
}
}