From 3237ad39f810e30b2bcc797460086e8bbc5565bb Mon Sep 17 00:00:00 2001 From: Sydney Acksman Date: Sun, 21 Jul 2019 05:17:42 -0500 Subject: [PATCH] Rename ExtensionRegistry.Add(IEnumerable) overload to AddRange --- .../Reflection/FileDescriptor.cs | 54 +++++++++---------- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/csharp/src/Google.Protobuf/Reflection/FileDescriptor.cs b/csharp/src/Google.Protobuf/Reflection/FileDescriptor.cs index 993f428cab..17f0082023 100644 --- a/csharp/src/Google.Protobuf/Reflection/FileDescriptor.cs +++ b/csharp/src/Google.Protobuf/Reflection/FileDescriptor.cs @@ -42,23 +42,23 @@ using static Google.Protobuf.Reflection.SourceCodeInfo.Types; namespace Google.Protobuf.Reflection { - /// - /// The syntax of a .proto file + /// + /// The syntax of a .proto file /// - public enum Syntax - { - /// - /// Proto2 syntax - /// - Proto2, - /// - /// Proto3 syntax - /// - Proto3, - /// - /// An unknown declared syntax - /// - Unknown + public enum Syntax + { + /// + /// Proto2 syntax + /// + Proto2, + /// + /// Proto3 syntax + /// + Proto3, + /// + /// An unknown declared syntax + /// + Unknown } /// @@ -107,17 +107,17 @@ namespace Google.Protobuf.Reflection declarations = new Lazy>(CreateDeclarationMap, LazyThreadSafetyMode.ExecutionAndPublication); - if (!proto.HasSyntax || proto.Syntax == "proto2") - { - Syntax = Syntax.Proto2; + if (!proto.HasSyntax || proto.Syntax == "proto2") + { + Syntax = Syntax.Proto2; } - else if (proto.Syntax == "proto3") - { - Syntax = Syntax.Proto3; + else if (proto.Syntax == "proto3") + { + Syntax = Syntax.Proto3; } - else - { - Syntax = Syntax.Unknown; + else + { + Syntax = Syntax.Unknown; } } @@ -249,8 +249,8 @@ namespace Google.Protobuf.Reflection /// internal FileDescriptorProto Proto { get; } - /// - /// The syntax of the file + /// + /// The syntax of the file /// public Syntax Syntax { get; }