factored out source code analysis logic (for capturing angular module dependencies)