adrienjoly / algocodesearch

🕵️‍♀️ off-sprint project that intends to index symbols from a language server (LSP), for code search
5 stars 1 forks source link

Notes #1

Open adrienjoly opened 4 years ago

adrienjoly commented 4 years ago

Ideas of Use Cases that were discussed with @netgusto on 2019-09-06:

symbol ref search with symbol-type-based filtering/faceting

e.g. "just the variables called userConfig" https://github.com/algolia/crawler/search?q=userConfig&unscoped_q=userConfig

pattern matching

1. function chaining

e.g. "show me all the links between functionA and functionB" --> call paths

2. AST-based pattern matching

for() {
  if(){
    indexStuff()
  }
}

e.g. "loop" "condition" "indexing function call"

e.g. "loop" "indexing function call"

=> too deep paths

"calls to Runner"

=> too expensive to compute

adrienjoly commented 4 years ago

Demo gif:

algocodesearch-demo