Skip to content

Commit e84e85d

Browse files
committed
Support parenthesized expressions
1 parent 99a4ef2 commit e84e85d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/org/klesun/deep_js_completion/resolvers/MainRes.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ object MainRes {
7777
case tern: JSConditionalExpression =>
7878
Mt.mergeTypes(List(tern.getThen, tern.getElse)
7979
.flatMap(expr => ctx.findExprType(expr)))
80+
case par: JSParenthesizedExpression =>
81+
ctx.findExprType(par.getInnerExpression)
8082
case _ => None
8183
}
8284
}

0 commit comments

Comments
 (0)