OscarRodriguezPrieto / ProgQuery

ProgQuery is a system to extract useful syntactic and semantic information from source code programs and store it in a graph database for posterior querying.
MIT License
15 stars 4 forks source link

Adding a Program Dependency Graph #5

Closed OscarRodriguezPrieto closed 6 years ago

OscarRodriguezPrieto commented 6 years ago

A new graph representation storing the relationships between the data (variables and objects) and the expressions or statements in which theses variables and objects are modified or used. To build this new representation, the following edge types were added :

Also, a new node type is added to complement this representation. It is called THIS_REFERENCE and it is associated to each of the class declarations. It is used to bind the explicit uses of "this" and also the STATE_MODIFIED_BY relations from any assignment or invocation that changes the state of the this (implicit or explicit) reference.