Status: New Owner: ---- CC: anquetil...@gmail.com Labels: Type-Defect Priority-Medium Component-Famix
New issue 906 by tu...@tudorgirba.com: FAMIXType>>classScope should not return nil http://code.google.com/p/moose-technology/issues/detail?id=906
Right now, the classScope in FAMIXType returns nil, which is a problem.
FAMIXType>>classScope "all types are not classes. Redefined in FamixClass" ^ nil
Either we make it return self, or we introduce typeScope.
Comment #1 on issue 906 by anquetil...@gmail.com: FAMIXType>>classScope should not return nil http://code.google.com/p/moose-technology/issues/detail?id=906
This is linked to issue 814
What is the use case requiring typeScope? Can one of the solutions proposed in issue 814 solve it?
Comment #2 on issue 906 by tu...@tudorgirba.com: FAMIXType>>classScope should not return nil http://code.google.com/p/moose-technology/issues/detail?id=906
FAMIXAnnotationType new classScope ==> nil and because of this FAMIXAnnotationType new namespaceScope ==> nil
This should not happen. We could make classScope return self (but the name is not so fortunate because it FAMIXAnnotationType is not quite a class), or we can introduce typeScope.
Updates: Status: Started
Comment #3 on issue 906 by anquetil...@gmail.com: FAMIXType>>classScope should not return nil http://code.google.com/p/moose-technology/issues/detail?id=906
Nope
FAMIXType namespacescope does not depend on ClassScope but only on the presence of a container
FAMIXAnnotationType new container: FAMIXNamespace new ; namespaceScope
Anyway do we replace classScope by typeScope ? (and atClassScope by atTypeScope)
Comment #4 on issue 906 by tu...@tudorgirba.com: FAMIXType>>classScope should not return nil http://code.google.com/p/moose-technology/issues/detail?id=906
Yes, let's replace classScope with typeScope. Any taker?
Comment #5 on issue 906 by tu...@tudorgirba.com: FAMIXType>>classScope should not return nil http://code.google.com/p/moose-technology/issues/detail?id=906
renamed classScope to typeScope (and deprecated classScope) renamed atClassScope to atTypeScope (and deprecated atClassScope)
Updates: Status: Fixed Labels: Milestone-4.8
Comment #6 on issue 906 by tu...@tudorgirba.com: FAMIXType>>classScope should not return nil http://code.google.com/p/moose-technology/issues/detail?id=906
Also, now typeScope returns self for all types.