I wanted to know how name resolution happens in swift compiler, but I am unable to find code that is responsible for name lookup.
A explanation of how name lookup happens (in swift compiler) will be a huge help.
I also suspect that name lookup is done in AST::DeclContext
class, but I am not sure.
Edit: Please try to use c++ (If you add any code snippet), as I am not much familiar with swift, but you can add little bit of swift also :).