I'm wondering the best way to approach this. I have a JavaScript file in my web app that has a bunch of different methods all with the same signature.
What I want to do is read in the JS file server side and parse out all the method names of only the methods that have that certain signature.
Let's say my JS file looked like below:
function DoSomething(s1, s2) { }
function DoSomething2(s1, s2) { }
function DoSomething3(s1, s2, s3) { }
Let's say the signature I was looking for was (s1, s2). I would want to process the JavaScript file and the result would be a List that had DoSomething and DoSomething2 in it.
Probably the best way to tackle this would be with Regex and String parsing at this point?