@@ -95,13 +95,13 @@ extension Generator {
95
95
self . method = method
96
96
97
97
let rpcType = streamingType ( self . method)
98
- printRpcFunctionImplementation ( rpcType: rpcType)
99
- printRpcFunctionWrapper ( rpcType: rpcType)
98
+ printRPCFunctionImplementation ( rpcType: rpcType)
99
+ printRPCFunctionWrapper ( rpcType: rpcType)
100
100
}
101
101
}
102
102
}
103
103
104
- private func printRpcFunctionImplementation ( rpcType: StreamingType ) {
104
+ private func printRPCFunctionImplementation ( rpcType: StreamingType ) {
105
105
let argumentsBuilder : ( ( ) -> Void ) ?
106
106
switch rpcType {
107
107
case . unary, . serverStreaming:
@@ -112,7 +112,7 @@ extension Generator {
112
112
argumentsBuilder = nil
113
113
}
114
114
let callTypeWithoutPrefix = Types . call ( for: rpcType, withGRPCPrefix: false )
115
- printRpcFunction ( rpcType: rpcType, name: self . methodMakeFunctionCallName) {
115
+ printRPCFunction ( rpcType: rpcType, name: self . methodMakeFunctionCallName) {
116
116
self . withIndentation ( " return self.make \( callTypeWithoutPrefix) " , braces: . round) {
117
117
self . println ( " path: \( self . methodPathUsingClientMetadata) , " )
118
118
argumentsBuilder ? ( )
@@ -124,7 +124,7 @@ extension Generator {
124
124
}
125
125
}
126
126
127
- private func printRpcFunctionWrapper ( rpcType: StreamingType ) {
127
+ private func printRPCFunctionWrapper ( rpcType: StreamingType ) {
128
128
let functionName = methodMakeFunctionCallName
129
129
let functionWrapperName = methodMakeFunctionCallWrapperName
130
130
guard functionName != functionWrapperName else { return }
@@ -139,15 +139,15 @@ extension Generator {
139
139
default :
140
140
argumentsBuilder = nil
141
141
}
142
- printRpcFunction ( rpcType: rpcType, name: functionWrapperName) {
142
+ printRPCFunction ( rpcType: rpcType, name: functionWrapperName) {
143
143
self . withIndentation ( " return self. \( functionName) " , braces: . round) {
144
144
argumentsBuilder ? ( )
145
145
self . println ( " callOptions: callOptions " )
146
146
}
147
147
}
148
148
}
149
149
150
- private func printRpcFunction ( rpcType: StreamingType , name: String , bodyBuilder: ( ( ) -> Void ) ? ) {
150
+ private func printRPCFunction ( rpcType: StreamingType , name: String , bodyBuilder: ( ( ) -> Void ) ? ) {
151
151
let callType = Types . call ( for: rpcType)
152
152
self . printFunction (
153
153
name: name,
0 commit comments