Code
The code that I have written can be found here [it's in the form of a comparison with the original repository]. Most of the work is done on the files static_analyzer.cpp and static_analyzer.h https://github.com/godotengine/godot/compare/master...psuhas77:gsoc
Background