@@ -22,6 +22,7 @@ module Twirp {
2222
2323 /**
2424 * A *.twirp.go file generated by Twirp.
25+ *
2526 * This file contains all the types representing protobuf services and should have a companion *.pb.go file.
2627 */
2728 class ServicesGeneratedFile extends File {
@@ -66,7 +67,7 @@ module Twirp {
6667 override string getName ( ) { result = namedType .getName ( ) }
6768
6869 /**
69- * Returns the named type on top of this interface type
70+ * Gets the named type on top of this interface type.
7071 */
7172 NamedType getNamedType ( ) { result = namedType }
7273 }
@@ -87,7 +88,7 @@ module Twirp {
8788 }
8889
8990 /**
90- * A Twirp server
91+ * A Twirp server.
9192 */
9293 class ServiceServerType extends NamedType {
9394 ServiceServerType ( ) {
@@ -101,22 +102,23 @@ module Twirp {
101102 }
102103
103104 /**
104- * A Twirp function to construct a Client
105+ * A Twirp function to construct a Client.
105106 */
106107 class ClientConstructor extends Function {
107108 ClientConstructor ( ) {
108109 exists ( ServiceClientType c |
109110 this .getName ( ) .toLowerCase ( ) = "new" + c .getName ( ) .toLowerCase ( ) and
110- this .getParameter ( 0 ) . getType ( ) instanceof StringType and
111+ this .getParameterType ( 0 ) instanceof StringType and
111112 this .getParameterType ( 1 ) .getName ( ) = "HTTPClient" and
112113 this .getDeclaration ( ) .getLocation ( ) .getFile ( ) instanceof ServicesGeneratedFile
113114 )
114115 }
115116 }
116117
117118 /**
118- * A Twirp function to construct a Server
119- * Its first argument should be an implementation of the service interface
119+ * A Twirp function to construct a Server.
120+ *
121+ * Its first argument should be an implementation of the service interface.
120122 */
121123 class ServerConstructor extends Function {
122124 ServerConstructor ( ) {
@@ -129,7 +131,7 @@ module Twirp {
129131 }
130132
131133 /**
132- * An SSRF sink for the Client constructor
134+ * An SSRF sink for the Client constructor.
133135 */
134136 class ClientRequestUrlAsSink extends RequestForgery:: Sink {
135137 ClientRequestUrlAsSink ( ) {
@@ -145,7 +147,7 @@ module Twirp {
145147 }
146148
147149 /**
148- * A service handler
150+ * A service handler.
149151 */
150152 class ServiceHandler extends Method {
151153 ServiceHandler ( ) {
0 commit comments