diff options
author | Jon Skeet <jonskeet@google.com> | 2015-11-19 13:05:17 +0000 |
---|---|---|
committer | Jon Skeet <jonskeet@google.com> | 2015-11-19 13:05:17 +0000 |
commit | a6361a124a6537c69aaaa4e667372ba4e89c1fd1 (patch) | |
tree | b936dfc76135357ffb0bf934270625929ce6b715 /src/google/protobuf/compiler/csharp/csharp_helpers.cc | |
parent | ff37edcd8a533b5440dfae541ea85f8b41d94e55 (diff) |
Rename "umbrella" to "reflection" consistently.
This changes csharp_names.h, which will require a corresponding change in GRPC.
Diffstat (limited to 'src/google/protobuf/compiler/csharp/csharp_helpers.cc')
-rw-r--r-- | src/google/protobuf/compiler/csharp/csharp_helpers.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/google/protobuf/compiler/csharp/csharp_helpers.cc b/src/google/protobuf/compiler/csharp/csharp_helpers.cc index 803e96b7..c51fe44b 100644 --- a/src/google/protobuf/compiler/csharp/csharp_helpers.cc +++ b/src/google/protobuf/compiler/csharp/csharp_helpers.cc @@ -126,8 +126,7 @@ std::string GetFileNameBase(const FileDescriptor* descriptor) { return UnderscoresToPascalCase(StripDotProto(base)); } -std::string GetUmbrellaClassUnqualifiedName(const FileDescriptor* descriptor) { - // umbrella_classname can no longer be set using message option. +std::string GetReflectionClassUnqualifiedName(const FileDescriptor* descriptor) { // TODO: Detect collisions with existing messages, and append an underscore if necessary. return GetFileNameBase(descriptor) + "Reflection"; } @@ -194,12 +193,12 @@ std::string ToCSharpName(const std::string& name, const FileDescriptor* file) { return "global::" + result; } -std::string GetUmbrellaClassName(const FileDescriptor* descriptor) { +std::string GetReflectionClassName(const FileDescriptor* descriptor) { std::string result = GetFileNamespace(descriptor); if (!result.empty()) { result += '.'; } - result += GetUmbrellaClassUnqualifiedName(descriptor); + result += GetReflectionClassUnqualifiedName(descriptor); return "global::" + result; } |