klesun / deep-js-completion

A Webstorm/IDEA plugin for js object property completion inferred from a complex context
MIT License
11 stars 0 forks source link

Moving to iterators #11

Closed klesun closed 5 years ago

klesun commented 5 years ago

Got an exception when tried to Ctrl + B on UpdateApolloSessionStateAction.execute: Stack Trace:

Worker exited due to exception

java.lang.RuntimeException: stack too long, fucking hamburger isPlainObject ctx: isPlainObject(val)
    at org.klesun.deep_js_completion.resolvers.MainRes$.$anonfun$resolveIn$20(MainRes.scala:73)
    at scala.collection.TraversableLike.$anonfun$flatMap$1(TraversableLike.scala:244)
    at scala.collection.immutable.List.foreach(List.scala:392)
    at scala.collection.TraversableLike.flatMap(TraversableLike.scala:244)
    at scala.collection.TraversableLike.flatMap$(TraversableLike.scala:241)
    at scala.collection.immutable.List.flatMap(List.scala:355)
    at org.klesun.deep_js_completion.resolvers.MainRes$.$anonfun$resolveIn$19(MainRes.scala:71)
    at org.klesun.deep_js_completion.structures.JSDeepFunctionTypeImpl.getReturnType(JSDeepFunctionTypeImpl.scala:52)
    at org.klesun.deep_js_completion.helpers.Mt$.$anonfun$getReturnType$1(Mt.scala:128)
    at scala.collection.Iterator$$anon$11.nextCur(Iterator.scala:484)
    at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:490)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:488)
    at scala.collection.Iterator$ConcatIterator.hasNext(Iterator.scala:222)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:488)
    at scala.collection.Iterator$$anon$12.hasNext(Iterator.scala:511)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at org.klesun.lang.Lang$.$anonfun$frs$2(Lang.scala:248)
    at org.klesun.lang.Lang$.$anonfun$frs$2$adapted(Lang.scala:248)
    at scala.collection.Iterator$$anon$12.hasNext(Iterator.scala:513)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at org.klesun.lang.Lang$It.lift(Lang.scala:227)
    at org.klesun.lang.Lang$.frs(Lang.scala:249)
    at org.klesun.deep_js_completion.contexts.SearchCtx.findExprType(SearchCtx.scala:118)
    at org.klesun.deep_js_completion.contexts.ExprCtx.findExprType(ExprCtx.scala:34)
    at org.klesun.deep_js_completion.resolvers.MainRes$.$anonfun$resolveIn$30(MainRes.scala:99)
    at scala.collection.TraversableLike.$anonfun$flatMap$1(TraversableLike.scala:244)
    at scala.collection.immutable.List.foreach(List.scala:392)
    at scala.collection.TraversableLike.flatMap(TraversableLike.scala:244)
    at scala.collection.TraversableLike.flatMap$(TraversableLike.scala:241)
    at scala.collection.immutable.List.flatMap(List.scala:355)
    at org.klesun.deep_js_completion.resolvers.MainRes$.resolveIn(MainRes.scala:99)
    at org.klesun.deep_js_completion.contexts.SearchCtx.findExprType(SearchCtx.scala:107)
    at org.klesun.deep_js_completion.contexts.ExprCtx.findExprType(ExprCtx.scala:34)
    at org.klesun.deep_js_completion.resolvers.MainRes$.$anonfun$resolveIn$20(MainRes.scala:79)
    at scala.collection.TraversableLike.$anonfun$flatMap$1(TraversableLike.scala:244)
    at scala.collection.immutable.List.foreach(List.scala:392)
    at scala.collection.TraversableLike.flatMap(TraversableLike.scala:244)
    at scala.collection.TraversableLike.flatMap$(TraversableLike.scala:241)
    at scala.collection.immutable.List.flatMap(List.scala:355)
    at org.klesun.deep_js_completion.resolvers.MainRes$.$anonfun$resolveIn$19(MainRes.scala:71)
    at org.klesun.deep_js_completion.structures.JSDeepFunctionTypeImpl.getReturnType(JSDeepFunctionTypeImpl.scala:52)
    at org.klesun.deep_js_completion.helpers.Mt$.$anonfun$getReturnType$1(Mt.scala:128)
    at scala.collection.Iterator$$anon$11.nextCur(Iterator.scala:484)
    at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:490)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:488)
    at scala.collection.Iterator$ConcatIterator.hasNext(Iterator.scala:222)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:488)
    at scala.collection.Iterator$$anon$12.hasNext(Iterator.scala:511)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:488)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at scala.collection.Iterator.toStream(Iterator.scala:1415)
    at scala.collection.Iterator.toStream$(Iterator.scala:1414)
    at org.klesun.lang.Lang$It.toStream(Lang.scala:199)
    at scala.collection.Iterator.$anonfun$toStream$1(Iterator.scala:1415)
    at scala.collection.immutable.Stream$Cons.tail(Stream.scala:1171)
    at scala.collection.immutable.Stream$Cons.tail(Stream.scala:1161)
    at scala.collection.immutable.StreamIterator.$anonfun$next$1(Stream.scala:1061)
    at scala.collection.immutable.StreamIterator$LazyCell.v$lzycompute(Stream.scala:1050)
    at scala.collection.immutable.StreamIterator$LazyCell.v(Stream.scala:1050)
    at scala.collection.immutable.StreamIterator.hasNext(Stream.scala:1055)
    at org.klesun.lang.Lang$MemIt$$anon$1.hasNext(Lang.scala:179)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:488)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:488)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:488)
    at scala.collection.Iterator$$anon$10.hasNext(Iterator.scala:458)
    at scala.collection.Iterator$$anon$10.hasNext(Iterator.scala:458)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:488)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:488)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at scala.collection.Iterator$ConcatIterator.hasNext(Iterator.scala:222)
    at scala.collection.Iterator$$anon$12.hasNext(Iterator.scala:511)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:488)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at scala.collection.Iterator.toStream(Iterator.scala:1415)
    at scala.collection.Iterator.toStream$(Iterator.scala:1414)
    at org.klesun.lang.Lang$It.toStream(Lang.scala:199)
    at scala.collection.Iterator.$anonfun$toStream$1(Iterator.scala:1415)
    at scala.collection.immutable.Stream$Cons.tail(Stream.scala:1171)
    at scala.collection.immutable.Stream$Cons.tail(Stream.scala:1161)
    at scala.collection.immutable.StreamIterator.$anonfun$next$1(Stream.scala:1061)
    at scala.collection.immutable.StreamIterator$LazyCell.v$lzycompute(Stream.scala:1050)
    at scala.collection.immutable.StreamIterator$LazyCell.v(Stream.scala:1050)
    at scala.collection.immutable.StreamIterator.hasNext(Stream.scala:1055)
    at org.klesun.lang.Lang$MemIt$$anon$1.hasNext(Lang.scala:179)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at scala.collection.Iterator.foreach(Iterator.scala:941)
    at scala.collection.Iterator.foreach$(Iterator.scala:941)
    at org.klesun.lang.Lang$It.foreach(Lang.scala:199)
    at scala.collection.generic.Growable.$plus$plus$eq(Growable.scala:62)
    at scala.collection.generic.Growable.$plus$plus$eq$(Growable.scala:53)
    at scala.collection.mutable.ListBuffer.$plus$plus$eq(ListBuffer.scala:189)
    at scala.collection.mutable.ListBuffer.$plus$plus$eq(ListBuffer.scala:47)
    at scala.collection.TraversableLike.$anonfun$flatMap$1(TraversableLike.scala:244)
    at scala.collection.immutable.List.foreach(List.scala:392)
    at scala.collection.TraversableLike.flatMap(TraversableLike.scala:244)
    at scala.collection.TraversableLike.flatMap$(TraversableLike.scala:241)
    at scala.collection.immutable.List.flatMap(List.scala:355)
    at org.klesun.deep_js_completion.resolvers.MainRes$.$anonfun$resolveIn$19(MainRes.scala:71)
    at org.klesun.deep_js_completion.structures.JSDeepFunctionTypeImpl.getReturnType(JSDeepFunctionTypeImpl.scala:52)
    at org.klesun.deep_js_completion.helpers.Mt$.$anonfun$getReturnType$1(Mt.scala:128)
    at scala.collection.Iterator$$anon$11.nextCur(Iterator.scala:484)
    at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:490)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:488)
    at scala.collection.Iterator$ConcatIterator.hasNext(Iterator.scala:222)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:488)
    at scala.collection.Iterator$$anon$12.hasNext(Iterator.scala:511)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at org.klesun.lang.Lang$.$anonfun$frs$2(Lang.scala:248)
    at org.klesun.lang.Lang$.$anonfun$frs$2$adapted(Lang.scala:248)
    at scala.collection.Iterator$$anon$12.hasNext(Iterator.scala:513)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at org.klesun.lang.Lang$It.lift(Lang.scala:227)
    at org.klesun.lang.Lang$.frs(Lang.scala:249)
    at org.klesun.deep_js_completion.contexts.SearchCtx.findExprType(SearchCtx.scala:118)
    at org.klesun.deep_js_completion.contexts.ExprCtx.findExprType(ExprCtx.scala:34)
    at org.klesun.deep_js_completion.resolvers.VarRes.$anonfun$resolveFunc$2(VarRes.scala:175)
    at scala.collection.TraversableLike.$anonfun$flatMap$1(TraversableLike.scala:244)
    at scala.collection.immutable.List.foreach(List.scala:392)
    at scala.collection.TraversableLike.flatMap(TraversableLike.scala:244)
    at scala.collection.TraversableLike.flatMap$(TraversableLike.scala:241)
    at scala.collection.immutable.List.flatMap(List.scala:355)
    at org.klesun.deep_js_completion.resolvers.VarRes.resolveFunc(VarRes.scala:175)
    at org.klesun.deep_js_completion.structures.JSDeepClassType.$anonfun$getMethods$5(JSDeepClassType.scala:44)
    at org.klesun.deep_js_completion.helpers.Mt$.mkProp(Mt.scala:166)
    at org.klesun.deep_js_completion.structures.JSDeepClassType.$anonfun$getMethods$4(JSDeepClassType.scala:44)
    at scala.collection.TraversableLike.$anonfun$map$1(TraversableLike.scala:237)
    at scala.collection.IndexedSeqOptimized.foreach(IndexedSeqOptimized.scala:36)
    at scala.collection.IndexedSeqOptimized.foreach$(IndexedSeqOptimized.scala:33)
    at scala.collection.mutable.ArrayOps$ofRef.foreach(ArrayOps.scala:198)
    at scala.collection.TraversableLike.map(TraversableLike.scala:237)
    at scala.collection.TraversableLike.map$(TraversableLike.scala:230)
    at scala.collection.mutable.ArrayOps$ofRef.map(ArrayOps.scala:198)
    at org.klesun.deep_js_completion.structures.JSDeepClassType.getMethods(JSDeepClassType.scala:44)
    at org.klesun.deep_js_completion.structures.JSDeepClassType.asRecordType(JSDeepClassType.scala:33)
    at org.klesun.deep_js_completion.completion_providers.PropNamePvdr$.getFlatMems(PropNamePvdr.scala:91)
    at org.klesun.deep_js_completion.completion_providers.PropNamePvdr$.$anonfun$getMems$1(PropNamePvdr.scala:107)
    at scala.collection.Iterator$$anon$11.nextCur(Iterator.scala:484)
    at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:490)
    at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:489)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:488)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at scala.collection.Iterator.isEmpty(Iterator.scala:385)
    at scala.collection.Iterator.isEmpty$(Iterator.scala:385)
    at org.klesun.lang.Lang$It.isEmpty(Lang.scala:199)
    at scala.collection.TraversableOnce.nonEmpty(TraversableOnce.scala:114)
    at scala.collection.TraversableOnce.nonEmpty$(TraversableOnce.scala:114)
    at org.klesun.lang.Lang$It.nonEmpty(Lang.scala:199)
    at org.klesun.deep_js_completion.contexts.SearchCtx.hasTypeInfo(SearchCtx.scala:87)
    at org.klesun.deep_js_completion.contexts.SearchCtx.$anonfun$findExprType$1(SearchCtx.scala:109)
    at org.klesun.deep_js_completion.contexts.SearchCtx.$anonfun$findExprType$1$adapted(SearchCtx.scala:108)
    at scala.collection.Iterator$$anon$12.hasNext(Iterator.scala:513)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at org.klesun.lang.Lang$.$anonfun$frs$2(Lang.scala:248)
    at org.klesun.lang.Lang$.$anonfun$frs$2$adapted(Lang.scala:248)
    at scala.collection.Iterator$$anon$12.hasNext(Iterator.scala:513)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at org.klesun.lang.Lang$It.lift(Lang.scala:227)
    at org.klesun.lang.Lang$.frs(Lang.scala:249)
    at org.klesun.deep_js_completion.contexts.SearchCtx.findExprType(SearchCtx.scala:118)
    at org.klesun.deep_js_completion.contexts.ExprCtx.findExprType(ExprCtx.scala:34)
    at org.klesun.deep_js_completion.resolvers.var_res.ArgRes.$anonfun$resolveCommonJsFormatDef$6(ArgRes.scala:298)
    at scala.collection.Iterator$$anon$11.nextCur(Iterator.scala:484)
    at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:490)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:488)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at scala.collection.Iterator.foreach(Iterator.scala:941)
    at scala.collection.Iterator.foreach$(Iterator.scala:941)
    at org.klesun.lang.Lang$It.foreach(Lang.scala:199)
    at scala.collection.generic.Growable.$plus$plus$eq(Growable.scala:62)
    at scala.collection.generic.Growable.$plus$plus$eq$(Growable.scala:53)
    at scala.collection.mutable.ArrayBuilder$ofRef.$plus$plus$eq(ArrayBuilder.scala:103)
    at scala.collection.mutable.ArrayBuilder$ofRef.$plus$plus$eq(ArrayBuilder.scala:60)
    at scala.collection.TraversableLike.$anonfun$flatMap$1(TraversableLike.scala:244)
    at scala.collection.IndexedSeqOptimized.foreach(IndexedSeqOptimized.scala:36)
    at scala.collection.IndexedSeqOptimized.foreach$(IndexedSeqOptimized.scala:33)
    at scala.collection.mutable.ArrayOps$ofRef.foreach(ArrayOps.scala:198)
    at scala.collection.TraversableLike.flatMap(TraversableLike.scala:244)
    at scala.collection.TraversableLike.flatMap$(TraversableLike.scala:241)
    at scala.collection.mutable.ArrayOps$ofRef.flatMap(ArrayOps.scala:198)
    at org.klesun.deep_js_completion.resolvers.var_res.ArgRes.resolveCommonJsFormatDef(ArgRes.scala:293)
    at org.klesun.deep_js_completion.resolvers.FuncCallRes.$anonfun$resolveBuiltInFuncCall$2(FuncCallRes.scala:54)
    at scala.collection.Iterator$$anon$11.nextCur(Iterator.scala:484)
    at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:490)
    at scala.collection.Iterator$ConcatIterator.hasNext(Iterator.scala:222)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:488)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:488)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:488)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at scala.collection.Iterator$ConcatIterator.advance(Iterator.scala:198)
    at scala.collection.Iterator$ConcatIterator.hasNext(Iterator.scala:225)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:488)
    at scala.collection.Iterator$$anon$12.hasNext(Iterator.scala:511)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at org.klesun.lang.Lang$.$anonfun$frs$2(Lang.scala:248)
    at org.klesun.lang.Lang$.$anonfun$frs$2$adapted(Lang.scala:248)
    at scala.collection.Iterator$$anon$12.hasNext(Iterator.scala:513)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at org.klesun.lang.Lang$It.lift(Lang.scala:227)
    at org.klesun.lang.Lang$.frs(Lang.scala:249)
    at org.klesun.deep_js_completion.contexts.SearchCtx.findExprType(SearchCtx.scala:118)
    at org.klesun.deep_js_completion.contexts.ExprCtx.findExprType(ExprCtx.scala:34)
    at org.klesun.deep_js_completion.resolvers.VarRes.$anonfun$resolveMainDeclVar$1(VarRes.scala:137)
    at scala.collection.Iterator$$anon$11.nextCur(Iterator.scala:484)
    at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:490)
    at scala.collection.Iterator$ConcatIterator.hasNext(Iterator.scala:222)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:488)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at scala.collection.Iterator$ConcatIterator.advance(Iterator.scala:198)
    at scala.collection.Iterator$ConcatIterator.hasNext(Iterator.scala:225)
    at scala.collection.Iterator$$anon$12.hasNext(Iterator.scala:511)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at org.klesun.lang.Lang$.$anonfun$frs$2(Lang.scala:248)
    at org.klesun.lang.Lang$.$anonfun$frs$2$adapted(Lang.scala:248)
    at scala.collection.Iterator$$anon$12.hasNext(Iterator.scala:513)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at org.klesun.lang.Lang$It.lift(Lang.scala:227)
    at org.klesun.lang.Lang$.frs(Lang.scala:249)
    at org.klesun.deep_js_completion.contexts.SearchCtx.findExprType(SearchCtx.scala:118)
    at org.klesun.deep_js_completion.contexts.ExprCtx.findExprType(ExprCtx.scala:34)
    at org.klesun.deep_js_completion.resolvers.VarRes.$anonfun$resolve$1(VarRes.scala:233)
    at scala.collection.Iterator$$anon$11.nextCur(Iterator.scala:484)
    at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:490)
    at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:489)
    at scala.collection.Iterator$ConcatIterator.hasNext(Iterator.scala:222)
    at scala.collection.Iterator$$anon$12.hasNext(Iterator.scala:511)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at org.klesun.lang.Lang$.$anonfun$frs$2(Lang.scala:248)
    at org.klesun.lang.Lang$.$anonfun$frs$2$adapted(Lang.scala:248)
    at scala.collection.Iterator$$anon$12.hasNext(Iterator.scala:513)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at org.klesun.lang.Lang$It.lift(Lang.scala:227)
    at org.klesun.lang.Lang$.frs(Lang.scala:249)
    at org.klesun.deep_js_completion.contexts.SearchCtx.findExprType(SearchCtx.scala:118)
    at org.klesun.deep_js_completion.contexts.ExprCtx.findExprType(ExprCtx.scala:34)
    at org.klesun.deep_js_completion.resolvers.FuncCallRes.$anonfun$resolve$1(FuncCallRes.scala:67)
    at scala.collection.Iterator$$anon$11.nextCur(Iterator.scala:484)
    at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:490)
    at scala.collection.Iterator$$anon$12.hasNext(Iterator.scala:511)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at org.klesun.lang.Lang$.$anonfun$frs$2(Lang.scala:248)
    at org.klesun.lang.Lang$.$anonfun$frs$2$adapted(Lang.scala:248)
    at scala.collection.Iterator$$anon$12.hasNext(Iterator.scala:513)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at org.klesun.lang.Lang$It.lift(Lang.scala:227)
    at org.klesun.lang.Lang$.frs(Lang.scala:249)
    at org.klesun.deep_js_completion.contexts.SearchCtx.findExprType(SearchCtx.scala:118)
    at org.klesun.deep_js_completion.contexts.ExprCtx.findExprType(ExprCtx.scala:34)
    at org.klesun.deep_js_completion.contexts.ExprCtx.$anonfun$subCtxDirect$1(ExprCtx.scala:19)
    at org.klesun.deep_js_completion.contexts.FuncCtx.$anonfun$subCtxDirect$3(FuncCtx.scala:33)
    at scala.collection.Iterator$$anon$11.nextCur(Iterator.scala:484)
    at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:490)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at scala.collection.Iterator.foreach(Iterator.scala:941)
    at scala.collection.Iterator.foreach$(Iterator.scala:941)
    at org.klesun.lang.Lang$It.foreach(Lang.scala:199)
    at scala.collection.generic.Growable.$plus$plus$eq(Growable.scala:62)
    at scala.collection.generic.Growable.$plus$plus$eq$(Growable.scala:53)
    at scala.collection.mutable.ListBuffer.$plus$plus$eq(ListBuffer.scala:189)
    at scala.collection.mutable.ListBuffer.$plus$plus$eq(ListBuffer.scala:47)
    at scala.collection.TraversableOnce.to(TraversableOnce.scala:313)
    at scala.collection.TraversableOnce.to$(TraversableOnce.scala:311)
    at org.klesun.lang.Lang$It.to(Lang.scala:199)
    at scala.collection.TraversableOnce.toList(TraversableOnce.scala:297)
    at scala.collection.TraversableOnce.toList$(TraversableOnce.scala:297)
    at org.klesun.lang.Lang$It.toList(Lang.scala:199)
    at org.klesun.deep_js_completion.helpers.Mt$.mergeTypes(Mt.scala:28)
    at org.klesun.deep_js_completion.contexts.FuncCtx.$anonfun$subCtxDirect$2(FuncCtx.scala:33)
    at org.klesun.deep_js_completion.contexts.FuncCtx.$anonfun$getArg$1(FuncCtx.scala:54)
    at scala.Option.map(Option.scala:163)
    at org.klesun.deep_js_completion.contexts.FuncCtx.getArg(FuncCtx.scala:54)
    at org.klesun.deep_js_completion.resolvers.var_res.ArgRes.$anonfun$getCtxArgType$3(ArgRes.scala:271)
    at scala.collection.Iterator$$anon$11.nextCur(Iterator.scala:484)
    at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:490)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at scala.collection.Iterator.foreach(Iterator.scala:941)
    at scala.collection.Iterator.foreach$(Iterator.scala:941)
    at org.klesun.lang.Lang$It.foreach(Lang.scala:199)
    at scala.collection.generic.Growable.$plus$plus$eq(Growable.scala:62)
    at scala.collection.generic.Growable.$plus$plus$eq$(Growable.scala:53)
    at scala.collection.mutable.ListBuffer.$plus$plus$eq(ListBuffer.scala:189)
    at scala.collection.mutable.ListBuffer.$plus$plus$eq(ListBuffer.scala:47)
    at scala.collection.TraversableOnce.to(TraversableOnce.scala:313)
    at scala.collection.TraversableOnce.to$(TraversableOnce.scala:311)
    at org.klesun.lang.Lang$It.to(Lang.scala:199)
    at scala.collection.TraversableOnce.toList(TraversableOnce.scala:297)
    at scala.collection.TraversableOnce.toList$(TraversableOnce.scala:297)
    at org.klesun.lang.Lang$It.toList(Lang.scala:199)
    at scala.collection.immutable.List.$plus$plus(List.scala:209)
    at org.klesun.deep_js_completion.resolvers.var_res.ArgRes.$anonfun$resolve$1(ArgRes.scala:447)
    at scala.collection.Iterator$$anon$11.nextCur(Iterator.scala:484)
    at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:490)
    at scala.collection.Iterator$ConcatIterator.hasNext(Iterator.scala:222)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:488)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at scala.collection.Iterator$ConcatIterator.advance(Iterator.scala:198)
    at scala.collection.Iterator$ConcatIterator.hasNext(Iterator.scala:225)
    at scala.collection.Iterator$$anon$12.hasNext(Iterator.scala:511)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at org.klesun.lang.Lang$.$anonfun$frs$2(Lang.scala:248)
    at org.klesun.lang.Lang$.$anonfun$frs$2$adapted(Lang.scala:248)
    at scala.collection.Iterator$$anon$12.hasNext(Iterator.scala:513)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at org.klesun.lang.Lang$It.lift(Lang.scala:227)
    at org.klesun.lang.Lang$.frs(Lang.scala:249)
    at org.klesun.deep_js_completion.contexts.SearchCtx.findExprType(SearchCtx.scala:118)
    at org.klesun.deep_js_completion.contexts.ExprCtx.findExprType(ExprCtx.scala:34)
    at org.klesun.deep_js_completion.contexts.ExprCtx.$anonfun$subCtxDirect$1(ExprCtx.scala:19)
    at org.klesun.deep_js_completion.contexts.FuncCtx.$anonfun$subCtxDirect$3(FuncCtx.scala:33)
    at scala.collection.Iterator$$anon$11.nextCur(Iterator.scala:484)
    at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:490)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at scala.collection.Iterator.foreach(Iterator.scala:941)
    at scala.collection.Iterator.foreach$(Iterator.scala:941)
    at org.klesun.lang.Lang$It.foreach(Lang.scala:199)
    at scala.collection.generic.Growable.$plus$plus$eq(Growable.scala:62)
    at scala.collection.generic.Growable.$plus$plus$eq$(Growable.scala:53)
    at scala.collection.mutable.ListBuffer.$plus$plus$eq(ListBuffer.scala:189)
    at scala.collection.mutable.ListBuffer.$plus$plus$eq(ListBuffer.scala:47)
    at scala.collection.TraversableOnce.to(TraversableOnce.scala:313)
    at scala.collection.TraversableOnce.to$(TraversableOnce.scala:311)
    at org.klesun.lang.Lang$It.to(Lang.scala:199)
    at scala.collection.TraversableOnce.toList(TraversableOnce.scala:297)
    at scala.collection.TraversableOnce.toList$(TraversableOnce.scala:297)
    at org.klesun.lang.Lang$It.toList(Lang.scala:199)
    at org.klesun.deep_js_completion.helpers.Mt$.mergeTypes(Mt.scala:28)
    at org.klesun.deep_js_completion.contexts.FuncCtx.$anonfun$subCtxDirect$2(FuncCtx.scala:33)
    at org.klesun.deep_js_completion.contexts.FuncCtx.$anonfun$getArg$1(FuncCtx.scala:54)
    at scala.Option.map(Option.scala:163)
    at org.klesun.deep_js_completion.contexts.FuncCtx.getArg(FuncCtx.scala:54)
    at org.klesun.deep_js_completion.resolvers.var_res.GenericRes$.$anonfun$resolveTypeExpr$11(GenericRes.scala:108)
    at org.klesun.deep_js_completion.resolvers.var_res.GenericRes$.$anonfun$getGenericTypeFromArg$2(GenericRes.scala:71)
    at org.klesun.deep_js_completion.resolvers.var_res.GenericRes$.getGenericTypeFromArg(GenericRes.scala:76)
    at org.klesun.deep_js_completion.resolvers.var_res.GenericRes$.$anonfun$getGenericTypeFromArg$4(GenericRes.scala:72)
    at scala.collection.TraversableLike.$anonfun$flatMap$1(TraversableLike.scala:244)
    at scala.collection.IndexedSeqOptimized.foreach(IndexedSeqOptimized.scala:36)
    at scala.collection.IndexedSeqOptimized.foreach$(IndexedSeqOptimized.scala:33)
    at scala.collection.mutable.ArrayOps$ofRef.foreach(ArrayOps.scala:198)
    at scala.collection.TraversableLike.flatMap(TraversableLike.scala:244)
    at scala.collection.TraversableLike.flatMap$(TraversableLike.scala:241)
    at scala.collection.mutable.ArrayOps$ofRef.flatMap(ArrayOps.scala:198)
    at org.klesun.deep_js_completion.resolvers.var_res.GenericRes$.getGenericTypeFromArg(GenericRes.scala:72)
    at org.klesun.deep_js_completion.resolvers.var_res.GenericRes$.$anonfun$getGenericTypeFromArg$1(GenericRes.scala:69)
    at scala.collection.TraversableLike.$anonfun$flatMap$1(TraversableLike.scala:244)
    at scala.collection.IndexedSeqOptimized.foreach(IndexedSeqOptimized.scala:36)
    at scala.collection.IndexedSeqOptimized.foreach$(IndexedSeqOptimized.scala:33)
    at scala.collection.mutable.ArrayOps$ofRef.foreach(ArrayOps.scala:198)
    at scala.collection.TraversableLike.flatMap(TraversableLike.scala:244)
    at scala.collection.TraversableLike.flatMap$(TraversableLike.scala:241)
    at scala.collection.mutable.ArrayOps$ofRef.flatMap(ArrayOps.scala:198)
    at org.klesun.deep_js_completion.resolvers.var_res.GenericRes$.getGenericTypeFromArg(GenericRes.scala:68)
    at org.klesun.deep_js_completion.resolvers.var_res.GenericRes$.$anonfun$resolveTypeExpr$10(GenericRes.scala:108)
    at scala.collection.Iterator$$anon$11.nextCur(Iterator.scala:484)
    at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:490)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at scala.collection.Iterator.foreach(Iterator.scala:941)
    at scala.collection.Iterator.foreach$(Iterator.scala:941)
    at org.klesun.lang.Lang$It.foreach(Lang.scala:199)
    at scala.collection.generic.Growable.$plus$plus$eq(Growable.scala:62)
    at scala.collection.generic.Growable.$plus$plus$eq$(Growable.scala:53)
    at scala.collection.mutable.ArrayBuilder$ofRef.$plus$plus$eq(ArrayBuilder.scala:103)
    at scala.collection.mutable.ArrayBuilder$ofRef.$plus$plus$eq(ArrayBuilder.scala:60)
    at scala.collection.TraversableLike.$anonfun$flatMap$1(TraversableLike.scala:244)
    at scala.collection.IndexedSeqOptimized.foreach(IndexedSeqOptimized.scala:36)
    at scala.collection.IndexedSeqOptimized.foreach$(IndexedSeqOptimized.scala:33)
    at scala.collection.mutable.ArrayOps$ofRef.foreach(ArrayOps.scala:198)
    at scala.collection.TraversableLike.flatMap(TraversableLike.scala:244)
    at scala.collection.TraversableLike.flatMap$(TraversableLike.scala:241)
    at scala.collection.mutable.ArrayOps$ofRef.flatMap(ArrayOps.scala:198)
    at org.klesun.deep_js_completion.resolvers.var_res.GenericRes$.$anonfun$resolveTypeExpr$6(GenericRes.scala:104)
    at org.klesun.deep_js_completion.resolvers.var_res.GenericRes$.parseTypePsi(GenericRes.scala:51)
    at org.klesun.deep_js_completion.resolvers.var_res.GenericRes$.$anonfun$parseTypePsi$1(GenericRes.scala:23)
    at scala.collection.Iterator$$anon$11.nextCur(Iterator.scala:484)
    at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:490)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at scala.collection.Iterator.foreach(Iterator.scala:941)
    at scala.collection.Iterator.foreach$(Iterator.scala:941)
    at org.klesun.lang.Lang$It.foreach(Lang.scala:199)
    at scala.collection.generic.Growable.$plus$plus$eq(Growable.scala:62)
    at scala.collection.generic.Growable.$plus$plus$eq$(Growable.scala:53)
    at scala.collection.mutable.ListBuffer.$plus$plus$eq(ListBuffer.scala:189)
    at scala.collection.mutable.ListBuffer.$plus$plus$eq(ListBuffer.scala:47)
    at scala.collection.TraversableOnce.to(TraversableOnce.scala:313)
    at scala.collection.TraversableOnce.to$(TraversableOnce.scala:311)
    at org.klesun.lang.Lang$It.to(Lang.scala:199)
    at scala.collection.TraversableOnce.toList(TraversableOnce.scala:297)
    at scala.collection.TraversableOnce.toList$(TraversableOnce.scala:297)
    at org.klesun.lang.Lang$It.toList(Lang.scala:199)
    at org.klesun.deep_js_completion.helpers.Mt$.mergeTypes(Mt.scala:28)
    at org.klesun.deep_js_completion.resolvers.var_res.GenericRes$.parseTypePsi(GenericRes.scala:24)
    at org.klesun.deep_js_completion.resolvers.var_res.GenericRes$.org$klesun$deep_js_completion$resolvers$var_res$GenericRes$$resolveTypeExpr(GenericRes.scala:132)
    at org.klesun.deep_js_completion.resolvers.var_res.GenericRes.$anonfun$resolveFunc$2(GenericRes.scala:154)
    at org.klesun.deep_js_completion.structures.JSDeepFunctionTypeImpl.getReturnType(JSDeepFunctionTypeImpl.scala:52)
    at org.klesun.deep_js_completion.helpers.Mt$.$anonfun$getReturnType$1(Mt.scala:128)
    at scala.collection.Iterator$$anon$11.nextCur(Iterator.scala:484)
    at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:490)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:488)
    at scala.collection.Iterator$ConcatIterator.hasNext(Iterator.scala:222)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:488)
    at scala.collection.Iterator$$anon$12.hasNext(Iterator.scala:511)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at org.klesun.lang.Lang$.$anonfun$frs$2(Lang.scala:248)
    at org.klesun.lang.Lang$.$anonfun$frs$2$adapted(Lang.scala:248)
    at scala.collection.Iterator$$anon$12.hasNext(Iterator.scala:513)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at org.klesun.lang.Lang$It.lift(Lang.scala:227)
    at org.klesun.lang.Lang$.frs(Lang.scala:249)
    at org.klesun.deep_js_completion.contexts.SearchCtx.findExprType(SearchCtx.scala:118)
    at org.klesun.deep_js_completion.contexts.ExprCtx.findExprType(ExprCtx.scala:34)
    at org.klesun.deep_js_completion.resolvers.VarRes.$anonfun$resolve$1(VarRes.scala:233)
    at scala.collection.Iterator$$anon$11.nextCur(Iterator.scala:484)
    at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:490)
    at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:489)
    at scala.collection.Iterator$ConcatIterator.hasNext(Iterator.scala:222)
    at scala.collection.Iterator$$anon$12.hasNext(Iterator.scala:511)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at org.klesun.lang.Lang$.$anonfun$frs$2(Lang.scala:248)
    at org.klesun.lang.Lang$.$anonfun$frs$2$adapted(Lang.scala:248)
    at scala.collection.Iterator$$anon$12.hasNext(Iterator.scala:513)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at org.klesun.lang.Lang$It.lift(Lang.scala:227)
    at org.klesun.lang.Lang$.frs(Lang.scala:249)
    at org.klesun.deep_js_completion.contexts.SearchCtx.findExprType(SearchCtx.scala:118)
    at org.klesun.deep_js_completion.contexts.ExprCtx.findExprType(ExprCtx.scala:34)
    at org.klesun.deep_js_completion.resolvers.FuncCallRes.$anonfun$resolve$1(FuncCallRes.scala:67)
    at scala.collection.Iterator$$anon$11.nextCur(Iterator.scala:484)
    at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:490)
    at scala.collection.Iterator$$anon$12.hasNext(Iterator.scala:511)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at org.klesun.lang.Lang$.$anonfun$frs$2(Lang.scala:248)
    at org.klesun.lang.Lang$.$anonfun$frs$2$adapted(Lang.scala:248)
    at scala.collection.Iterator$$anon$12.hasNext(Iterator.scala:513)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at org.klesun.lang.Lang$It.lift(Lang.scala:227)
    at org.klesun.lang.Lang$.frs(Lang.scala:249)
    at org.klesun.deep_js_completion.contexts.SearchCtx.findExprType(SearchCtx.scala:118)
    at org.klesun.deep_js_completion.contexts.ExprCtx.findExprType(ExprCtx.scala:34)
    at org.klesun.deep_js_completion.resolvers.MainRes$.$anonfun$resolveIn$20(MainRes.scala:79)
    at scala.collection.TraversableLike.$anonfun$flatMap$1(TraversableLike.scala:244)
    at scala.collection.immutable.List.foreach(List.scala:392)
    at scala.collection.TraversableLike.flatMap(TraversableLike.scala:244)
    at scala.collection.TraversableLike.flatMap$(TraversableLike.scala:241)
    at scala.collection.immutable.List.flatMap(List.scala:355)
    at org.klesun.deep_js_completion.resolvers.MainRes$.$anonfun$resolveIn$19(MainRes.scala:71)
    at org.klesun.deep_js_completion.structures.JSDeepFunctionTypeImpl.getReturnType(JSDeepFunctionTypeImpl.scala:52)
    at org.klesun.deep_js_completion.helpers.Mt$.$anonfun$getReturnType$1(Mt.scala:128)
    at scala.collection.Iterator$$anon$11.nextCur(Iterator.scala:484)
    at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:490)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:488)
    at scala.collection.Iterator$ConcatIterator.hasNext(Iterator.scala:222)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:488)
    at scala.collection.Iterator$$anon$12.hasNext(Iterator.scala:511)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at org.klesun.lang.Lang$.$anonfun$frs$2(Lang.scala:248)
    at org.klesun.lang.Lang$.$anonfun$frs$2$adapted(Lang.scala:248)
    at scala.collection.Iterator$$anon$12.hasNext(Iterator.scala:513)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at org.klesun.lang.Lang$It.lift(Lang.scala:227)
    at org.klesun.lang.Lang$.frs(Lang.scala:249)
    at org.klesun.deep_js_completion.contexts.SearchCtx.findExprType(SearchCtx.scala:118)
    at org.klesun.deep_js_completion.contexts.ExprCtx.findExprType(ExprCtx.scala:34)
    at org.klesun.deep_js_completion.resolvers.VarRes.$anonfun$resolveFunc$2(VarRes.scala:175)
    at scala.collection.TraversableLike.$anonfun$flatMap$1(TraversableLike.scala:244)
    at scala.collection.immutable.List.foreach(List.scala:392)
    at scala.collection.TraversableLike.flatMap(TraversableLike.scala:244)
    at scala.collection.TraversableLike.flatMap$(TraversableLike.scala:241)
    at scala.collection.immutable.List.flatMap(List.scala:355)
    at org.klesun.deep_js_completion.resolvers.VarRes.resolveFunc(VarRes.scala:175)
    at org.klesun.deep_js_completion.structures.JSDeepClassType.$anonfun$getMethods$5(JSDeepClassType.scala:44)
    at org.klesun.deep_js_completion.helpers.Mt$.mkProp(Mt.scala:166)
    at org.klesun.deep_js_completion.structures.JSDeepClassType.$anonfun$getMethods$4(JSDeepClassType.scala:44)
    at scala.collection.TraversableLike.$anonfun$map$1(TraversableLike.scala:237)
    at scala.collection.IndexedSeqOptimized.foreach(IndexedSeqOptimized.scala:36)
    at scala.collection.IndexedSeqOptimized.foreach$(IndexedSeqOptimized.scala:33)
    at scala.collection.mutable.ArrayOps$ofRef.foreach(ArrayOps.scala:198)
    at scala.collection.TraversableLike.map(TraversableLike.scala:237)
    at scala.collection.TraversableLike.map$(TraversableLike.scala:230)
    at scala.collection.mutable.ArrayOps$ofRef.map(ArrayOps.scala:198)
    at org.klesun.deep_js_completion.structures.JSDeepClassType.getMethods(JSDeepClassType.scala:44)
    at org.klesun.deep_js_completion.structures.JSDeepClassType.asRecordType(JSDeepClassType.scala:33)
    at org.klesun.deep_js_completion.completion_providers.PropNamePvdr$.getFlatMems(PropNamePvdr.scala:91)
    at org.klesun.deep_js_completion.completion_providers.PropNamePvdr$.$anonfun$getMems$1(PropNamePvdr.scala:107)
    at scala.collection.Iterator$$anon$11.nextCur(Iterator.scala:484)
    at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:490)
    at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:489)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:488)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at scala.collection.Iterator.isEmpty(Iterator.scala:385)
    at scala.collection.Iterator.isEmpty$(Iterator.scala:385)
    at org.klesun.lang.Lang$It.isEmpty(Lang.scala:199)
    at scala.collection.TraversableOnce.nonEmpty(TraversableOnce.scala:114)
    at scala.collection.TraversableOnce.nonEmpty$(TraversableOnce.scala:114)
    at org.klesun.lang.Lang$It.nonEmpty(Lang.scala:199)
    at org.klesun.deep_js_completion.contexts.SearchCtx.hasTypeInfo(SearchCtx.scala:87)
    at org.klesun.deep_js_completion.contexts.SearchCtx.$anonfun$findExprType$1(SearchCtx.scala:109)
    at org.klesun.deep_js_completion.contexts.SearchCtx.$anonfun$findExprType$1$adapted(SearchCtx.scala:108)
    at scala.collection.Iterator$$anon$12.hasNext(Iterator.scala:513)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at org.klesun.lang.Lang$.$anonfun$frs$2(Lang.scala:248)
    at org.klesun.lang.Lang$.$anonfun$frs$2$adapted(Lang.scala:248)
    at scala.collection.Iterator$$anon$12.hasNext(Iterator.scala:513)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at org.klesun.lang.Lang$It.lift(Lang.scala:227)
    at org.klesun.lang.Lang$.frs(Lang.scala:249)
    at org.klesun.deep_js_completion.contexts.SearchCtx.findExprType(SearchCtx.scala:118)
    at org.klesun.deep_js_completion.contexts.ExprCtx.findExprType(ExprCtx.scala:34)
    at org.klesun.deep_js_completion.resolvers.var_res.ArgRes.$anonfun$resolveCommonJsFormatDef$6(ArgRes.scala:298)
    at scala.collection.Iterator$$anon$11.nextCur(Iterator.scala:484)
    at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:490)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:488)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at scala.collection.Iterator.foreach(Iterator.scala:941)
    at scala.collection.Iterator.foreach$(Iterator.scala:941)
    at org.klesun.lang.Lang$It.foreach(Lang.scala:199)
    at scala.collection.generic.Growable.$plus$plus$eq(Growable.scala:62)
    at scala.collection.generic.Growable.$plus$plus$eq$(Growable.scala:53)
    at scala.collection.mutable.ArrayBuilder$ofRef.$plus$plus$eq(ArrayBuilder.scala:103)
    at scala.collection.mutable.ArrayBuilder$ofRef.$plus$plus$eq(ArrayBuilder.scala:60)
    at scala.collection.TraversableLike.$anonfun$flatMap$1(TraversableLike.scala:244)
    at scala.collection.IndexedSeqOptimized.foreach(IndexedSeqOptimized.scala:36)
    at scala.collection.IndexedSeqOptimized.foreach$(IndexedSeqOptimized.scala:33)
    at scala.collection.mutable.ArrayOps$ofRef.foreach(ArrayOps.scala:198)
    at scala.collection.TraversableLike.flatMap(TraversableLike.scala:244)
    at scala.collection.TraversableLike.flatMap$(TraversableLike.scala:241)
    at scala.collection.mutable.ArrayOps$ofRef.flatMap(ArrayOps.scala:198)
    at org.klesun.deep_js_completion.resolvers.var_res.ArgRes.resolveCommonJsFormatDef(ArgRes.scala:293)
    at org.klesun.deep_js_completion.resolvers.FuncCallRes.$anonfun$resolveBuiltInFuncCall$2(FuncCallRes.scala:54)
    at scala.collection.Iterator$$anon$11.nextCur(Iterator.scala:484)
    at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:490)
    at scala.collection.Iterator$ConcatIterator.hasNext(Iterator.scala:222)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:488)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:488)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:488)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at scala.collection.Iterator$ConcatIterator.advance(Iterator.scala:198)
    at scala.collection.Iterator$ConcatIterator.hasNext(Iterator.scala:225)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:488)
    at scala.collection.Iterator$$anon$12.hasNext(Iterator.scala:511)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at org.klesun.lang.Lang$.$anonfun$frs$2(Lang.scala:248)
    at org.klesun.lang.Lang$.$anonfun$frs$2$adapted(Lang.scala:248)
    at scala.collection.Iterator$$anon$12.hasNext(Iterator.scala:513)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at org.klesun.lang.Lang$It.lift(Lang.scala:227)
    at org.klesun.lang.Lang$.frs(Lang.scala:249)
    at org.klesun.deep_js_completion.contexts.SearchCtx.findExprType(SearchCtx.scala:118)
    at org.klesun.deep_js_completion.contexts.ExprCtx.findExprType(ExprCtx.scala:34)
    at org.klesun.deep_js_completion.resolvers.VarRes.$anonfun$resolveMainDeclVar$1(VarRes.scala:137)
    at scala.collection.Iterator$$anon$11.nextCur(Iterator.scala:484)
    at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:490)
    at scala.collection.Iterator$ConcatIterator.hasNext(Iterator.scala:222)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:488)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at scala.collection.Iterator$ConcatIterator.advance(Iterator.scala:198)
    at scala.collection.Iterator$ConcatIterator.hasNext(Iterator.scala:225)
    at scala.collection.Iterator$$anon$12.hasNext(Iterator.scala:511)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at org.klesun.lang.Lang$.$anonfun$frs$2(Lang.scala:248)
    at org.klesun.lang.Lang$.$anonfun$frs$2$adapted(Lang.scala:248)
    at scala.collection.Iterator$$anon$12.hasNext(Iterator.scala:513)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at org.klesun.lang.Lang$It.lift(Lang.scala:227)
    at org.klesun.lang.Lang$.frs(Lang.scala:249)
    at org.klesun.deep_js_completion.contexts.SearchCtx.findExprType(SearchCtx.scala:118)
    at org.klesun.deep_js_completion.contexts.ExprCtx.findExprType(ExprCtx.scala:34)
    at org.klesun.deep_js_completion.resolvers.VarRes.$anonfun$resolve$1(VarRes.scala:233)
    at scala.collection.Iterator$$anon$11.nextCur(Iterator.scala:484)
    at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:490)
    at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:489)
    at scala.collection.Iterator$ConcatIterator.hasNext(Iterator.scala:222)
    at scala.collection.Iterator$$anon$12.hasNext(Iterator.scala:511)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at org.klesun.lang.Lang$.$anonfun$frs$2(Lang.scala:248)
    at org.klesun.lang.Lang$.$anonfun$frs$2$adapted(Lang.scala:248)
    at scala.collection.Iterator$$anon$12.hasNext(Iterator.scala:513)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at org.klesun.lang.Lang$It.lift(Lang.scala:227)
    at org.klesun.lang.Lang$.frs(Lang.scala:249)
    at org.klesun.deep_js_completion.contexts.SearchCtx.findExprType(SearchCtx.scala:118)
    at org.klesun.deep_js_completion.contexts.ExprCtx.findExprType(ExprCtx.scala:34)
    at org.klesun.deep_js_completion.resolvers.FuncCallRes.$anonfun$resolve$1(FuncCallRes.scala:67)
    at scala.collection.Iterator$$anon$11.nextCur(Iterator.scala:484)
    at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:490)
    at scala.collection.Iterator$$anon$12.hasNext(Iterator.scala:511)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at org.klesun.lang.Lang$.$anonfun$frs$2(Lang.scala:248)
    at org.klesun.lang.Lang$.$anonfun$frs$2$adapted(Lang.scala:248)
    at scala.collection.Iterator$$anon$12.hasNext(Iterator.scala:513)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at org.klesun.lang.Lang$It.lift(Lang.scala:227)
    at org.klesun.lang.Lang$.frs(Lang.scala:249)
    at org.klesun.deep_js_completion.contexts.SearchCtx.findExprType(SearchCtx.scala:118)
    at org.klesun.deep_js_completion.contexts.ExprCtx.findExprType(ExprCtx.scala:34)
    at org.klesun.deep_js_completion.resolvers.VarRes.$anonfun$resolveAssignmentTo$18(VarRes.scala:102)
    at scala.collection.Iterator$$anon$11.nextCur(Iterator.scala:484)
    at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:490)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:488)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:488)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at scala.collection.Iterator$ConcatIterator.advance(Iterator.scala:198)
    at scala.collection.Iterator$ConcatIterator.hasNext(Iterator.scala:225)
    at scala.collection.Iterator$$anon$12.hasNext(Iterator.scala:511)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at org.klesun.lang.Lang$.$anonfun$frs$2(Lang.scala:248)
    at org.klesun.lang.Lang$.$anonfun$frs$2$adapted(Lang.scala:248)
    at scala.collection.Iterator$$anon$12.hasNext(Iterator.scala:513)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at org.klesun.lang.Lang$It.lift(Lang.scala:227)
    at org.klesun.lang.Lang$.frs(Lang.scala:249)
    at org.klesun.deep_js_completion.contexts.SearchCtx.findExprType(SearchCtx.scala:118)
    at org.klesun.deep_js_completion.contexts.ExprCtx.findExprType(ExprCtx.scala:34)
    at org.klesun.deep_js_completion.contexts.ExprCtx.$anonfun$subCtxDirect$1(ExprCtx.scala:19)
    at org.klesun.deep_js_completion.contexts.FuncCtx.$anonfun$subCtxDirect$3(FuncCtx.scala:33)
    at scala.collection.Iterator$$anon$11.nextCur(Iterator.scala:484)
    at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:490)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at scala.collection.Iterator.foreach(Iterator.scala:941)
    at scala.collection.Iterator.foreach$(Iterator.scala:941)
    at org.klesun.lang.Lang$It.foreach(Lang.scala:199)
    at scala.collection.generic.Growable.$plus$plus$eq(Growable.scala:62)
    at scala.collection.generic.Growable.$plus$plus$eq$(Growable.scala:53)
    at scala.collection.mutable.ListBuffer.$plus$plus$eq(ListBuffer.scala:189)
    at scala.collection.mutable.ListBuffer.$plus$plus$eq(ListBuffer.scala:47)
    at scala.collection.TraversableOnce.to(TraversableOnce.scala:313)
    at scala.collection.TraversableOnce.to$(TraversableOnce.scala:311)
    at org.klesun.lang.Lang$It.to(Lang.scala:199)
    at scala.collection.TraversableOnce.toList(TraversableOnce.scala:297)
    at scala.collection.TraversableOnce.toList$(TraversableOnce.scala:297)
    at org.klesun.lang.Lang$It.toList(Lang.scala:199)
    at org.klesun.deep_js_completion.helpers.Mt$.mergeTypes(Mt.scala:28)
    at org.klesun.deep_js_completion.contexts.FuncCtx.$anonfun$subCtxDirect$2(FuncCtx.scala:33)
    at org.klesun.deep_js_completion.contexts.FuncCtx.$anonfun$getArg$1(FuncCtx.scala:54)
    at scala.Option.map(Option.scala:163)
    at org.klesun.deep_js_completion.contexts.FuncCtx.getArg(FuncCtx.scala:54)
    at org.klesun.deep_js_completion.resolvers.var_res.ArgRes.$anonfun$getCtxArgType$3(ArgRes.scala:271)
    at scala.collection.Iterator$$anon$11.nextCur(Iterator.scala:484)
    at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:490)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at scala.collection.Iterator.foreach(Iterator.scala:941)
    at scala.collection.Iterator.foreach$(Iterator.scala:941)
    at org.klesun.lang.Lang$It.foreach(Lang.scala:199)
    at scala.collection.generic.Growable.$plus$plus$eq(Growable.scala:62)
    at scala.collection.generic.Growable.$plus$plus$eq$(Growable.scala:53)
    at scala.collection.mutable.ListBuffer.$plus$plus$eq(ListBuffer.scala:189)
    at scala.collection.mutable.ListBuffer.$plus$plus$eq(ListBuffer.scala:47)
    at scala.collection.TraversableOnce.to(TraversableOnce.scala:313)
    at scala.collection.TraversableOnce.to$(TraversableOnce.scala:311)
    at org.klesun.lang.Lang$It.to(Lang.scala:199)
    at scala.collection.TraversableOnce.toList(TraversableOnce.scala:297)
    at scala.collection.TraversableOnce.toList$(TraversableOnce.scala:297)
    at org.klesun.lang.Lang$It.toList(Lang.scala:199)
    at scala.collection.immutable.List.$plus$plus(List.scala:209)
    at org.klesun.deep_js_completion.resolvers.var_res.ArgRes.$anonfun$resolve$1(ArgRes.scala:447)
    at scala.collection.Iterator$$anon$11.nextCur(Iterator.scala:484)
    at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:490)
    at scala.collection.Iterator$ConcatIterator.hasNext(Iterator.scala:222)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:488)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at scala.collection.Iterator$ConcatIterator.advance(Iterator.scala:198)
    at scala.collection.Iterator$ConcatIterator.hasNext(Iterator.scala:225)
    at scala.collection.Iterator$$anon$12.hasNext(Iterator.scala:511)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at org.klesun.lang.Lang$.$anonfun$frs$2(Lang.scala:248)
    at org.klesun.lang.Lang$.$anonfun$frs$2$adapted(Lang.scala:248)
    at scala.collection.Iterator$$anon$12.hasNext(Iterator.scala:513)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at org.klesun.lang.Lang$It.lift(Lang.scala:227)
    at org.klesun.lang.Lang$.frs(Lang.scala:249)
    at org.klesun.deep_js_completion.contexts.SearchCtx.findExprType(SearchCtx.scala:118)
    at org.klesun.deep_js_completion.contexts.ExprCtx.findExprType(ExprCtx.scala:34)
    at org.klesun.deep_js_completion.contexts.ExprCtx.$anonfun$subCtxDirect$1(ExprCtx.scala:19)
    at org.klesun.deep_js_completion.contexts.FuncCtx.$anonfun$subCtxDirect$3(FuncCtx.scala:33)
    at scala.collection.Iterator$$anon$11.nextCur(Iterator.scala:484)
    at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:490)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at scala.collection.Iterator.foreach(Iterator.scala:941)
    at scala.collection.Iterator.foreach$(Iterator.scala:941)
    at org.klesun.lang.Lang$It.foreach(Lang.scala:199)
    at scala.collection.generic.Growable.$plus$plus$eq(Growable.scala:62)
    at scala.collection.generic.Growable.$plus$plus$eq$(Growable.scala:53)
    at scala.collection.mutable.ListBuffer.$plus$plus$eq(ListBuffer.scala:189)
    at scala.collection.mutable.ListBuffer.$plus$plus$eq(ListBuffer.scala:47)
    at scala.collection.TraversableOnce.to(TraversableOnce.scala:313)
    at scala.collection.TraversableOnce.to$(TraversableOnce.scala:311)
    at org.klesun.lang.Lang$It.to(Lang.scala:199)
    at scala.collection.TraversableOnce.toList(TraversableOnce.scala:297)
    at scala.collection.TraversableOnce.toList$(TraversableOnce.scala:297)
    at org.klesun.lang.Lang$It.toList(Lang.scala:199)
    at org.klesun.deep_js_completion.helpers.Mt$.mergeTypes(Mt.scala:28)
    at org.klesun.deep_js_completion.contexts.FuncCtx.$anonfun$subCtxDirect$2(FuncCtx.scala:33)
    at org.klesun.deep_js_completion.contexts.FuncCtx.$anonfun$getArg$1(FuncCtx.scala:54)
    at scala.Option.map(Option.scala:163)
    at org.klesun.deep_js_completion.contexts.FuncCtx.getArg(FuncCtx.scala:54)
    at org.klesun.deep_js_completion.resolvers.var_res.GenericRes$.$anonfun$resolveTypeExpr$11(GenericRes.scala:108)
    at org.klesun.deep_js_completion.resolvers.var_res.GenericRes$.$anonfun$getGenericTypeFromArg$2(GenericRes.scala:71)
    at org.klesun.deep_js_completion.resolvers.var_res.GenericRes$.getGenericTypeFromArg(GenericRes.scala:76)
    at org.klesun.deep_js_completion.resolvers.var_res.GenericRes$.$anonfun$getGenericTypeFromArg$4(GenericRes.scala:72)
    at scala.collection.TraversableLike.$anonfun$flatMap$1(TraversableLike.scala:244)
    at scala.collection.IndexedSeqOptimized.foreach(IndexedSeqOptimized.scala:36)
    at scala.collection.IndexedSeqOptimized.foreach$(IndexedSeqOptimized.scala:33)
    at scala.collection.mutable.ArrayOps$ofRef.foreach(ArrayOps.scala:198)
    at scala.collection.TraversableLike.flatMap(TraversableLike.scala:244)
    at scala.collection.TraversableLike.flatMap$(TraversableLike.scala:241)
    at scala.collection.mutable.ArrayOps$ofRef.flatMap(ArrayOps.scala:198)
    at org.klesun.deep_js_completion.resolvers.var_res.GenericRes$.getGenericTypeFromArg(GenericRes.scala:72)
    at org.klesun.deep_js_completion.resolvers.var_res.GenericRes$.$anonfun$getGenericTypeFromArg$1(GenericRes.scala:69)
    at scala.collection.TraversableLike.$anonfun$flatMap$1(TraversableLike.scala:244)
    at scala.collection.IndexedSeqOptimized.foreach(IndexedSeqOptimized.scala:36)
    at scala.collection.IndexedSeqOptimized.foreach$(IndexedSeqOptimized.scala:33)
    at scala.collection.mutable.ArrayOps$ofRef.foreach(ArrayOps.scala:198)
    at scala.collection.TraversableLike.flatMap(TraversableLike.scala:244)
    at scala.collection.TraversableLike.flatMap$(TraversableLike.scala:241)
    at scala.collection.mutable.ArrayOps$ofRef.flatMap(ArrayOps.scala:198)
    at org.klesun.deep_js_completion.resolvers.var_res.GenericRes$.getGenericTypeFromArg(GenericRes.scala:68)
    at org.klesun.deep_js_completion.resolvers.var_res.GenericRes$.$anonfun$resolveTypeExpr$10(GenericRes.scala:108)
    at scala.collection.Iterator$$anon$11.nextCur(Iterator.scala:484)
    at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:490)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at scala.collection.Iterator.foreach(Iterator.scala:941)
    at scala.collection.Iterator.foreach$(Iterator.scala:941)
    at org.klesun.lang.Lang$It.foreach(Lang.scala:199)
    at scala.collection.generic.Growable.$plus$plus$eq(Growable.scala:62)
    at scala.collection.generic.Growable.$plus$plus$eq$(Growable.scala:53)
    at scala.collection.mutable.ArrayBuilder$ofRef.$plus$plus$eq(ArrayBuilder.scala:103)
    at scala.collection.mutable.ArrayBuilder$ofRef.$plus$plus$eq(ArrayBuilder.scala:60)
    at scala.collection.TraversableLike.$anonfun$flatMap$1(TraversableLike.scala:244)
    at scala.collection.IndexedSeqOptimized.foreach(IndexedSeqOptimized.scala:36)
    at scala.collection.IndexedSeqOptimized.foreach$(IndexedSeqOptimized.scala:33)
    at scala.collection.mutable.ArrayOps$ofRef.foreach(ArrayOps.scala:198)
    at scala.collection.TraversableLike.flatMap(TraversableLike.scala:244)
    at scala.collection.TraversableLike.flatMap$(TraversableLike.scala:241)
    at scala.collection.mutable.ArrayOps$ofRef.flatMap(ArrayOps.scala:198)
    at org.klesun.deep_js_completion.resolvers.var_res.GenericRes$.$anonfun$resolveTypeExpr$6(GenericRes.scala:104)
    at org.klesun.deep_js_completion.resolvers.var_res.GenericRes$.parseTypePsi(GenericRes.scala:51)
    at org.klesun.deep_js_completion.resolvers.var_res.GenericRes$.$anonfun$parseTypePsi$1(GenericRes.scala:23)
    at scala.collection.Iterator$$anon$11.nextCur(Iterator.scala:484)
    at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:490)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at scala.collection.Iterator.foreach(Iterator.scala:941)
    at scala.collection.Iterator.foreach$(Iterator.scala:941)
    at org.klesun.lang.Lang$It.foreach(Lang.scala:199)
    at scala.collection.generic.Growable.$plus$plus$eq(Growable.scala:62)
    at scala.collection.generic.Growable.$plus$plus$eq$(Growable.scala:53)
    at scala.collection.mutable.ListBuffer.$plus$plus$eq(ListBuffer.scala:189)
    at scala.collection.mutable.ListBuffer.$plus$plus$eq(ListBuffer.scala:47)
    at scala.collection.TraversableOnce.to(TraversableOnce.scala:313)
    at scala.collection.TraversableOnce.to$(TraversableOnce.scala:311)
    at org.klesun.lang.Lang$It.to(Lang.scala:199)
    at scala.collection.TraversableOnce.toList(TraversableOnce.scala:297)
    at scala.collection.TraversableOnce.toList$(TraversableOnce.scala:297)
    at org.klesun.lang.Lang$It.toList(Lang.scala:199)
    at org.klesun.deep_js_completion.helpers.Mt$.mergeTypes(Mt.scala:28)
    at org.klesun.deep_js_completion.resolvers.var_res.GenericRes$.parseTypePsi(GenericRes.scala:24)
    at org.klesun.deep_js_completion.resolvers.var_res.GenericRes$.org$klesun$deep_js_completion$resolvers$var_res$GenericRes$$resolveTypeExpr(GenericRes.scala:132)
    at org.klesun.deep_js_completion.resolvers.var_res.GenericRes.$anonfun$resolveFunc$2(GenericRes.scala:154)
    at org.klesun.deep_js_completion.structures.JSDeepFunctionTypeImpl.getReturnType(JSDeepFunctionTypeImpl.scala:52)
    at org.klesun.deep_js_completion.helpers.Mt$.$anonfun$getReturnType$1(Mt.scala:128)
    at scala.collection.Iterator$$anon$11.nextCur(Iterator.scala:484)
    at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:490)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:488)
    at scala.collection.Iterator$ConcatIterator.hasNext(Iterator.scala:222)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:488)
    at scala.collection.Iterator$$anon$12.hasNext(Iterator.scala:511)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at org.klesun.lang.Lang$.$anonfun$frs$2(Lang.scala:248)
    at org.klesun.lang.Lang$.$anonfun$frs$2$adapted(Lang.scala:248)
    at scala.collection.Iterator$$anon$12.hasNext(Iterator.scala:513)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at org.klesun.lang.Lang$It.lift(Lang.scala:227)
    at org.klesun.lang.Lang$.frs(Lang.scala:249)
    at org.klesun.deep_js_completion.contexts.SearchCtx.findExprType(SearchCtx.scala:118)
    at org.klesun.deep_js_completion.contexts.ExprCtx.findExprType(ExprCtx.scala:34)
    at org.klesun.deep_js_completion.resolvers.VarRes.$anonfun$resolve$1(VarRes.scala:233)
    at scala.collection.Iterator$$anon$11.nextCur(Iterator.scala:484)
    at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:490)
    at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:489)
    at scala.collection.Iterator$ConcatIterator.hasNext(Iterator.scala:222)
    at scala.collection.Iterator$$anon$12.hasNext(Iterator.scala:511)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at org.klesun.lang.Lang$.$anonfun$frs$2(Lang.scala:248)
    at org.klesun.lang.Lang$.$anonfun$frs$2$adapted(Lang.scala:248)
    at scala.collection.Iterator$$anon$12.hasNext(Iterator.scala:513)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at org.klesun.lang.Lang$It.lift(Lang.scala:227)
    at org.klesun.lang.Lang$.frs(Lang.scala:249)
    at org.klesun.deep_js_completion.contexts.SearchCtx.findExprType(SearchCtx.scala:118)
    at org.klesun.deep_js_completion.contexts.ExprCtx.findExprType(ExprCtx.scala:34)
    at org.klesun.deep_js_completion.resolvers.MainRes$.$anonfun$resolveIn$20(MainRes.scala:79)
    at scala.collection.TraversableLike.$anonfun$flatMap$1(TraversableLike.scala:244)
    at scala.collection.immutable.List.foreach(List.scala:392)
    at scala.collection.TraversableLike.flatMap(TraversableLike.scala:244)
    at scala.collection.TraversableLike.flatMap$(TraversableLike.scala:241)
    at scala.collection.immutable.List.flatMap(List.scala:355)
    at org.klesun.deep_js_completion.resolvers.MainRes$.$anonfun$resolveIn$19(MainRes.scala:71)
    at org.klesun.deep_js_completion.structures.JSDeepFunctionTypeImpl.getReturnType(JSDeepFunctionTypeImpl.scala:52)
    at org.klesun.deep_js_completion.helpers.Mt$.$anonfun$getReturnType$1(Mt.scala:128)
    at scala.collection.Iterator$$anon$11.nextCur(Iterator.scala:484)
    at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:490)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:488)
    at scala.collection.Iterator$ConcatIterator.hasNext(Iterator.scala:222)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:488)
    at scala.collection.Iterator$$anon$12.hasNext(Iterator.scala:511)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at org.klesun.lang.Lang$.$anonfun$frs$2(Lang.scala:248)
    at org.klesun.lang.Lang$.$anonfun$frs$2$adapted(Lang.scala:248)
    at scala.collection.Iterator$$anon$12.hasNext(Iterator.scala:513)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at org.klesun.lang.Lang$It.lift(Lang.scala:227)
    at org.klesun.lang.Lang$.frs(Lang.scala:249)
    at org.klesun.deep_js_completion.contexts.SearchCtx.findExprType(SearchCtx.scala:118)
    at org.klesun.deep_js_completion.contexts.ExprCtx.findExprType(ExprCtx.scala:34)
    at org.klesun.deep_js_completion.resolvers.MainRes$.$anonfun$resolveIn$30(MainRes.scala:99)
    at scala.collection.TraversableLike.$anonfun$flatMap$1(TraversableLike.scala:244)
    at scala.collection.immutable.List.foreach(List.scala:392)
    at scala.collection.TraversableLike.flatMap(TraversableLike.scala:244)
    at scala.collection.TraversableLike.flatMap$(TraversableLike.scala:241)
    at scala.collection.immutable.List.flatMap(List.scala:355)
    at org.klesun.deep_js_completion.resolvers.MainRes$.resolveIn(MainRes.scala:99)
    at org.klesun.deep_js_completion.contexts.SearchCtx.findExprType(SearchCtx.scala:107)
    at org.klesun.deep_js_completion.contexts.ExprCtx.findExprType(ExprCtx.scala:34)
    at org.klesun.deep_js_completion.resolvers.VarRes.$anonfun$resolveFunc$2(VarRes.scala:175)
    at scala.collection.TraversableLike.$anonfun$flatMap$1(TraversableLike.scala:244)
    at scala.collection.immutable.List.foreach(List.scala:392)
    at scala.collection.TraversableLike.flatMap(TraversableLike.scala:244)
    at scala.collection.TraversableLike.flatMap$(TraversableLike.scala:241)
    at scala.collection.immutable.List.flatMap(List.scala:355)
    at org.klesun.deep_js_completion.resolvers.VarRes.resolveFunc(VarRes.scala:175)
    at org.klesun.deep_js_completion.structures.JSDeepClassType.$anonfun$getMethods$5(JSDeepClassType.scala:44)
    at org.klesun.deep_js_completion.helpers.Mt$.mkProp(Mt.scala:166)
    at org.klesun.deep_js_completion.structures.JSDeepClassType.$anonfun$getMethods$4(JSDeepClassType.scala:44)
    at scala.collection.TraversableLike.$anonfun$map$1(TraversableLike.scala:237)
    at scala.collection.IndexedSeqOptimized.foreach(IndexedSeqOptimized.scala:36)
    at scala.collection.IndexedSeqOptimized.foreach$(IndexedSeqOptimized.scala:33)
    at scala.collection.mutable.ArrayOps$ofRef.foreach(ArrayOps.scala:198)
    at scala.collection.TraversableLike.map(TraversableLike.scala:237)
    at scala.collection.TraversableLike.map$(TraversableLike.scala:230)
    at scala.collection.mutable.ArrayOps$ofRef.map(ArrayOps.scala:198)
    at org.klesun.deep_js_completion.structures.JSDeepClassType.getMethods(JSDeepClassType.scala:44)
    at org.klesun.deep_js_completion.structures.JSDeepClassType.asRecordType(JSDeepClassType.scala:33)
    at org.klesun.deep_js_completion.completion_providers.PropNamePvdr$.getFlatMems(PropNamePvdr.scala:91)
    at org.klesun.deep_js_completion.completion_providers.PropNamePvdr$.$anonfun$getMems$1(PropNamePvdr.scala:107)
    at scala.collection.Iterator$$anon$11.nextCur(Iterator.scala:484)
    at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:490)
    at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:489)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:488)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at scala.collection.Iterator.isEmpty(Iterator.scala:385)
    at scala.collection.Iterator.isEmpty$(Iterator.scala:385)
    at org.klesun.lang.Lang$It.isEmpty(Lang.scala:199)
    at scala.collection.TraversableOnce.nonEmpty(TraversableOnce.scala:114)
    at scala.collection.TraversableOnce.nonEmpty$(TraversableOnce.scala:114)
    at org.klesun.lang.Lang$It.nonEmpty(Lang.scala:199)
    at org.klesun.deep_js_completion.contexts.SearchCtx.hasTypeInfo(SearchCtx.scala:87)
    at org.klesun.deep_js_completion.contexts.SearchCtx.$anonfun$findExprType$1(SearchCtx.scala:109)
    at org.klesun.deep_js_completion.contexts.SearchCtx.$anonfun$findExprType$1$adapted(SearchCtx.scala:108)
    at scala.collection.Iterator$$anon$12.hasNext(Iterator.scala:513)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at org.klesun.lang.Lang$.$anonfun$frs$2(Lang.scala:248)
    at org.klesun.lang.Lang$.$anonfun$frs$2$adapted(Lang.scala:248)
    at scala.collection.Iterator$$anon$12.hasNext(Iterator.scala:513)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at org.klesun.lang.Lang$It.lift(Lang.scala:227)
    at org.klesun.lang.Lang$.frs(Lang.scala:249)
    at org.klesun.deep_js_completion.contexts.SearchCtx.findExprType(SearchCtx.scala:118)
    at org.klesun.deep_js_completion.contexts.ExprCtx.findExprType(ExprCtx.scala:34)
    at org.klesun.deep_js_completion.resolvers.var_res.ArgRes.$anonfun$resolveCommonJsFormatDef$6(ArgRes.scala:298)
    at scala.collection.Iterator$$anon$11.nextCur(Iterator.scala:484)
    at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:490)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:488)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at scala.collection.Iterator.foreach(Iterator.scala:941)
    at scala.collection.Iterator.foreach$(Iterator.scala:941)
    at org.klesun.lang.Lang$It.foreach(Lang.scala:199)
    at scala.collection.generic.Growable.$plus$plus$eq(Growable.scala:62)
    at scala.collection.generic.Growable.$plus$plus$eq$(Growable.scala:53)
    at scala.collection.mutable.ArrayBuilder$ofRef.$plus$plus$eq(ArrayBuilder.scala:103)
    at scala.collection.mutable.ArrayBuilder$ofRef.$plus$plus$eq(ArrayBuilder.scala:60)
    at scala.collection.TraversableLike.$anonfun$flatMap$1(TraversableLike.scala:244)
    at scala.collection.IndexedSeqOptimized.foreach(IndexedSeqOptimized.scala:36)
    at scala.collection.IndexedSeqOptimized.foreach$(IndexedSeqOptimized.scala:33)
    at scala.collection.mutable.ArrayOps$ofRef.foreach(ArrayOps.scala:198)
    at scala.collection.TraversableLike.flatMap(TraversableLike.scala:244)
    at scala.collection.TraversableLike.flatMap$(TraversableLike.scala:241)
    at scala.collection.mutable.ArrayOps$ofRef.flatMap(ArrayOps.scala:198)
    at org.klesun.deep_js_completion.resolvers.var_res.ArgRes.resolveCommonJsFormatDef(ArgRes.scala:293)
    at org.klesun.deep_js_completion.resolvers.FuncCallRes.$anonfun$resolveBuiltInFuncCall$2(FuncCallRes.scala:54)
    at scala.collection.Iterator$$anon$11.nextCur(Iterator.scala:484)
    at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:490)
    at scala.collection.Iterator$ConcatIterator.hasNext(Iterator.scala:222)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:488)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:488)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:488)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at scala.collection.Iterator$ConcatIterator.advance(Iterator.scala:198)
    at scala.collection.Iterator$ConcatIterator.hasNext(Iterator.scala:225)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:488)
    at scala.collection.Iterator$$anon$12.hasNext(Iterator.scala:511)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at org.klesun.lang.Lang$.$anonfun$frs$2(Lang.scala:248)
    at org.klesun.lang.Lang$.$anonfun$frs$2$adapted(Lang.scala:248)
    at scala.collection.Iterator$$anon$12.hasNext(Iterator.scala:513)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at org.klesun.lang.Lang$It.lift(Lang.scala:227)
    at org.klesun.lang.Lang$.frs(Lang.scala:249)
    at org.klesun.deep_js_completion.contexts.SearchCtx.findExprType(SearchCtx.scala:118)
    at org.klesun.deep_js_completion.contexts.ExprCtx.findExprType(ExprCtx.scala:34)
    at org.klesun.deep_js_completion.resolvers.VarRes.$anonfun$resolveMainDeclVar$1(VarRes.scala:137)
    at scala.collection.Iterator$$anon$11.nextCur(Iterator.scala:484)
    at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:490)
    at scala.collection.Iterator$ConcatIterator.hasNext(Iterator.scala:222)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:488)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at scala.collection.Iterator$ConcatIterator.advance(Iterator.scala:198)
    at scala.collection.Iterator$ConcatIterator.hasNext(Iterator.scala:225)
    at scala.collection.Iterator$$anon$12.hasNext(Iterator.scala:511)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at org.klesun.lang.Lang$.$anonfun$frs$2(Lang.scala:248)
    at org.klesun.lang.Lang$.$anonfun$frs$2$adapted(Lang.scala:248)
    at scala.collection.Iterator$$anon$12.hasNext(Iterator.scala:513)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at org.klesun.lang.Lang$It.lift(Lang.scala:227)
    at org.klesun.lang.Lang$.frs(Lang.scala:249)
    at org.klesun.deep_js_completion.contexts.SearchCtx.findExprType(SearchCtx.scala:118)
    at org.klesun.deep_js_completion.contexts.SearchCtx.findExprType(SearchCtx.scala:83)
    at org.klesun.deep_js_completion.completion_providers.PropNamePvdr.$anonfun$getGotoDeclarationTargets$4(PropNamePvdr.scala:247)
    at scala.collection.Iterator$$anon$11.nextCur(Iterator.scala:484)
    at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:490)
    at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:489)
    at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:489)
    at scala.collection.Iterator$$anon$12.hasNext(Iterator.scala:511)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:488)
    at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:489)
    at org.klesun.lang.Lang$It.hasNext(Lang.scala:204)
    at org.klesun.lang.Lang$It.lift(Lang.scala:227)
    at org.klesun.deep_js_completion.completion_providers.PropNamePvdr.getGotoDeclarationTargets(PropNamePvdr.scala:253)
    at com.intellij.codeInsight.navigation.actions.GotoDeclarationAction.findTargetElementsNoVS(GotoDeclarationAction.java:279)
    at com.intellij.codeInsight.navigation.CtrlMouseHandler.getInfoAt(CtrlMouseHandler.java:474)
    at com.intellij.codeInsight.navigation.CtrlMouseHandler.getInfoAt(CtrlMouseHandler.java:453)
    at com.intellij.codeInsight.navigation.CtrlMouseHandler.access$1700(CtrlMouseHandler.java:89)
    at com.intellij.codeInsight.navigation.CtrlMouseHandler$TooltipProvider.doExecute(CtrlMouseHandler.java:720)
    at com.intellij.codeInsight.navigation.CtrlMouseHandler$TooltipProvider.access$2200(CtrlMouseHandler.java:651)
    at com.intellij.codeInsight.navigation.CtrlMouseHandler$TooltipProvider$1.performInReadAction(CtrlMouseHandler.java:697)
    at com.intellij.openapi.progress.util.ReadTask.lambda$runBackgroundProcess$0(ReadTask.java:66)
    at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:977)
    at com.intellij.openapi.application.ReadAction.compute(ReadAction.java:57)
    at com.intellij.openapi.progress.util.ReadTask.runBackgroundProcess(ReadTask.java:66)
    at com.intellij.openapi.progress.util.ProgressIndicatorUtils.lambda$runUnderProgress$4(ProgressIndicatorUtils.java:227)
    at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$3(CoreProgressManager.java:180)
    at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:164)
    at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:582)
    at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:532)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:87)
    at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:151)
    at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:180)
    at com.intellij.openapi.progress.util.ProgressIndicatorUtils.runUnderProgress(ProgressIndicatorUtils.java:225)
    at com.intellij.openapi.progress.util.ProgressIndicatorUtils.access$100(ProgressIndicatorUtils.java:33)
    at com.intellij.openapi.progress.util.ProgressIndicatorUtils$4.run(ProgressIndicatorUtils.java:176)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
klesun commented 5 years ago

oh, ok, it was just a stupid debug that threw an exception on 1000 lines long trace