mbj4668 / pyang

An extensible YANG validator and converter in python
ISC License
530 stars 343 forks source link

Bugfix #760: augment stmt expanding cause line end comment no printing #762

Closed fredgan closed 2 years ago

fredgan commented 2 years ago

Currently the "parent" property in Statement class is not purely used for statement tree. But this property is used for line end comment printing. So we need one "stmt_parent" property more. This property will not be modified since Statement init.

This will fix #760 issue.

@mbj4668 Please review this.