dotnet/roslyn
Vedi su GitHubSimplify logic for deconstruction variables in ExpressionVariableFinder
Open
#15.064 aperta il 7 nov 2016
Area-CompilersConcept-Design DebtFeature - Tupleshelp wanted
Metriche repository
- Star
- (20.414 star)
- Metriche merge PR
- (Merge medio 6g 17h) (256 PR mergiate in 30 g)
Descrizione
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.