Always create dedicated InitializerSemanticModel for parameter default value.
Even for cases when the parameter is not part of a type member declaration, i.e. owned by an anonymous method or a local function. Fixes #16748. Fixes #16374. Also implement SemanticModel.GetDeclaredSymbol(ParameterSyntax) for parameters of a Local Function. Fixes # 16757.
Showing
想要评论请 注册 或 登录