webdev
                                
                                 webdev copied to clipboard
                                
                                    webdev copied to clipboard
                            
                            
                            
                        `Library` response always returns empty lists for top level `variables` and `functions`
A full Library response should include references for any top-level classes, fields/variables, and functions that are included with the library. Currently dwds doesn't populate the variables and functions properties of Library.
This can be easily reproduced by requesting the Library which contains main(), which should be included in the functions list.
This blocks the program explorer work.
This information will be easy to provide using debug symbols work, which is currently in progress. This work requires significant changes to DDC and dwds and therefore will take some time. Let's brainstorm on possible workarounds for this issue.
@nshahan is this information that we should be able to retrieve now?
The debug symbols project referenced above was deprioritized so that hasn't happened yet but there are no technical blockers for it in the future. AFAIK this is still a deficiency of Dart centric debugging on the web. That is, given a JavaScript object that represents a Dart library at runtime it isn't obvious what members represent entities from the Dart library.