dotnet/roslyn

VB compiler should not "optimize" Select statements during initial binding

Open

#374 geöffnet am 10. Feb. 2015

Auf GitHub ansehen
 (3 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)C# (4.257 Forks)batch import
Area-CompilersBugConcept-Design DebtLanguage-VBhelp wanted

Repository-Metriken

Stars
 (20.414 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 6T 17h) (256 gemergte PRs in 30 T)

Beschreibung

The VB compiler "optimizes" Select statements during initial binding, generating and storing a lowered form for the cases depending on the structure of the whole select statement.

Generally speaking such transformations belong in lowering. Since it operates at the level of the whole Select statement after all of the parts have been bound, it can be moved en masse to a later phase. I recommend the local lowering phase.

Any intermediate phases that depend on the lowering having taken place are likely buggy, since different lowered forms may be generated in different circumstances.

[ported from TFS DevDiv 941313]

Contributor Guide