summaryrefslogtreecommitdiff
path: root/test/files/pos/annotated-treecopy
Commit message (Collapse)AuthorAgeFilesLines
* adds c.introduceTopLevelEugene Burmako2013-01-051-1/+1
| | | | | | | | | | | | | | | | | | | The first in the family of mutators for the global symbol table, `introduceTopLevel` is capable of creating synthetic top-level classes and modules. The addition of nme.EMPTY_PACKAGE_NAME is necessary to let programmers insert definitions into the empty package. That's explicitly discouraged in the docs, but at times might come in handy. This patch introduce workarounds to avoid incompatibilities with SBT. First of all SBT doesn't like VirtualFiles having JFile set to null. Secondly SBT gets confused when someone depends on synthetic files added by c.introduceTopLevel. Strictly speaking these problems require changes to SBT, and that will be done later. However the main target of the patch is paradise/macros, which needs to be useful immediately, therefore we apply workarounds.
* fixes incorrect handling of Annotated in lazy copierEugene Burmako2012-12-132-0/+58