Ignore constant expressions in CapturedVariableRewriter
The VB EE runs ```CapturedVariableRewriter```, so it ends up looking inside constants that will be rewritten into literal expressions in ```LocalRewriter```. This can result in spurious errors - e.g. when accessing an instance member in a ```nameof``` expression in a ```shared``` context. C# is unaffected since it runs ```CapturedVariableRewriter``` after ```LocalRewriter```. Fixes #3939
Showing
想要评论请 注册 或 登录