- Run the Indexer
- The Indexer is a general fast-pass scanner that picks up low-hanging fruits like functions with PHPDoc or scalar expressions (addition of 2 numbers always return int etc.)
- The Indexer deals with the entire project
- And also the PHP stubs since that consists of PHPDoc only.
- Since most PHP code is documented with PHPDoc, this should pick up most things
- Then we get that data, and pass it onto the Interpreter
- The Interpreter only runs on a single file, and returns Lazy Types on unknown things that must be resolved later when we get more info
- But, since we have already indexed the codebase some information will be available e.g. return types from class functions etc.
- After that, we try to link all the results from the interpreter on individual files by linking them with each other.
- We have a complete graph!
Created
December 17, 2015 08:45
-
-
Save msjyoo/58547c85e05f82ceb13c to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment