Jon Skeet
5ca6dd76fb
Update DescriptorProtoFile.cs and UnitTest.cs to indicate manual changes.
...
(Having regenerated descriptor.proto relative to src, the earlier commented-out code checking that dependencies match may now be okay to uncomment again. Will experiment in later CLs.)
10 years ago
Jon Skeet
ce66c5f1b9
Updated set of unit tests and unit test protos.
...
This commit includes changes to the C#-specific protos, and rebuilt versions of the "stock" protos.
The stock protos have been locally updated to have a specific C# namespace, but this is expected to change soon, so hasn't been committed.
Four areas are currently not tested:
1) Serialization - we may restore this at some point, possibly optionally.
2) Services - currently nothing is generated for this; will need to see how it interacts with GRPC
3) Fields beginning with _{digit} - see https://github.com/google/protobuf/issues/308
4) Fields with names which conflict with the declaring type in nasty ways - see https://github.com/google/protobuf/issues/309
10 years ago
Jon Skeet
f3504cf3b1
First part of making the C# runtime work with the new codegen.
...
1) Remove CSharpOptions
2) A new version of DescriptorProtoFile (with manual changes from codegen - it would otherwise be Descriptor.cs)
3) Turn off CLS compliance (which we'll remove from the codebase entirely; I don't think it's actually relevant these days)
4) Add "public imports" to FileDescriptor, with code broadly copied from the Java codebase.
Lots more changes to commit before it will build and tests run, but one step at a time...
10 years ago
Jie Luo
8a3ec53e86
remove test proto for field presence
10 years ago
Jie Luo
856ced5d76
Field Presence: remove has methods for optional non-message fields in proto3
10 years ago
Jan Tattermusch
1eab56aee8
removed .hgignore file
10 years ago
Jan Tattermusch
4e80fe15ed
Added instructions to manually download the dependencies
10 years ago
Jan Tattermusch
6b7f0172b9
cleanup of csharp/lib/ directory
10 years ago
Jan Tattermusch
e77878ebc7
Updated readme.md and changes.txt, removed old license.txt
10 years ago
Jon Skeet
f0589506c9
Wiping slate clean to start again with new layout.
16 years ago
Jon Skeet
e60ce8bfaf
Final commit before changing layout
16 years ago
Jon Skeet
7f90d8ee57
Made things a bit more public for the sake of ProtoGen
16 years ago
Jon Skeet
7fd62ffd77
Initial setup of generator code. Little real functionality so far.
17 years ago
Jon Skeet
4658a3dd7e
Doc fix
17 years ago
Jon Skeet
dd9703ba53
Reduce dependencies
17 years ago
Jon Skeet
881db010cb
Fix initialization check when an optional field has required subfields
17 years ago
Jon Skeet
0dabc77f7f
Renamed GeneratedRepeatException to GeneratedRepeatExtension
17 years ago
Jon Skeet
be432ca43c
Added a doc TODO
17 years ago
Jon Skeet
57be03df65
Removed unnecessary delegate
17 years ago
Jon Skeet
0bf2ad145d
Implemented popsicle immutability for lists. Modified MessageStreamIterator to be singly generic.
17 years ago
Jon Skeet
ad6903fe33
Fix to constructor access for nested types, and first pass at streaming.
17 years ago
Jon Skeet
f09fed217f
Small tidying.
17 years ago
Jon Skeet
2cbd799b5e
Comments.
17 years ago
Jon Skeet
984eb9c27a
Just comments.
17 years ago
Jon Skeet
0b6d39acc4
Remove unused variable.
17 years ago
Jon Skeet
92b0aaa09e
Use a nullable int for the memoizedSize, just because it's neater.
17 years ago
Jon Skeet
9deef9baec
Add aliases into enums
17 years ago
Jon Skeet
10ad653ce5
Reflect Java source code.
17 years ago
Jon Skeet
40c2221ef4
Updated C# tests and code for TextFormat to match Java.
17 years ago
Jon Skeet
7941ebf198
Updates due to changes to descriptor.proto
17 years ago
Jon Skeet
8f721f5dc7
Experimental (and currently unused) behaviour to determine whether or not a message has any required fields.
17 years ago
Jon Skeet
b01135c485
Align delegates with .NET 3.5
17 years ago
Jon Skeet
6d0cbe7200
Use a switch instead of a map for WireFormat.
17 years ago
Jon Skeet
0980982095
Evil reflection optimisation.
17 years ago
Jon Skeet
38da52d349
Micro-optimisations around varints and strings.
17 years ago
Jon Skeet
272d384f6a
Use delegates instead of dynamic reflection.
17 years ago
Jon Skeet
3b3150881a
Optimisations of IsInitialized and removal of unnecessary references.
17 years ago
Jon Skeet
81efcf25f3
Removed accidental addition of test directory.
17 years ago
Jon Skeet
62b3d31fb7
Fixed a few TODOs
17 years ago
Jon Skeet
eb4ef52c66
Abandon the 'self' namespace alias - we need to be able to import types in other namespaces too.
17 years ago
Jon Skeet
5407a4329d
Signed the test assembly, and added InternalsVisibleTo. Some public members now internal again.
17 years ago
Jon Skeet
38d453d318
Beginning to fix the TODOs
17 years ago
Jon Skeet
15041fa06c
Removed EnumDescriptorIndexAttribute - not really necessary.
17 years ago
Jon Skeet
283b7a1a51
Batch file to generate the bootstrapping proto files
17 years ago
Jon Skeet
48ce28bf2f
Copyright fixes, a bit of documentation, and removed unnecessary using directives.
17 years ago
Jon Skeet
5923b37223
Finished service test with a mock.
17 years ago
Jon Skeet
3ae573c174
Fleshed out service interfaces, and wrote the simpler service tests. Mocking tests still to be done.
17 years ago
Jon Skeet
1e42fdde2e
Implemented text parsing.
17 years ago
Jon Skeet
feb9385b04
Lots of text formatting tests, but ignored the parsing ones for the moment.
17 years ago
Jon Skeet
ca4cbda9de
Extensions don't need to go under a separate type.
17 years ago