dotnet/roslyn
在 GitHub 查看Simplify logic for deconstruction variables in ExpressionVariableFinder
Open
#15,064 建立於 2016年11月7日
Area-CompilersConcept-Design DebtFeature - Tupleshelp wanted
倉庫指標
- Star
- (20,414 star)
- PR 合併指標
- (平均合併 6天 17小時) (30 天內合併 256 個 PR)
描述
Per discussion in PR https://github.com/dotnet/roslyn/pull/14871
- Maybe we don't need
MakeOutVariableandMakeDeconstructionVariable, instead one may suffice, by looking up the syntax tree. - Maybe we don't need
CollectVariablesFromDeconstructioninExpressionVariableFinder, instead we just need aVisitVariableDesignationwhich looks up the syntax tree to determine if it is an out or a deconstruction variable. - Then maybe we can re-use
ExpressionVariableFinderinstead ofForEachLoopBinder.CollectLocalsFromDeconstruction.