Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
3237ad39
Commit
3237ad39
authored
Jul 21, 2019
by
Sydney Acksman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename ExtensionRegistry.Add(IEnumerable<Extension>) overload to AddRange
parent
930db675
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
27 deletions
+27
-27
FileDescriptor.cs
csharp/src/Google.Protobuf/Reflection/FileDescriptor.cs
+27
-27
No files found.
csharp/src/Google.Protobuf/Reflection/FileDescriptor.cs
View file @
3237ad39
...
...
@@ -42,23 +42,23 @@ using static Google.Protobuf.Reflection.SourceCodeInfo.Types;
namespace
Google.Protobuf.Reflection
{
/// <summary>
/// The syntax of a .proto file
/// <summary>
/// The syntax of a .proto file
/// </summary>
public
enum
Syntax
{
/// <summary>
/// Proto2 syntax
/// </summary>
Proto2
,
/// <summary>
/// Proto3 syntax
/// </summary>
Proto3
,
/// <summary>
/// An unknown declared syntax
/// </summary>
Unknown
public
enum
Syntax
{
/// <summary>
/// Proto2 syntax
/// </summary>
Proto2
,
/// <summary>
/// Proto3 syntax
/// </summary>
Proto3
,
/// <summary>
/// An unknown declared syntax
/// </summary>
Unknown
}
/// <summary>
...
...
@@ -107,17 +107,17 @@ namespace Google.Protobuf.Reflection
declarations
=
new
Lazy
<
Dictionary
<
IDescriptor
,
DescriptorDeclaration
>>(
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
/// </value>
internal
FileDescriptorProto
Proto
{
get
;
}
/// <summary>
/// The syntax of the file
/// <summary>
/// The syntax of the file
/// </summary>
public
Syntax
Syntax
{
get
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment