Add code comment

This commit is contained in:
k-nasa 2021-10-10 10:10:52 +09:00
parent 545b068a77
commit 42377d3dad

View File

@ -47,6 +47,8 @@ pub(crate) fn finish_raw(self) -> (GreenNode, Vec<SyntaxError>) {
pub fn finish(self) -> Parse<SyntaxNode> {
let (green, errors) = self.finish_raw();
// NOTE Why you're disabling assertions.
// ref: https://github.com/rust-analyzer/rust-analyzer/pull/10357
if cfg!(debug_assertions) && false {
let node = SyntaxNode::new_root(green.clone());
crate::validation::validate_block_structure(&node);