@@ -26,11 +26,13 @@ import (
2626 "github.com/iancoleman/strcase"
2727)
2828
29- var typedDataImport = "dart:typed_data"
30- var httpImport = "package:http/http.dart as http"
31- var serviceClientImport = "package:google_cloud_rpc/service_client.dart"
32- var encodingImport = "package:google_cloud_protobuf/src/encoding.dart"
33- var protobufImport = "package:google_cloud_protobuf/protobuf.dart"
29+ var (
30+ typedDataImport = "dart:typed_data"
31+ httpImport = "package:http/http.dart as http"
32+ serviceClientImport = "package:google_cloud_rpc/service_client.dart"
33+ encodingImport = "package:google_cloud_protobuf/src/encoding.dart"
34+ protobufImport = "package:google_cloud_protobuf/protobuf.dart"
35+ )
3436
3537var needsCtorValidation = map [string ]string {
3638 ".google.protobuf.Duration" : "" ,
@@ -57,14 +59,16 @@ var usesCustomEncoding = map[string]string{
5759 ".google.protobuf.Value" : "" ,
5860}
5961
60- // nestedMessageChar is used to concatenate a message and a child message.
61- var nestedMessageChar = "_"
62+ var (
63+ // nestedMessageChar is used to concatenate a message and a child message.
64+ nestedMessageChar = "_"
6265
63- // nestedEnumChar is used to concatenate a message and a child enum.
64- var nestedEnumChar = "_"
66+ // nestedEnumChar is used to concatenate a message and a child enum.
67+ nestedEnumChar = "_"
6568
66- // deconflictChar is appended to a name to avoid conflicting with a Dart identifier.
67- var deconflictChar = "$"
69+ // deconflictChar is appended to a name to avoid conflicting with a Dart identifier.
70+ deconflictChar = "$"
71+ )
6872
6973// reservedNames is a blocklist of Dart reserved words.
7074//
0 commit comments