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

Can't get symbol information on certain invocation expressions #197

Open
cslong opened this issue Jun 27, 2022 · 0 comments
Open

Can't get symbol information on certain invocation expressions #197

cslong opened this issue Jun 27, 2022 · 0 comments

Comments

@cslong
Copy link
Contributor

cslong commented Jun 27, 2022

Describe the bug

Seems like we can't fetch the symbol information on some of the invocation expression syntax node.

For example
bundles.Add(New ScriptBundle("/bundles/jquery").Include("/Scripts/jquery-{version}.js")) in the VBWebApi Test project.

It might be the case that the inner expressions are causing the lookup in the semantic model to fail.

Expected behavior

Analyzer result should return System.Web.Optimization.BundleCollection.Add(System.Web.Optimization.Bundle), but instead only has the method name Add and Parameters.

Steps to Reproduce

Steps to reproduce the behavior:
Debug using the VBWebApi Test project and break on InvocationExpressionHandler.SetMetaData

@cslong cslong changed the title can't get symbol information on certain invocation expressions Can't get symbol information on certain invocation expressions Jun 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant