mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 12:19:15 +00:00
perf(semantic): only check for jsdoc if jsdoc building is enabled
This commit is contained in:
parent
d953c85db1
commit
b234ddd47c
1 changed files with 2 additions and 1 deletions
|
|
@ -200,7 +200,8 @@ impl<'a> SemanticBuilder<'a> {
|
|||
|
||||
fn create_ast_node(&mut self, kind: AstKind<'a>) {
|
||||
let mut flags = self.current_node_flags;
|
||||
if self.jsdoc.retrieve_attached_jsdoc(&kind) {
|
||||
|
||||
if self.build_jsdoc && self.jsdoc.retrieve_attached_jsdoc(&kind) {
|
||||
flags |= NodeFlags::JSDoc;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue