Hacker News new | ask | show | jobs
by rubenbe 1022 days ago
I had the inverse: literally only a return statement impossible to guess:

            return output
          }
        }
      }
    }
  }
I guess this is one of the cases where an app should pretend to choose a "random" snippet, but actually the user doesn't want real randomness.
1 comments

Seems like something that could be solved using tree-sitter[1], though it would probably be pretty involved.

1. https://tree-sitter.github.io/tree-sitter/