@@ -26,28 +26,22 @@ class PointerType extends Type {
26
26
* `UnsafeMutablePointer` or `UnsafeBufferPointer`.
27
27
*/
28
28
class UnsafeTypedPointerType extends BoundGenericType {
29
- UnsafeTypedPointerType ( ) {
30
- this .getName ( ) .regexpMatch ( "Unsafe(Mutable|)(Buffer|)Pointer<.*" )
31
- }
29
+ UnsafeTypedPointerType ( ) { this .getName ( ) .regexpMatch ( "Unsafe(Mutable|)(Buffer|)Pointer<.*" ) }
32
30
}
33
31
34
32
/**
35
33
* A Swift unsafe raw pointer type such as `UnsafeRawPointer`,
36
34
* `UnsafeMutableRawPointer` or `UnsafeRawBufferPointer`.
37
35
*/
38
36
class UnsafeRawPointerType extends NominalType {
39
- UnsafeRawPointerType ( ) {
40
- this .getName ( ) .regexpMatch ( "Unsafe(Mutable|)Raw(Buffer|)Pointer" )
41
- }
37
+ UnsafeRawPointerType ( ) { this .getName ( ) .regexpMatch ( "Unsafe(Mutable|)Raw(Buffer|)Pointer" ) }
42
38
}
43
39
44
40
/**
45
41
* A Swift `OpaquePointer`.
46
42
*/
47
43
class OpaquePointerType extends NominalType {
48
- OpaquePointerType ( ) {
49
- this .getName ( ) = "OpaquePointer"
50
- }
44
+ OpaquePointerType ( ) { this .getName ( ) = "OpaquePointer" }
51
45
}
52
46
53
47
/**
@@ -63,25 +57,19 @@ class AutoreleasingUnsafeMutablePointerType extends BoundGenericType {
63
57
* A Swift `Unmanaged` object reference.
64
58
*/
65
59
class UnmanagedType extends BoundGenericType {
66
- UnmanagedType ( ) {
67
- this .getName ( ) .matches ( "Unmanaged<%" )
68
- }
60
+ UnmanagedType ( ) { this .getName ( ) .matches ( "Unmanaged<%" ) }
69
61
}
70
62
71
63
/**
72
64
* A Swift `CVaListPointer`.
73
65
*/
74
66
class CVaListPointerType extends NominalType {
75
- CVaListPointerType ( ) {
76
- this .getName ( ) = "CVaListPointer"
77
- }
67
+ CVaListPointerType ( ) { this .getName ( ) = "CVaListPointer" }
78
68
}
79
69
80
70
/**
81
71
* A Swift `ManagedBufferPointer`.
82
72
*/
83
73
class ManagedBufferPointerType extends BoundGenericType {
84
- ManagedBufferPointerType ( ) {
85
- this .getName ( ) .matches ( "ManagedBufferPointer<%" )
86
- }
74
+ ManagedBufferPointerType ( ) { this .getName ( ) .matches ( "ManagedBufferPointer<%" ) }
87
75
}
0 commit comments