"scope" problem [message #1061895] |
Tue, 04 June 2013 10:48  |
Eclipse User |
|
|
|
Hi,
I've a scope problem in my xtext project. I have this grammar: https://wwwsecu.irit.fr/hg/SMAC/victor-noel-phd/may/may-xtext2-kevin/file/03809334e153/fr.irit.smac.may.juno.spead/src/fr/irit/smac/may/juno/spead/SpeADL.xtext . The important is I have components which have names and which can be parametrized, and I have part which are contained in component and which represent "instances" of other component.
I take an example to show the problem:
import test.interfaces.*
namespace named {
component SequentialDispatcher[T] {
requires handler: Push[T]
}
component ClassicAgentComponent[Msg, Ref] {
part dispatcher: SequentialDispatcher[Msg] {
bind handler to beh.cycle
}
part beh: ClassicBehaviour[Msg, Ref]
}
component ClassicBehaviour[Msg2, Ref2] {
provides cycle: Push[Msg2]
}
}
In this example, when you do a Ctrl+space in the 'part beh', xtext propose 'Msg' and 'Msg2' as parametrized types. But it should only propose 'Msg' beacause 'Msg2' is declared in an other component.
I don't know if I am clear about what is my problem.
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04761 seconds