commit | 641558f02fe6ce0ee3ae5076eb366c25e2ad5903 | [log] [tgz] |
---|---|---|
author | Zonr Chang <zonr@google.com> | Tue Oct 12 21:07:06 2010 +0800 |
committer | Zonr Chang <zonr@google.com> | Tue Oct 12 21:07:06 2010 +0800 |
tree | 296d8ae6e07e0028cc9b25277134c805ff282603 | |
parent | cf6af6abc1de499920571308b14a27e19cf57097 [diff] |
Implement one-definition-rule (ODR) feature. When compiling multiple RS files, we say two RS files A and B break ODR iff: 1. They have at least one common struct named [S] and [S] will be reflected to ScriptField_[S].java, and 2. [S] defined in A is not *exactly the same* (number of fields, field type and field name) as the one defined in B. This CL detects such error.