twitter/scrooge — pull request #28 by chunyan (2012-12-11 23:02:34+00:00)
Title: Fully qualifying imported ids. 

Fully qualifying imported type names and service names. So now we don't generate the import statements. As the specs show, if we have thrift fil

file1.thrift:
namespace java foo
service Business {...}

file2.thrift:
namespace java bar
enum Weekday {...}

file3.thrift:
include "file1.thrift"
include "file2.thrift"
service Restaurant extends file1.Business {
void someFunction(1: file2.Weekday day)
}

The generated code will be
// no import aliasing statements like
// import _root_.{foo => _file1_}
// import _root_.{bar => _file2_}
object Restaurant {
trait Iface extends foo.Business.Iface { // use to be _file1_.Business
def someFunction(day: bar.Weekday) // use to be _file2_.Weekday
}
}