* Use EPackage.getEClassifier during grammar linking
* Avoid redundant validations of predicates that cover unordered groups
* Reuse previously collected information in the rule inspector for overridden values
closes#1561
Subsequent unassigned actions are not allowed if there was already a
current instance present.
Signed-off-by: Sebastian Zarnekow <sebastian.zarnekow@gmail.com>
Specifying the issue code in the method XtextValidator#checkTerminalFragmentCalledFromTerminalRule()
Updated the XtextLinkingDiagnosticMessageProvider
Signed-off-by: nbhusare <neerajbhusare@gmail.com>
org.eclipse.xtext, org.eclipse.xtext.ide and org.eclipse.xtext.util are
Xtend free. Remove xtend-gen folders from build.
Signed-off-by: Arne Deutsch <Arne.Deutsch@itemis.de>
This change introduces an explicit validation context that is used by the INamesAreUniqueValidationHelper. This allows to fine tune the scope of the validation in various ways. Default contexts are available to validation uniqueness in the current container, along the chain of visible containers or local to the current resource (the default).
Local unique name validation can be implemented now based on the LocalUniqueNameContext.
closes#1466
- Modify the FormattingConfigBasedStream to handle the different line
endings properly.
- Implement corresponding XtextFormatterTest and
GrammarAccessExtensions2Test test cases.
Signed-off-by: Tamas Miklossy <miklossy@itemis.de>
- Improve the serializeReplacement implementation by modifying the
ReplaceRegion length calculation so that it takes not only the
ICompositeNode.getTotalLength() into account, but considers if the new
text contains additional whitespaces and the old text is also followed
by white spaces, than the whitespaces contained by the original document
is also consumed by the quickfix.
- Implement corresponding SerializerReplacementCalculationTest test case
based on the NoJdtTestLanguage.
Signed-off-by: Tamas Miklossy <miklossy@itemis.de>
Don't call a value converter if nothing was matched. Also don't assign naively true for boolean values without checking if there was a token consumed.
closes#1462
Throw NullPointerException if null is passed to NodeIterator constructor
to prevent iterator state where hasNext() and hasPrevious() always
return true, but getNext() and getPrevious() always return null.
Similarly, throw NPE for null passed to constructors of NodeIterable,
BasicNodeIterator and BasicNodeIterable. Added unit tests for all four
classes.
Signed-off-by: Robert Lewis <rablewis@algo-pop.com>
Throw NullPointerException if null is passed to NodeIterator constructor
to prevent iterator state where hasNext() and hasPrevious() always
return true, but getNext() and getPrevious() always return null.
Signed-off-by: Robert Lewis <rablewis@algo-pop.com>