Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add GetInteriorSymbols API for IMethodSymbols #11349

Closed
jmarolf opened this issue May 16, 2016 · 3 comments
Closed

Add GetInteriorSymbols API for IMethodSymbols #11349

jmarolf opened this issue May 16, 2016 · 3 comments
Labels
Area-Compilers Concept-API This issue involves adding, removing, clarification, or modification of an API. Feature Request
Milestone

Comments

@jmarolf
Copy link
Contributor

jmarolf commented May 16, 2016

There is no good way to get interior symbols on a method symbol today. Its currently impossible for completion to do it performantly with out a speculative SemanticModel

Notes: #11193

@gafter gafter added Concept-API This issue involves adding, removing, clarification, or modification of an API. Feature Request labels May 17, 2016
@rchande
Copy link
Contributor

rchande commented May 18, 2016

Worked around in #11398

@rchande rchande mentioned this issue May 18, 2016
@gafter
Copy link
Member

gafter commented Aug 10, 2016

By design, the interior symbols of a symbol are only stable within a particular SemanticModel. So this would have to be an API on the SemanticModel of the enclosing symbol.

It is not just for method symbols. Even a field's initializer can declare locals (out variables or pattern variables).

@gafter gafter added this to the 3.0 milestone Aug 10, 2016
@jaredpar jaredpar modified the milestones: 16.0, Unknown Sep 7, 2018
@CyrusNajmabadi
Copy link
Member

Not sure what the driving scenario is for this. Even if the compiler added this, i'm not sure where we'd use this or how we'd measure that it benefitted us. Closing out.

@CyrusNajmabadi CyrusNajmabadi closed this as not planned Won't fix, can't repro, duplicate, stale Oct 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Compilers Concept-API This issue involves adding, removing, clarification, or modification of an API. Feature Request
Projects
None yet
Development

No branches or pull requests

5 participants