aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/google/protobuf/compiler/csharp/csharp_repeated_enum_field.cc
Commit message (Collapse)AuthorAge
* Move DebuggerNonUserCodeAttribute to function membersGravatar Jon Skeet2016-07-04
| | | | | | | | | I think this has caught everything. I've left a stub for attributes to be applied to the types themselves, but we don't currently need anything. Follow-up commit will include the changes to generated code itself. Fixes #1671.
* Added access_level for typesGravatar Gaurav Vaish2016-04-05
| | | | | | | | | | | * `csharp_options`: Added `Options` to encapsulate generator options. Supported options for now - file_extension, base_namespace * `{Blah}Generator`: Now accept `Options*` as parameter to constructor * `csharp_generator.cc`: Parse and populate options * `Makefile.am`: Added `csharp_options.h` * `extract_includes.bat.in`: Added `csharp_options.h` Refactoring code to two commits. This is the first commit
* First pass at generating XML documentation from .proto comments.Gravatar Jon Skeet2015-10-01
| | | | | | This could be tidied up significantly, and at some point we will want to parse the markdown and generate more appropriate XML - but this is definitely better than nothing. Generated code changes coming in next commit.
* remove the freeze APIGravatar Jan Tattermusch2015-07-29
|
* Remove the usage of attributes for field/method discovery.Gravatar Jon Skeet2015-07-22
| | | | Instead, introduce GeneratedCodeInfo which passes in what we need, and adjust the codegen to take account of this.
* Revamp to reflection.Gravatar Jon Skeet2015-07-21
| | | | | | | | | | | | | | | | | Changes in brief: 1. Descriptor is now the entry point for all reflection. 2. IReflectedMessage has gone; there's now a Descriptor property in IMessage, which is explicitly implemented (due to the static property). 3. FieldAccessorTable has gone away 4. IFieldAccessor and OneofFieldAccessor still exist; we *could* put the functionality straight into FieldDescriptor and OneofDescriptor... I'm unsure about that. 5. There's a temporary property MessageDescriptor.FieldAccessorsByFieldNumber to make the test changes small - we probably want this to go away 6. Discovery for delegates is now via attributes applied to properties and the Clear method of a oneof I'm happy with 1-3. 4 I'm unsure about - feedback welcome. 5 will go away 6 I'm unsure about, both in design and implementation. Should we have a ProtobufMessageAttribute too? Should we find all the relevant attributes in MessageDescriptor and pass them down, to avoid an O(N^2) scenario? Generated code changes coming in the next commit.
* Codegen changes to support descriptor runtime changesGravatar Jon Skeet2015-07-09
| | | | | | - Add a partial method called by all constructors - Generate internal classes for descriptor.proto (only) - Forbid proto2 descriptors except for descriptor.proto
* First pass (not yet compiling) at removing all the array handling code from ↵Gravatar Jon Skeet2015-06-30
| | | | | | | Coded*Stream. Prod code works, but some tests are broken. Obviously those need fixing, then more tests, and review benchmarks.
* Implement freezing for messages and repeated fields.Gravatar Jon Skeet2015-06-24
| | | | Fixes issue #523.
* Implement Clone.Gravatar Jon Skeet2015-06-23
| | | | Fixes issue #527.
* Minor cleanup.Gravatar Jon Skeet2015-06-19
| | | | | | | | - Make some members internal - Remove a lot of FrameworkPortability that isn't required - Start adding documentation comments - Remove some more group-based members - Not passing in "the last tag read" into Read*Array, g
* Use the fact that we know the tag size and bytes at codegen time to optimize.Gravatar Jon Skeet2015-06-17
|
* Move Count checks into the serialization codeGravatar Jon Skeet2015-06-12
| | | | I wouldn't expect this to affect anything, but it appears to.
* Optimization of CalculateSize: avoid foreach over empty lists.Gravatar Jon Skeet2015-06-12
|
* Coded*Stream streamlining.Gravatar Jon Skeet2015-06-12
| | | | Remove ICodedInputStream and ICodedOutputStream, and rewrite CodedInputStream and CodedOutputStream to be specific to the binary format. If we want to support text-based formats, that can be a whole different serialization mechanism.
* Reimplement enums as int values, and get rid of EnumHelper.Gravatar Jon Skeet2015-06-11
| | | | This makes repeated fields really awkward at the moment - but when we reimplement RepeatedField<T> to be backed by an array, we can cast the array directly...
* First pass at the mutable API. Quite a bit more to do - in particular, it's ↵Gravatar Jon Skeet2015-06-09
| | | | pretty slow right now.
* First stab at new proto3-only code generatorGravatar Jon Skeet2015-06-05
|
* Migrate writer to io::Printer for C#Gravatar Jie Luo2015-06-04
|
* Rewrote C# protogen to C++ (initial version)Gravatar Jan Tattermusch2015-03-26