Bug with XImportSectionNamespaceScopeProvider and JvmTypeParameter?? [message #1068000] |
Thu, 11 July 2013 15:36 |
Victor Noël Messages: 112 Registered: June 2010 |
Senior Member |
|
|
Hi,
In XImportSectionNamespaceScopeProvider, it seems there is some code to handle the fact an element is associated (via the JvmModelInferrer) to a JvmTypeParameterDeclarator and thus that its JvmTypeParameter should be part of the scope for stuff inside that JvmTypeParameterDeclarator.
But, when trying to complete a JvmTypeReference, the proposal does not show the JvmTypeParameters!
If I go into debug, the scope is well computed, but it seems it is not used at all...
I have an example project to illustrate it there:
https://wwwsecu.irit.fr/hg/SMAC/victor-noel-phd/may/may-xtext2-kevin/
(l/p: anon/anon)
Projects: org.xtext.example.mydsl and org.xtext.example.mydsl.ui
Here is an example mydsl model:
import java.util.Collection
component Comp1[Aaaa,B] {
port p : Collection[Aaaa]
instance p1 : Comp1[Collection[B],Collection[Aaaa]]
}
component Comp2[Cooo] {
instance p1 : Comp1[Coo,Collection[String]]
}
If you try to complete the Coo in "instance p1 : Comp1[Coo,Collection[String]]" it does not propose Cooo!
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03405 seconds