Thriftpy / thriftpy2

Pure python approach of Apache Thrift.
MIT License
567 stars 90 forks source link

fix: support annotations in const #211

Closed LYF1999 closed 1 year ago

LYF1999 commented 1 year ago

fix: support annotations in const

ethe commented 1 year ago

LGTM, cc @aisk

aisk commented 1 year ago

Can you add some tests for this case?

ethe commented 1 year ago

Can you add some tests for this case?

I think tests/parser-cases/annotations.thrift is the test case of supporting annotation of constant value. Same as other kinds of annotation, we just need to parse it and skip all passes behind.