rpau / javalang-compiler

Java compiler elements (symbol and type tables) to perform code semantic analysis
GNU Lesser General Public License v3.0
10 stars 4 forks source link

Refactor type variable #58

Closed cal101 closed 7 years ago

cal101 commented 7 years ago

Attention: is based on and includes reformatted code. Needs re-base when master formatting is applied.

rpau commented 7 years ago

@cal101 formatting applied.

cal101 commented 7 years ago

Code is rebased. The comments of the commits note where the changes are simple or if they need more review and the changes may need rework. The "XXXasTypeVariable" I don't like much because they currently may do more work copying stuff that is not necessary. Maybe staying wuth the setter until then would be better here. Just tell me your opinion. IF making the SymbolType deep immutable succeeds that will vanish but that is a big IF. Please take a look and tell me your opinion.