appnexus / pyrobuf

A Cython alternative to Google's Python Protobuf library
Other
555 stars 72 forks source link

Differentiate between nested enums with the same names #70

Closed grgsrs closed 6 years ago

grgsrs commented 7 years ago

Following on from @AndreMiras's pull request 68 , this pull request causes pyrobuf to differentiate between nested enums with the same name. For example:

enum TestEnum {
    TEST_VALUE = 1;
}

message TestMessage {
    enum TestEnum {
        TEST_VALUE = 1;
    }

    optional TestEnum test_field = 1;
}

message TestMessage2 {
    optional TestEnum test_field = 1;
}