commit | f45024b338a93dbfd82cabf05fe26745f0c0984b | [log] [tgz] |
---|---|---|
author | Todd Wang <toddw@google.com> | Fri Apr 22 02:11:40 2016 -0700 |
committer | Todd Wang <toddw@google.com> | Fri Apr 22 02:11:40 2016 -0700 |
tree | 40f8279574775a8f75d522031d1492ad7d3d7b38 | |
parent | 7d74626e0f7ce754ee65d78009bfefb641ee70d6 [diff] |
Add VDLIsZero, and use it in VDLWrite. This CL adds the VDLIsZero method, which is used to check whether the method receiver is the VDL zero value. This is used in codegen to make zero struct field checking both simpler and faster. Also simplified both VDLRead and VDLWrite codegen, to make things more consistent and easier to understand. MultiPart: 5/5 Change-Id: I5be710fe0dbdba2eccea626e58f17e48c8dcd726