Retrieving the Scope of a statement

Jacob Carlborg doob at me.com
Thu Apr 23 09:26:22 UTC 2020


On Monday, 20 April 2020 at 16:56:51 UTC, Cristian Creteanu wrote:
> Hi!
>
> I am trying to implement autocomplete in DCD using DMD as a 
> library. After parsing & the semantic analysis of a given 
> source file, given a location (line & column number), I want to 
> retrieve the Scope* that the statement at the given line is 
> part of so that I can get the symbol table.

In addition to what Basile mentioned, you can have a look at 
VisualD [1], which now uses DMD for semantic analysis and 
intellisense.

[1] https://github.com/rainers/visuald/blob/master/vdc/semantic.d

--
/Jacob Carlborg


More information about the Digitalmars-d mailing list