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
c784be31
Commit
c784be31
authored
Jun 17, 2009
by
Jon Skeet
Committed by
unknown
Jun 17, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused variable in static constructors
parent
8729cf46
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
57 additions
and
54 deletions
+57
-54
AddressBookProtos.cs
src/AddressBook/AddressBookProtos.cs
+3
-3
MessageGenerator.cs
src/ProtoGen/MessageGenerator.cs
+5
-2
UnitTestCSharpOptionsProtoFile.cs
...Buffers.Test/TestProtos/UnitTestCSharpOptionsProtoFile.cs
+1
-1
UnitTestCustomOptionsProtoFile.cs
...Buffers.Test/TestProtos/UnitTestCustomOptionsProtoFile.cs
+17
-17
UnitTestEmbedOptimizeForProtoFile.cs
...fers.Test/TestProtos/UnitTestEmbedOptimizeForProtoFile.cs
+1
-1
UnitTestImportProtoFile.cs
...rotocolBuffers.Test/TestProtos/UnitTestImportProtoFile.cs
+1
-1
UnitTestMessageSetProtoFile.cs
...colBuffers.Test/TestProtos/UnitTestMessageSetProtoFile.cs
+6
-6
UnitTestOptimizeForProtoFile.cs
...olBuffers.Test/TestProtos/UnitTestOptimizeForProtoFile.cs
+3
-3
UnitTestProtoFile.cs
src/ProtocolBuffers.Test/TestProtos/UnitTestProtoFile.cs
+0
-0
CSharpOptions.cs
src/ProtocolBuffers/DescriptorProtos/CSharpOptions.cs
+2
-2
DescriptorProtoFile.cs
src/ProtocolBuffers/DescriptorProtos/DescriptorProtoFile.cs
+18
-18
No files found.
src/AddressBook/AddressBookProtos.cs
View file @
c784be31
...
@@ -357,7 +357,7 @@ namespace Google.ProtocolBuffers.Examples.AddressBook {
...
@@ -357,7 +357,7 @@ namespace Google.ProtocolBuffers.Examples.AddressBook {
}
}
}
}
static
PhoneNumber
()
{
static
PhoneNumber
()
{
pbd
::
FileDescriptor
descriptor
=
global
::
Google
.
ProtocolBuffers
.
Examples
.
AddressBook
.
AddressBookProtos
.
Descriptor
;
object
.
ReferenceEquals
(
global
::
Google
.
ProtocolBuffers
.
Examples
.
AddressBook
.
AddressBookProtos
.
Descriptor
,
null
)
;
}
}
}
}
...
@@ -707,7 +707,7 @@ namespace Google.ProtocolBuffers.Examples.AddressBook {
...
@@ -707,7 +707,7 @@ namespace Google.ProtocolBuffers.Examples.AddressBook {
}
}
}
}
static
Person
()
{
static
Person
()
{
pbd
::
FileDescriptor
descriptor
=
global
::
Google
.
ProtocolBuffers
.
Examples
.
AddressBook
.
AddressBookProtos
.
Descriptor
;
object
.
ReferenceEquals
(
global
::
Google
.
ProtocolBuffers
.
Examples
.
AddressBook
.
AddressBookProtos
.
Descriptor
,
null
)
;
}
}
}
}
...
@@ -949,7 +949,7 @@ namespace Google.ProtocolBuffers.Examples.AddressBook {
...
@@ -949,7 +949,7 @@ namespace Google.ProtocolBuffers.Examples.AddressBook {
}
}
}
}
static
AddressBook
()
{
static
AddressBook
()
{
pbd
::
FileDescriptor
descriptor
=
global
::
Google
.
ProtocolBuffers
.
Examples
.
AddressBook
.
AddressBookProtos
.
Descriptor
;
object
.
ReferenceEquals
(
global
::
Google
.
ProtocolBuffers
.
Examples
.
AddressBook
.
AddressBookProtos
.
Descriptor
,
null
)
;
}
}
}
}
...
...
src/ProtoGen/MessageGenerator.cs
View file @
c784be31
...
@@ -140,8 +140,11 @@ namespace Google.ProtocolBuffers.ProtoGen {
...
@@ -140,8 +140,11 @@ namespace Google.ProtocolBuffers.ProtoGen {
// Force the static initialization code for the file to run, since it may
// Force the static initialization code for the file to run, since it may
// initialize static variables declared in this class.
// initialize static variables declared in this class.
writer
.
WriteLine
(
"static {0}() {{"
,
ClassName
);
writer
.
WriteLine
(
"static {0}() {{"
,
ClassName
);
// Note that the variable is needed just so we can access the property
// We call object.ReferenceEquals() just to make it a valid statement on its own.
writer
.
WriteLine
(
" pbd::FileDescriptor descriptor = {0}.Descriptor;"
,
DescriptorUtil
.
GetFullUmbrellaClassName
(
Descriptor
));
// Another option would be GetType(), but that causes problems in DescriptorProtoFile,
// where the bootstrapping is somewhat recursive - type initializers call
// each other, effectively. We temporarily see Descriptor as null.
writer
.
WriteLine
(
" object.ReferenceEquals({0}.Descriptor, null);"
,
DescriptorUtil
.
GetFullUmbrellaClassName
(
Descriptor
));
writer
.
WriteLine
(
"}"
);
writer
.
WriteLine
(
"}"
);
writer
.
Outdent
();
writer
.
Outdent
();
...
...
src/ProtocolBuffers.Test/TestProtos/UnitTestCSharpOptionsProtoFile.cs
View file @
c784be31
...
@@ -346,7 +346,7 @@ namespace Google.ProtocolBuffers.TestProtos {
...
@@ -346,7 +346,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
}
}
}
static
OptionsMessage
()
{
static
OptionsMessage
()
{
pbd
::
FileDescriptor
descriptor
=
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
UnitTestCSharpOptionsProtoFile
.
Descriptor
;
object
.
ReferenceEquals
(
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
UnitTestCSharpOptionsProtoFile
.
Descriptor
,
null
)
;
}
}
}
}
...
...
src/ProtocolBuffers.Test/TestProtos/UnitTestCustomOptionsProtoFile.cs
View file @
c784be31
...
@@ -604,7 +604,7 @@ namespace Google.ProtocolBuffers.TestProtos {
...
@@ -604,7 +604,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
}
}
}
static
TestMessageWithCustomOptions
()
{
static
TestMessageWithCustomOptions
()
{
pbd
::
FileDescriptor
descriptor
=
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
UnitTestCustomOptionsProtoFile
.
Descriptor
;
object
.
ReferenceEquals
(
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
UnitTestCustomOptionsProtoFile
.
Descriptor
,
null
)
;
}
}
}
}
...
@@ -777,7 +777,7 @@ namespace Google.ProtocolBuffers.TestProtos {
...
@@ -777,7 +777,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
}
static
CustomOptionFooRequest
()
{
static
CustomOptionFooRequest
()
{
pbd
::
FileDescriptor
descriptor
=
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
UnitTestCustomOptionsProtoFile
.
Descriptor
;
object
.
ReferenceEquals
(
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
UnitTestCustomOptionsProtoFile
.
Descriptor
,
null
)
;
}
}
}
}
...
@@ -950,7 +950,7 @@ namespace Google.ProtocolBuffers.TestProtos {
...
@@ -950,7 +950,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
}
static
CustomOptionFooResponse
()
{
static
CustomOptionFooResponse
()
{
pbd
::
FileDescriptor
descriptor
=
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
UnitTestCustomOptionsProtoFile
.
Descriptor
;
object
.
ReferenceEquals
(
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
UnitTestCustomOptionsProtoFile
.
Descriptor
,
null
)
;
}
}
}
}
...
@@ -1133,7 +1133,7 @@ namespace Google.ProtocolBuffers.TestProtos {
...
@@ -1133,7 +1133,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
}
static
DummyMessageContainingEnum
()
{
static
DummyMessageContainingEnum
()
{
pbd
::
FileDescriptor
descriptor
=
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
UnitTestCustomOptionsProtoFile
.
Descriptor
;
object
.
ReferenceEquals
(
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
UnitTestCustomOptionsProtoFile
.
Descriptor
,
null
)
;
}
}
}
}
...
@@ -1306,7 +1306,7 @@ namespace Google.ProtocolBuffers.TestProtos {
...
@@ -1306,7 +1306,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
}
static
DummyMessageInvalidAsOptionType
()
{
static
DummyMessageInvalidAsOptionType
()
{
pbd
::
FileDescriptor
descriptor
=
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
UnitTestCustomOptionsProtoFile
.
Descriptor
;
object
.
ReferenceEquals
(
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
UnitTestCustomOptionsProtoFile
.
Descriptor
,
null
)
;
}
}
}
}
...
@@ -1479,7 +1479,7 @@ namespace Google.ProtocolBuffers.TestProtos {
...
@@ -1479,7 +1479,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
}
static
CustomOptionMinIntegerValues
()
{
static
CustomOptionMinIntegerValues
()
{
pbd
::
FileDescriptor
descriptor
=
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
UnitTestCustomOptionsProtoFile
.
Descriptor
;
object
.
ReferenceEquals
(
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
UnitTestCustomOptionsProtoFile
.
Descriptor
,
null
)
;
}
}
}
}
...
@@ -1652,7 +1652,7 @@ namespace Google.ProtocolBuffers.TestProtos {
...
@@ -1652,7 +1652,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
}
static
CustomOptionMaxIntegerValues
()
{
static
CustomOptionMaxIntegerValues
()
{
pbd
::
FileDescriptor
descriptor
=
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
UnitTestCustomOptionsProtoFile
.
Descriptor
;
object
.
ReferenceEquals
(
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
UnitTestCustomOptionsProtoFile
.
Descriptor
,
null
)
;
}
}
}
}
...
@@ -1825,7 +1825,7 @@ namespace Google.ProtocolBuffers.TestProtos {
...
@@ -1825,7 +1825,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
}
static
CustomOptionOtherValues
()
{
static
CustomOptionOtherValues
()
{
pbd
::
FileDescriptor
descriptor
=
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
UnitTestCustomOptionsProtoFile
.
Descriptor
;
object
.
ReferenceEquals
(
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
UnitTestCustomOptionsProtoFile
.
Descriptor
,
null
)
;
}
}
}
}
...
@@ -1998,7 +1998,7 @@ namespace Google.ProtocolBuffers.TestProtos {
...
@@ -1998,7 +1998,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
}
static
SettingRealsFromPositiveInts
()
{
static
SettingRealsFromPositiveInts
()
{
pbd
::
FileDescriptor
descriptor
=
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
UnitTestCustomOptionsProtoFile
.
Descriptor
;
object
.
ReferenceEquals
(
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
UnitTestCustomOptionsProtoFile
.
Descriptor
,
null
)
;
}
}
}
}
...
@@ -2171,7 +2171,7 @@ namespace Google.ProtocolBuffers.TestProtos {
...
@@ -2171,7 +2171,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
}
static
SettingRealsFromNegativeInts
()
{
static
SettingRealsFromNegativeInts
()
{
pbd
::
FileDescriptor
descriptor
=
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
UnitTestCustomOptionsProtoFile
.
Descriptor
;
object
.
ReferenceEquals
(
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
UnitTestCustomOptionsProtoFile
.
Descriptor
,
null
)
;
}
}
}
}
...
@@ -2390,7 +2390,7 @@ namespace Google.ProtocolBuffers.TestProtos {
...
@@ -2390,7 +2390,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
}
}
}
static
ComplexOptionType1
()
{
static
ComplexOptionType1
()
{
pbd
::
FileDescriptor
descriptor
=
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
UnitTestCustomOptionsProtoFile
.
Descriptor
;
object
.
ReferenceEquals
(
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
UnitTestCustomOptionsProtoFile
.
Descriptor
,
null
)
;
}
}
}
}
...
@@ -2630,7 +2630,7 @@ namespace Google.ProtocolBuffers.TestProtos {
...
@@ -2630,7 +2630,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
}
}
}
static
ComplexOptionType4
()
{
static
ComplexOptionType4
()
{
pbd
::
FileDescriptor
descriptor
=
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
UnitTestCustomOptionsProtoFile
.
Descriptor
;
object
.
ReferenceEquals
(
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
UnitTestCustomOptionsProtoFile
.
Descriptor
,
null
)
;
}
}
}
}
...
@@ -2961,7 +2961,7 @@ namespace Google.ProtocolBuffers.TestProtos {
...
@@ -2961,7 +2961,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
}
}
}
static
ComplexOptionType2
()
{
static
ComplexOptionType2
()
{
pbd
::
FileDescriptor
descriptor
=
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
UnitTestCustomOptionsProtoFile
.
Descriptor
;
object
.
ReferenceEquals
(
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
UnitTestCustomOptionsProtoFile
.
Descriptor
,
null
)
;
}
}
}
}
...
@@ -3199,7 +3199,7 @@ namespace Google.ProtocolBuffers.TestProtos {
...
@@ -3199,7 +3199,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
}
}
}
static
ComplexOptionType5
()
{
static
ComplexOptionType5
()
{
pbd
::
FileDescriptor
descriptor
=
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
UnitTestCustomOptionsProtoFile
.
Descriptor
;
object
.
ReferenceEquals
(
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
UnitTestCustomOptionsProtoFile
.
Descriptor
,
null
)
;
}
}
}
}
...
@@ -3458,7 +3458,7 @@ namespace Google.ProtocolBuffers.TestProtos {
...
@@ -3458,7 +3458,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
}
}
}
static
ComplexOptionType3
()
{
static
ComplexOptionType3
()
{
pbd
::
FileDescriptor
descriptor
=
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
UnitTestCustomOptionsProtoFile
.
Descriptor
;
object
.
ReferenceEquals
(
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
UnitTestCustomOptionsProtoFile
.
Descriptor
,
null
)
;
}
}
}
}
...
@@ -3672,7 +3672,7 @@ namespace Google.ProtocolBuffers.TestProtos {
...
@@ -3672,7 +3672,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
}
}
}
static
ComplexOpt6
()
{
static
ComplexOpt6
()
{
pbd
::
FileDescriptor
descriptor
=
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
UnitTestCustomOptionsProtoFile
.
Descriptor
;
object
.
ReferenceEquals
(
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
UnitTestCustomOptionsProtoFile
.
Descriptor
,
null
)
;
}
}
}
}
...
@@ -3845,7 +3845,7 @@ namespace Google.ProtocolBuffers.TestProtos {
...
@@ -3845,7 +3845,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
}
static
VariousComplexOptions
()
{
static
VariousComplexOptions
()
{
pbd
::
FileDescriptor
descriptor
=
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
UnitTestCustomOptionsProtoFile
.
Descriptor
;
object
.
ReferenceEquals
(
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
UnitTestCustomOptionsProtoFile
.
Descriptor
,
null
)
;
}
}
}
}
...
...
src/ProtocolBuffers.Test/TestProtos/UnitTestEmbedOptimizeForProtoFile.cs
View file @
c784be31
...
@@ -360,7 +360,7 @@ namespace Google.ProtocolBuffers.TestProtos {
...
@@ -360,7 +360,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
}
}
}
static
TestEmbedOptimizedForSize
()
{
static
TestEmbedOptimizedForSize
()
{
pbd
::
FileDescriptor
descriptor
=
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
UnitTestEmbedOptimizeForProtoFile
.
Descriptor
;
object
.
ReferenceEquals
(
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
UnitTestEmbedOptimizeForProtoFile
.
Descriptor
,
null
)
;
}
}
}
}
...
...
src/ProtocolBuffers.Test/TestProtos/UnitTestImportProtoFile.cs
View file @
c784be31
...
@@ -270,7 +270,7 @@ namespace Google.ProtocolBuffers.TestProtos {
...
@@ -270,7 +270,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
}
}
}
static
ImportMessage
()
{
static
ImportMessage
()
{
pbd
::
FileDescriptor
descriptor
=
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
UnitTestImportProtoFile
.
Descriptor
;
object
.
ReferenceEquals
(
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
UnitTestImportProtoFile
.
Descriptor
,
null
)
;
}
}
}
}
...
...
src/ProtocolBuffers.Test/TestProtos/UnitTestMessageSetProtoFile.cs
View file @
c784be31
...
@@ -268,7 +268,7 @@ namespace Google.ProtocolBuffers.TestProtos {
...
@@ -268,7 +268,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
}
static
TestMessageSet
()
{
static
TestMessageSet
()
{
pbd
::
FileDescriptor
descriptor
=
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
UnitTestMessageSetProtoFile
.
Descriptor
;
object
.
ReferenceEquals
(
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
UnitTestMessageSetProtoFile
.
Descriptor
,
null
)
;
}
}
}
}
...
@@ -505,7 +505,7 @@ namespace Google.ProtocolBuffers.TestProtos {
...
@@ -505,7 +505,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
}
}
}
static
TestMessageSetContainer
()
{
static
TestMessageSetContainer
()
{
pbd
::
FileDescriptor
descriptor
=
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
UnitTestMessageSetProtoFile
.
Descriptor
;
object
.
ReferenceEquals
(
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
UnitTestMessageSetProtoFile
.
Descriptor
,
null
)
;
}
}
}
}
...
@@ -721,7 +721,7 @@ namespace Google.ProtocolBuffers.TestProtos {
...
@@ -721,7 +721,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
}
}
}
static
TestMessageSetExtension1
()
{
static
TestMessageSetExtension1
()
{
pbd
::
FileDescriptor
descriptor
=
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
UnitTestMessageSetProtoFile
.
Descriptor
;
object
.
ReferenceEquals
(
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
UnitTestMessageSetProtoFile
.
Descriptor
,
null
)
;
}
}
}
}
...
@@ -938,7 +938,7 @@ namespace Google.ProtocolBuffers.TestProtos {
...
@@ -938,7 +938,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
}
}
}
static
TestMessageSetExtension2
()
{
static
TestMessageSetExtension2
()
{
pbd
::
FileDescriptor
descriptor
=
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
UnitTestMessageSetProtoFile
.
Descriptor
;
object
.
ReferenceEquals
(
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
UnitTestMessageSetProtoFile
.
Descriptor
,
null
)
;
}
}
}
}
...
@@ -1220,7 +1220,7 @@ namespace Google.ProtocolBuffers.TestProtos {
...
@@ -1220,7 +1220,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
}
}
}
static
Item
()
{
static
Item
()
{
pbd
::
FileDescriptor
descriptor
=
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
UnitTestMessageSetProtoFile
.
Descriptor
;
object
.
ReferenceEquals
(
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
UnitTestMessageSetProtoFile
.
Descriptor
,
null
)
;
}
}
}
}
...
@@ -1440,7 +1440,7 @@ namespace Google.ProtocolBuffers.TestProtos {
...
@@ -1440,7 +1440,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
}
}
}
static
RawMessageSet
()
{
static
RawMessageSet
()
{
pbd
::
FileDescriptor
descriptor
=
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
UnitTestMessageSetProtoFile
.
Descriptor
;
object
.
ReferenceEquals
(
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
UnitTestMessageSetProtoFile
.
Descriptor
,
null
)
;
}
}
}
}
...
...
src/ProtocolBuffers.Test/TestProtos/UnitTestOptimizeForProtoFile.cs
View file @
c784be31
...
@@ -253,7 +253,7 @@ namespace Google.ProtocolBuffers.TestProtos {
...
@@ -253,7 +253,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
}
}
}
static
TestOptimizedForSize
()
{
static
TestOptimizedForSize
()
{
pbd
::
FileDescriptor
descriptor
=
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
UnitTestOptimizeForProtoFile
.
Descriptor
;
object
.
ReferenceEquals
(
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
UnitTestOptimizeForProtoFile
.
Descriptor
,
null
)
;
}
}
}
}
...
@@ -384,7 +384,7 @@ namespace Google.ProtocolBuffers.TestProtos {
...
@@ -384,7 +384,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
}
}
}
static
TestRequiredOptimizedForSize
()
{
static
TestRequiredOptimizedForSize
()
{
pbd
::
FileDescriptor
descriptor
=
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
UnitTestOptimizeForProtoFile
.
Descriptor
;
object
.
ReferenceEquals
(
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
UnitTestOptimizeForProtoFile
.
Descriptor
,
null
)
;
}
}
}
}
...
@@ -533,7 +533,7 @@ namespace Google.ProtocolBuffers.TestProtos {
...
@@ -533,7 +533,7 @@ namespace Google.ProtocolBuffers.TestProtos {
}
}
}
}
static
TestOptionalOptimizedForSize
()
{
static
TestOptionalOptimizedForSize
()
{
pbd
::
FileDescriptor
descriptor
=
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
UnitTestOptimizeForProtoFile
.
Descriptor
;
object
.
ReferenceEquals
(
global
::
Google
.
ProtocolBuffers
.
TestProtos
.
UnitTestOptimizeForProtoFile
.
Descriptor
,
null
)
;
}
}
}
}
...
...
src/ProtocolBuffers.Test/TestProtos/UnitTestProtoFile.cs
View file @
c784be31
This diff is collapsed.
Click to expand it.
src/ProtocolBuffers/DescriptorProtos/CSharpOptions.cs
View file @
c784be31
...
@@ -445,7 +445,7 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
...
@@ -445,7 +445,7 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
}
}
}
}
static
CSharpFileOptions
()
{
static
CSharpFileOptions
()
{
pbd
::
FileDescriptor
descriptor
=
global
::
Google
.
ProtocolBuffers
.
DescriptorProtos
.
CSharpOptions
.
Descriptor
;
object
.
ReferenceEquals
(
global
::
Google
.
ProtocolBuffers
.
DescriptorProtos
.
CSharpOptions
.
Descriptor
,
null
)
;
}
}
}
}
...
@@ -660,7 +660,7 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
...
@@ -660,7 +660,7 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
}
}
}
}
static
CSharpFieldOptions
()
{
static
CSharpFieldOptions
()
{
pbd
::
FileDescriptor
descriptor
=
global
::
Google
.
ProtocolBuffers
.
DescriptorProtos
.
CSharpOptions
.
Descriptor
;
object
.
ReferenceEquals
(
global
::
Google
.
ProtocolBuffers
.
DescriptorProtos
.
CSharpOptions
.
Descriptor
,
null
)
;
}
}
}
}
...
...
src/ProtocolBuffers/DescriptorProtos/DescriptorProtoFile.cs
View file @
c784be31
...
@@ -458,7 +458,7 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
...
@@ -458,7 +458,7 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
}
}
}
}
static
FileDescriptorSet
()
{
static
FileDescriptorSet
()
{
pbd
::
FileDescriptor
descriptor
=
global
::
Google
.
ProtocolBuffers
.
DescriptorProtos
.
DescriptorProtoFile
.
Descriptor
;
object
.
ReferenceEquals
(
global
::
Google
.
ProtocolBuffers
.
DescriptorProtos
.
DescriptorProtoFile
.
Descriptor
,
null
)
;
}
}
}
}
...
@@ -1119,7 +1119,7 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
...
@@ -1119,7 +1119,7 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
}
}
}
}
static
FileDescriptorProto
()
{
static
FileDescriptorProto
()
{
pbd
::
FileDescriptor
descriptor
=
global
::
Google
.
ProtocolBuffers
.
DescriptorProtos
.
DescriptorProtoFile
.
Descriptor
;
object
.
ReferenceEquals
(
global
::
Google
.
ProtocolBuffers
.
DescriptorProtos
.
DescriptorProtoFile
.
Descriptor
,
null
)
;
}
}
}
}
...
@@ -1398,7 +1398,7 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
...
@@ -1398,7 +1398,7 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
}
}
}
}
static
ExtensionRange
()
{
static
ExtensionRange
()
{
pbd
::
FileDescriptor
descriptor
=
global
::
Google
.
ProtocolBuffers
.
DescriptorProtos
.
DescriptorProtoFile
.
Descriptor
;
object
.
ReferenceEquals
(
global
::
Google
.
ProtocolBuffers
.
DescriptorProtos
.
DescriptorProtoFile
.
Descriptor
,
null
)
;
}
}
}
}
...
@@ -2003,7 +2003,7 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
...
@@ -2003,7 +2003,7 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
}
}
}
}
static
DescriptorProto
()
{
static
DescriptorProto
()
{
pbd
::
FileDescriptor
descriptor
=
global
::
Google
.
ProtocolBuffers
.
DescriptorProtos
.
DescriptorProtoFile
.
Descriptor
;
object
.
ReferenceEquals
(
global
::
Google
.
ProtocolBuffers
.
DescriptorProtos
.
DescriptorProtoFile
.
Descriptor
,
null
)
;
}
}
}
}
...
@@ -2582,7 +2582,7 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
...
@@ -2582,7 +2582,7 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
}
}
}
}
static
FieldDescriptorProto
()
{
static
FieldDescriptorProto
()
{
pbd
::
FileDescriptor
descriptor
=
global
::
Google
.
ProtocolBuffers
.
DescriptorProtos
.
DescriptorProtoFile
.
Descriptor
;
object
.
ReferenceEquals
(
global
::
Google
.
ProtocolBuffers
.
DescriptorProtos
.
DescriptorProtoFile
.
Descriptor
,
null
)
;
}
}
}
}
...
@@ -2933,7 +2933,7 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
...
@@ -2933,7 +2933,7 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
}
}
}
}
static
EnumDescriptorProto
()
{
static
EnumDescriptorProto
()
{
pbd
::
FileDescriptor
descriptor
=
global
::
Google
.
ProtocolBuffers
.
DescriptorProtos
.
DescriptorProtoFile
.
Descriptor
;
object
.
ReferenceEquals
(
global
::
Google
.
ProtocolBuffers
.
DescriptorProtos
.
DescriptorProtoFile
.
Descriptor
,
null
)
;
}
}
}
}
...
@@ -3256,7 +3256,7 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
...
@@ -3256,7 +3256,7 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
}
}
}
}
static
EnumValueDescriptorProto
()
{
static
EnumValueDescriptorProto
()
{
pbd
::
FileDescriptor
descriptor
=
global
::
Google
.
ProtocolBuffers
.
DescriptorProtos
.
DescriptorProtoFile
.
Descriptor
;
object
.
ReferenceEquals
(
global
::
Google
.
ProtocolBuffers
.
DescriptorProtos
.
DescriptorProtoFile
.
Descriptor
,
null
)
;
}
}
}
}
...
@@ -3607,7 +3607,7 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
...
@@ -3607,7 +3607,7 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
}
}
}
}
static
ServiceDescriptorProto
()
{
static
ServiceDescriptorProto
()
{
pbd
::
FileDescriptor
descriptor
=
global
::
Google
.
ProtocolBuffers
.
DescriptorProtos
.
DescriptorProtoFile
.
Descriptor
;
object
.
ReferenceEquals
(
global
::
Google
.
ProtocolBuffers
.
DescriptorProtos
.
DescriptorProtoFile
.
Descriptor
,
null
)
;
}
}
}
}
...
@@ -3973,7 +3973,7 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
...
@@ -3973,7 +3973,7 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
}
}
}
}
static
MethodDescriptorProto
()
{
static
MethodDescriptorProto
()
{
pbd
::
FileDescriptor
descriptor
=
global
::
Google
.
ProtocolBuffers
.
DescriptorProtos
.
DescriptorProtoFile
.
Descriptor
;
object
.
ReferenceEquals
(
global
::
Google
.
ProtocolBuffers
.
DescriptorProtos
.
DescriptorProtoFile
.
Descriptor
,
null
)
;
}
}
}
}
...
@@ -4404,7 +4404,7 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
...
@@ -4404,7 +4404,7 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
}
}
}
}
static
FileOptions
()
{
static
FileOptions
()
{
pbd
::
FileDescriptor
descriptor
=
global
::
Google
.
ProtocolBuffers
.
DescriptorProtos
.
DescriptorProtoFile
.
Descriptor
;
object
.
ReferenceEquals
(
global
::
Google
.
ProtocolBuffers
.
DescriptorProtos
.
DescriptorProtoFile
.
Descriptor
,
null
)
;
}
}
}
}
...
@@ -4692,7 +4692,7 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
...
@@ -4692,7 +4692,7 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
}
}
}
}
static
MessageOptions
()
{
static
MessageOptions
()
{
pbd
::
FileDescriptor
descriptor
=
global
::
Google
.
ProtocolBuffers
.
DescriptorProtos
.
DescriptorProtoFile
.
Descriptor
;
object
.
ReferenceEquals
(
global
::
Google
.
ProtocolBuffers
.
DescriptorProtos
.
DescriptorProtoFile
.
Descriptor
,
null
)
;
}
}
}
}
...
@@ -5122,7 +5122,7 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
...
@@ -5122,7 +5122,7 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
}
}
}
}
static
FieldOptions
()
{
static
FieldOptions
()
{
pbd
::
FileDescriptor
descriptor
=
global
::
Google
.
ProtocolBuffers
.
DescriptorProtos
.
DescriptorProtoFile
.
Descriptor
;
object
.
ReferenceEquals
(
global
::
Google
.
ProtocolBuffers
.
DescriptorProtos
.
DescriptorProtoFile
.
Descriptor
,
null
)
;
}
}
}
}
...
@@ -5369,7 +5369,7 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
...
@@ -5369,7 +5369,7 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
}
}
}
}
static
EnumOptions
()
{
static
EnumOptions
()
{
pbd
::
FileDescriptor
descriptor
=
global
::
Google
.
ProtocolBuffers
.
DescriptorProtos
.
DescriptorProtoFile
.
Descriptor
;
object
.
ReferenceEquals
(
global
::
Google
.
ProtocolBuffers
.
DescriptorProtos
.
DescriptorProtoFile
.
Descriptor
,
null
)
;
}
}
}
}
...
@@ -5616,7 +5616,7 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
...
@@ -5616,7 +5616,7 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
}
}
}
}
static
EnumValueOptions
()
{
static
EnumValueOptions
()
{
pbd
::
FileDescriptor
descriptor
=
global
::
Google
.
ProtocolBuffers
.
DescriptorProtos
.
DescriptorProtoFile
.
Descriptor
;
object
.
ReferenceEquals
(
global
::
Google
.
ProtocolBuffers
.
DescriptorProtos
.
DescriptorProtoFile
.
Descriptor
,
null
)
;
}
}
}
}
...
@@ -5863,7 +5863,7 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
...
@@ -5863,7 +5863,7 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
}
}
}
}
static
ServiceOptions
()
{
static
ServiceOptions
()
{
pbd
::
FileDescriptor
descriptor
=
global
::
Google
.
ProtocolBuffers
.
DescriptorProtos
.
DescriptorProtoFile
.
Descriptor
;
object
.
ReferenceEquals
(
global
::
Google
.
ProtocolBuffers
.
DescriptorProtos
.
DescriptorProtoFile
.
Descriptor
,
null
)
;
}
}
}
}
...
@@ -6110,7 +6110,7 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
...
@@ -6110,7 +6110,7 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
}
}
}
}
static
MethodOptions
()
{
static
MethodOptions
()
{
pbd
::
FileDescriptor
descriptor
=
global
::
Google
.
ProtocolBuffers
.
DescriptorProtos
.
DescriptorProtoFile
.
Descriptor
;
object
.
ReferenceEquals
(
global
::
Google
.
ProtocolBuffers
.
DescriptorProtos
.
DescriptorProtoFile
.
Descriptor
,
null
)
;
}
}
}
}
...
@@ -6392,7 +6392,7 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
...
@@ -6392,7 +6392,7 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
}
}
}
}
static
NamePart
()
{
static
NamePart
()
{
pbd
::
FileDescriptor
descriptor
=
global
::
Google
.
ProtocolBuffers
.
DescriptorProtos
.
DescriptorProtoFile
.
Descriptor
;
object
.
ReferenceEquals
(
global
::
Google
.
ProtocolBuffers
.
DescriptorProtos
.
DescriptorProtoFile
.
Descriptor
,
null
)
;
}
}
}
}
...
@@ -6825,7 +6825,7 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
...
@@ -6825,7 +6825,7 @@ namespace Google.ProtocolBuffers.DescriptorProtos {
}
}
}
}
static
UninterpretedOption
()
{
static
UninterpretedOption
()
{
pbd
::
FileDescriptor
descriptor
=
global
::
Google
.
ProtocolBuffers
.
DescriptorProtos
.
DescriptorProtoFile
.
Descriptor
;
object
.
ReferenceEquals
(
global
::
Google
.
ProtocolBuffers
.
DescriptorProtos
.
DescriptorProtoFile
.
Descriptor
,
null
)
;
}
}
}
}
...
...
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