- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
A couple of (unrelated) plugin questions
Fri, 2009-06-12, 22:22
Folks,
Has anyone tried to use something other than Eclipse to edit compiler source code? I like Eclipse, but IntelliJ seems to have better code navigation facilities... has anyone tried IntelliJ with the compiler?
I'm currently enhancing my plugin to emit JSON for any class that implements the QBase trait. Specifically:
trait QBase {
def serialize(pw: StringBuilder): Unit
}
If my plugin runs after refchecks, then the compiler fails to resolve the "to be supplied"/synthetic serialize method. Is there a recommended phase for supplying this synthetic method?
On a related note, I'd like to be able to enhance the unapply method in the synthetic companion object to deserialize the JSON... is there a suggested phase for doing this? Should I wait until refchecks and the synthetic companion object is created and then muck with the synthetically created unapply method?
Thanks,
David
--
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp
Has anyone tried to use something other than Eclipse to edit compiler source code? I like Eclipse, but IntelliJ seems to have better code navigation facilities... has anyone tried IntelliJ with the compiler?
I'm currently enhancing my plugin to emit JSON for any class that implements the QBase trait. Specifically:
trait QBase {
def serialize(pw: StringBuilder): Unit
}
If my plugin runs after refchecks, then the compiler fails to resolve the "to be supplied"/synthetic serialize method. Is there a recommended phase for supplying this synthetic method?
On a related note, I'd like to be able to enhance the unapply method in the synthetic companion object to deserialize the JSON... is there a suggested phase for doing this? Should I wait until refchecks and the synthetic companion object is created and then muck with the synthetically created unapply method?
Thanks,
David
--
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp