Skip to content

Commit

Permalink
Change implicit conmversions to only affect receivers and apply them …
Browse files Browse the repository at this point in the history
…at most once for every signature
  • Loading branch information
KacperFKorban committed Jul 5, 2021
1 parent bed98a1 commit 3c7bf6f
Show file tree
Hide file tree
Showing 3 changed files with 1,671 additions and 1,676 deletions.
5 changes: 0 additions & 5 deletions scaladoc-js/src/searchbar/SearchbarComponent.scala
Original file line number Diff line number Diff line change
Expand Up @@ -102,17 +102,12 @@ class SearchbarComponent(engine: SearchbarEngine, inkuireEngine: InkuireJSSearch
resultsDiv.scrollTop = 0
while (resultsDiv.hasChildNodes()) resultsDiv.removeChild(resultsDiv.lastChild)
val fragment = document.createDocumentFragment()
println(s"Searching query: $query")
parser.parse(query) match {
case EngineMatchersQuery(matchers) =>
println(s"Searching normal query: $query")
handleNewFluffQuery(matchers)
case BySignature(signature) =>
println(s"Searching inkuire query: $query")
timeoutHandle = setTimeout(1.second) {
println("Timeout activated")
inkuireEngine.query(query) { (p: PageEntry) =>
println(s"Found ${p.fullName}")
resultsDiv.appendChild(p.toHTMLInkuireHack)
} { (s: String) =>
resultsDiv.appendChild(s.toHTMLError)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ class InkuireJSSearchEngine {
case "engine_ready" =>
case "new_query" =>
case q =>
println(q)
val matches = JSON.parse(q).matches
val actualMatches = matches.asInstanceOf[js.Array[Dynamic]].map(dynamicToPageEntry)
actualMatches.foreach(callback)
Expand Down
Loading

0 comments on commit 3c7bf6f

Please sign in to comment.