pxp-lang / pxp

A suite of high-performance tools for PHP developers – includes a code formatter, static analyser, language server and superset language.
https://pxplang.org
Other
784 stars 0 forks source link

Build a Type Inference Engine #67

Closed ryangjchandler closed 3 months ago

ryangjchandler commented 4 months ago

Related to #44.

The idea here is to take in an Index and AST, then walk through the AST to generate a kind of TypeMap.

That TypeMap can then be used to get the type of a specific Node in the AST, making it easy to provide autocompletion requests and perform type checks.

At least, that's the idea.