Skip to content

What is the best way to capture usage of another function within another function? #109

Discussion options

You must be logged in to vote

Good questions! The premise of how stack graphs work is that we process of name resolution, i.e. linking references to definitions, is essentially split up in two parts.

The first part constructs a stack graph that should result in references being able to reach definitions. They do not necessarily have to be connected to them in a single step. This first part is what we use TSG for. The rules convert the program into a graph, but do this using fairly local information. We may create edges between the nodes of parents and children in the syntax tree, but usually not further than that.

The second part does a search in the graph to find the definitions that match references. This part trave…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@maxwnewcomer
Comment options

@hendrikvanantwerpen
Comment options

Answer selected by maxwnewcomer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants