| Summary: | [serializer] wrong context when delegating to super-language | ||
|---|---|---|---|
| Product: | [Modeling] TMF | Reporter: | Moritz Eysholdt <moritz.eysholdt> |
| Component: | Xtext | Assignee: | Project Inbox <tmf.xtext-inbox> |
| Status: | CLOSED DUPLICATE | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | ||
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Mac OS X - Carbon (unsup.) | ||
| Whiteboard: | |||
this bug blocks the tests in org.eclipse.xtext.parser.unorderedGroups from being migrated to the new serializer. see also bug 361355 The problem with the wrong context as described initially is fixed (see bug 378325). This unveiled another issue with unordered groups that is already described here: bug 369175. *** This bug has been marked as a duplicate of bug 369175 *** |
for grammar --- grammar SimpleUnorderedGroupsTestLanguage with UnorderedGroupsTestLanguage DelegateModel returns Model: Model; --- and --- grammar UnorderedGroupsTestLanguage with common.Terminals Model: {Model} ...; --- the SimpleUnorderedGroupsTestLanguageSyntacticSequencer delegates to UnorderedGroupsTestLanguageSyntacticSequencer for context DelegateModel. However, in the UnorderedGroupsTestLanguageSyntacticSequencer this context is unknown. This delegation happens because all AbstractElements within the constraint come from rule "Model". Plan 1: don't delegate. Plan 2: map the context. The behavior can be observed in org.eclipse.xtext.parser.unorderedGroups.SerializerTest