Regenerate nvim config
This commit is contained in:
@ -0,0 +1,56 @@
|
||||
@wrapper
|
||||
@modifier(
|
||||
*
|
||||
)
|
||||
class EquilateralTriangle: NamedShape {
|
||||
var sideLength: Double = 0.0
|
||||
|
||||
@attr
|
||||
init(
|
||||
sideLength: Double,
|
||||
name: String
|
||||
) {
|
||||
self.sideLength = sideLength
|
||||
}
|
||||
deinit {
|
||||
}
|
||||
|
||||
var perimeter: Double {
|
||||
willSet {
|
||||
}
|
||||
didSet {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@funcattr
|
||||
override func simpleDescription(a: int, b: int) -> String {
|
||||
return "An equilateral triangle with sides of length \(sideLength)."
|
||||
}
|
||||
}
|
||||
|
||||
@attr
|
||||
protocol ExampleProtocol {
|
||||
var simpleDescription: String { get }
|
||||
mutating func adjust()
|
||||
}
|
||||
|
||||
@available(*)
|
||||
func test() {
|
||||
|
||||
}
|
||||
|
||||
@attr(*)
|
||||
typealias Foo = Bar
|
||||
|
||||
@attr
|
||||
struct Foo<
|
||||
Bar
|
||||
> {
|
||||
@Provider
|
||||
var test = 1
|
||||
|
||||
subscript(index: Int) -> Int {
|
||||
var foo = 2
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,17 @@
|
||||
func Test() {
|
||||
(1 + 2)
|
||||
|
||||
[
|
||||
1,
|
||||
2,
|
||||
3,
|
||||
4,
|
||||
5
|
||||
].split()
|
||||
|
||||
let x = [
|
||||
1: 2,
|
||||
3: 4,
|
||||
]
|
||||
|
||||
}
|
||||
@ -0,0 +1,34 @@
|
||||
func Test() {
|
||||
if true {
|
||||
return
|
||||
} else if true {
|
||||
return
|
||||
}
|
||||
|
||||
switch x {
|
||||
case "1":
|
||||
print("x")
|
||||
default:
|
||||
print("y")
|
||||
@unknown default:
|
||||
print("z")
|
||||
}
|
||||
|
||||
for a in b {
|
||||
}
|
||||
|
||||
while true{
|
||||
}
|
||||
|
||||
repeat {
|
||||
|
||||
} while (true)
|
||||
|
||||
guard let name = person["name"] else {
|
||||
return
|
||||
}
|
||||
|
||||
return (
|
||||
x + 1
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user