// VisitRPC checks the rpc.
VisitRPC checks the rpc.
// VisitRPC checks the rpc .
func (v *rpcNamesCaseVisitor) VisitRPC(rpc *parser.RPC) bool {
	if v.convention == config.ConventionLowerCamel && !strs.IsLowerCamelCase(rpc.RPCName) {
		v.AddFailuref(rpc.Meta.Pos, "RPC name %q must be LowerCamelCase", rpc.RPCName)
	} else if v.convention == config.ConventionUpperSnake && !strs.IsUpperSnakeCase(rpc.RPCName) {
		v.AddFailuref(rpc.Meta.Pos, "RPC name %q must be UpperSnakeCase", rpc.RPCName)
	} else if v.convention == config.ConventionLowerSnake && !strs.IsLowerSnakeCase(rpc.RPCName) {
		v.AddFailuref(rpc.Meta.Pos, "RPC name %q must be LowerSnakeCase", rpc.RPCName)
	}
	return false
}
func ( v * rpcNamesCaseVisitor ) VisitRPC ( rpc * parser . RPC ) bool { if v . convention == config . ConventionLowerCamel && ! strs . IsLowerCamelCase ( rpc . RPCName ) { v . AddFailuref ( rpc . Meta . Pos , " " , rpc . RPCName ) } else if v . convention == config . ConventionUpperSnake && ! strs . IsUpperSnakeCase ( rpc . RPCName ) { v . AddFailuref ( rpc . Meta . Pos , " " , rpc . RPCName ) } else if v . convention == config . ConventionLowerSnake && ! strs . IsLowerSnakeCase ( rpc . RPCName ) { v . AddFailuref ( rpc . Meta . Pos , " " , rpc . RPCName ) } return false }
VisitRPC checks the rpc.
VisitRPC checks the rpc .