blob: 6bab531ce4ab8a2529b63b7278412ba39817af90 [file] [log] [blame]
class Foo {
var anInstanceVariable: String?
func justAnotherMethod() {
}
}
extension Foo {
/// This is just some documentation
func methodWithoutParameters() {
}
func methodWithParameters(param1: Foo, param2: Foo) {
}
@discardableResult
private func privateMethodWithAnnotation() -> Foo? {
return nil
}
}
class OtherClass {
func foo() {
}
var computedVariable: Int {
return 0
}
var computedVariable2: Int {
get { return 0 }
set { }
}
deinit { print("deinit") }
}
enum MyEnum {
case foo, bar
case baz
}