Community
Participate
Working Groups
Traits: horrible to debug, nightmare to implement ;). They aren't cached, indexed, and persisted in DLTK model. PHPModelUtils many times, have to traverse over AST to detect it, next TraitUtils traverse to collect it, asking index for details, and never cache it. Fortunately they still aren't popular, but later they'll degrade PDT performance. I asked DLTK team in bug 437856 [1] how it should be implemented. It could be IMixinContainer / IMixinDeclaration / IMixinDetail. We can also check how it was done for other languages - perl6 (EPIC), Scalar IDE. As an alternative, could be internal IType with IFields [1] - https://bugs.eclipse.org/bugs/show_bug.cgi?id=437856
I'm thinking about this issue. What do you mean by IMixinContainer / IMixinDeclaration / IMixinDetail? It's only conception or I just couldn't find it ? :)
(In reply to Michal Niewrzal from comment #1) > I'm thinking about this issue. What do you mean by IMixinContainer / > IMixinDeclaration / IMixinDetail? It's only conception or I just couldn't > find it ? :) It's a conception to introduce new model elements into DLTK for traits, because they are used in many dynamic languages [1]. In theory DLTK have ability to introduce non standard elements but because this feature isn't complete, so probably patch for DLTK will be simpler. [1] - https://en.wikipedia.org/wiki/Trait_%28computer_programming%29