Skip to content

Instantly share code, notes, and snippets.

@harrisony
Created December 5, 2010 09:39
Show Gist options
  • Save harrisony/728974 to your computer and use it in GitHub Desktop.
Save harrisony/728974 to your computer and use it in GitHub Desktop.
Module ImplicitLineContinuations
'After a comma (,).
Public Function test1(ByVal x As Integer,
ByVal y As Object, ByVal z As Object)
Return 1
End Function
'After an open parenthesis (() or before a closing parenthesis ()).
Public Function test2(
ByVal x As Integer, ByVal y As Object, ByVal z As Object
)
Return 1
End Function
'After assignment operators (=, &=, :=, +=, -=, *=, /=, \=, ^=, <<=, >>=).
Public test3 =
My.Application.Info
'After the concatenation operator (&).
Public test4 = vbNewLine &
vbCrLf
'After binary operators (+, -, /, *, Mod, <>, <, >, <=, >=, ^, >>, <<, And, AndAlso, Or, OrElse, Like, Xor) within an expression.
Public test5 = 1 +
2 Mod
5
'After the Is and IsNot operators.
Public Function test6()
If TypeOf ("test") Is
String Then
Return 1
End If
Return 0
End Function
End Module
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment