codelyzer icon indicating copy to clipboard operation
codelyzer copied to clipboard

Can't get symbol information on certain invocation expressions

Open cslong opened this issue 3 years ago • 0 comments

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 avatar Jun 27 '22 22:06 cslong