mirror of
https://github.com/realm/SwiftLint.git
synced 2026-05-07 20:12:49 +00:00
5a2cf4b1fe
In particular lots of stuff that used to be needed with SourceKit that we no longer need to keep around. Identified using Periphery: https://github.com/peripheryapp/periphery
29 lines
749 B
Swift
29 lines
749 B
Swift
@preconcurrency import SourceKittenFramework
|
|
|
|
public extension SwiftDeclarationKind {
|
|
static let functionKinds: Set<SwiftDeclarationKind> = [
|
|
.functionAccessorAddress,
|
|
.functionAccessorDidset,
|
|
.functionAccessorGetter,
|
|
.functionAccessorMutableaddress,
|
|
.functionAccessorSetter,
|
|
.functionAccessorWillset,
|
|
.functionConstructor,
|
|
.functionDestructor,
|
|
.functionFree,
|
|
.functionMethodClass,
|
|
.functionMethodInstance,
|
|
.functionMethodStatic,
|
|
.functionOperator,
|
|
.functionSubscript,
|
|
]
|
|
|
|
static let typeKinds: Set<SwiftDeclarationKind> = [
|
|
.class,
|
|
.struct,
|
|
.typealias,
|
|
.associatedtype,
|
|
.enum,
|
|
]
|
|
}
|