aboutsummaryrefslogtreecommitdiff
path: root/src/google/protobuf/compiler/csharp/csharp_source_generator_base.cc
diff options
context:
space:
mode:
authorGaurav Vaish <gaurav.vaish@gmail.com>2016-04-07 10:10:59 -0700
committerGaurav Vaish <gaurav.vaish@gmail.com>2016-04-07 10:33:21 -0700
commita6e39316a7ab891d86aad2a902a1d9d7b23fd95d (patch)
treec2244b7dba757cd57d05a17016e156f5779cceba /src/google/protobuf/compiler/csharp/csharp_source_generator_base.cc
parentcef46e115a3e1d23800eab70c0f704aba8bbfd96 (diff)
downloadprotobuf-a6e39316a7ab891d86aad2a902a1d9d7b23fd95d.tar.gz
protobuf-a6e39316a7ab891d86aad2a902a1d9d7b23fd95d.tar.bz2
protobuf-a6e39316a7ab891d86aad2a902a1d9d7b23fd95d.zip
Added support for internal_access for C#
Diffstat (limited to 'src/google/protobuf/compiler/csharp/csharp_source_generator_base.cc')
-rw-r--r--src/google/protobuf/compiler/csharp/csharp_source_generator_base.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/google/protobuf/compiler/csharp/csharp_source_generator_base.cc b/src/google/protobuf/compiler/csharp/csharp_source_generator_base.cc
index bd459dda..16411e49 100644
--- a/src/google/protobuf/compiler/csharp/csharp_source_generator_base.cc
+++ b/src/google/protobuf/compiler/csharp/csharp_source_generator_base.cc
@@ -60,7 +60,7 @@ void SourceGeneratorBase::WriteGeneratedCodeAttributes(io::Printer* printer) {
}
std::string SourceGeneratorBase::class_access_level() {
- return IsDescriptorProto(descriptor_) ? "internal" : "public"; // public_classes is always on.
+ return (IsDescriptorProto(descriptor_) || this->options()->internal_access) ? "internal" : "public";
}
const Options* SourceGeneratorBase::options() {