Skip to content

Commit d58b500

Browse files
committed
Fix incorrect parsingContexts flag setting logic
1 parent a51449f commit d58b500

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/parser/jsdoc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ func (p *Parser) parseJSDocComment(parent *ast.Node, start int, end int, fullSta
133133
// +3 for leading `/**`
134134
p.scanner.ResetPos(start + 3)
135135
p.setContextFlags(ast.NodeFlagsJSDoc, true)
136-
p.parsingContexts = p.parsingContexts | ParsingContexts(PCJSDocComment)
136+
p.parsingContexts |= 1 << PCJSDocComment
137137

138138
comment := p.parseJSDocCommentWorker(start, end, fullStart, initialIndent)
139139
// move jsdoc diagnostics to jsdocDiagnostics -- for JS files only

0 commit comments

Comments
 (0)