zspitz / ExpressionTreeVisualizer

Debugging visualizer for expression trees
MIT License
340 stars 26 forks source link

VB formatter - Lambda containing block should use long syntax #67

Closed zspitz closed 5 years ago

zspitz commented 5 years ago

This:

Sub() Block
    Dim hour As Integer
    Dim msg As String
    hour = Date.Now.Hour
    If hour >= 6 AndAlso hour <= 18 Then msg = "Good day" Else msg = "Good night"
    Console.WriteLine(msg)
    hour
End Block

should really be formatted like this:

Sub()
    Dim hour As Integer
    Dim msg As String
    hour = Date.Now.Hour
    If hour >= 6 AndAlso hour <= 18 Then msg = "Good day" Else msg = "Good night"
    Console.WriteLine(msg)
    hour
End Sub
zspitz commented 5 years ago

See also #58