Commit graph

454 commits

Author SHA1 Message Date
overflowerror
f23274e072 fixed problem with clone method by using EcoreUtil.copy instead 2021-12-02 21:19:27 +01:00
overflowerror
365de63327 temporary fix for missing SynStateType for new elements in
SyntacticSequencer
2021-11-30 19:59:14 +01:00
overflowerror
a6993a01f7 refactoring, better exception handling, changes to error detection
exception messages now contain the the rule that caused the problem
2021-11-29 21:12:02 +01:00
overflowerror
5fdb3424ac refactoring of hoisting code 2021-11-27 18:37:24 +01:00
overflowerror
6378a70180 added disambiguating semantic predicates to model and grammar 2021-11-23 18:23:32 +01:00
overflowerror
ad5a6b33f5 added init blocks to antlr code generation 2021-11-23 18:04:22 +01:00
overflowerror
69b5babb91 added grammar init block to model and xtext grammar 2021-11-23 17:32:09 +01:00
overflowerror
f2e581d026 added java actions to ecore model and grammar 2021-11-19 15:03:24 +01:00
overflowerror
aae59c9805 added hoisting to generator 2021-11-18 17:18:23 +01:00
overflowerror
0506c40a08 added semantic predicates to ecore model and xtext grammar 2021-11-12 18:43:30 +01:00
Tamas Miklossy
e1c20601fc [#269] Regenerate Xtext Language via the GenerateXtext.mwe2 workflow.
Signed-off-by: Tamas Miklossy <miklossy@itemis.de>
2020-05-21 18:13:33 +02:00
Sebastian Zarnekow
b751b9e2e0
[#1499] Enable JavaDoc validation on org.eclipse.xtext (#1500)
closes #1499
2020-05-20 17:11:07 +02:00
Sebastian Zarnekow
7b5900fc5a
[#1466] Global unique name validator (#1483)
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
2020-05-15 21:16:47 +02:00
Tamas Miklossy
7b0469e1cc [#1443] Fix XtextFormatter behaviour on different line endings.
- 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>
2020-05-12 22:16:31 +02:00
Tamas Miklossy
dfdceddc5c [https://github.com/eclipse/xtext-eclipse/issues/1221] Serializer.
- 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>
2020-05-12 17:54:34 +02:00
Christian Dietrich
317c2d7a0d marked xpand/xtend(1) depending XtendXtext2EcorePostProcessor as deprecated
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2020-05-07 17:25:16 +02:00
Sebastian Zarnekow
b15fd84cfe
[#1467] Made lookAhead independent from encountered hidden tokens (#1469)
Made lookAhead independent from encountered hidden tokens

closes #1467
2020-05-04 17:18:34 +02:00
Sebastian Zarnekow
1647521e63
[#1462] Syntax errors will lead to unexpected calls to value converters (#1463)
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
2020-05-04 13:47:16 +02:00
Christian Dietrich
a15344e18a
Merge pull request #1459 from eclipse/cd_issue1458
[#1458] made XtextResource.getParser more easily customizeable
2020-04-29 18:17:34 +02:00
Christian Dietrich
71f17744eb [eclipse/xtext#1679]ported more code to java
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2020-04-29 11:42:44 +02:00
Christian Dietrich
d83619ad80 [#1458] made XtextResource.getParser more easily customizeable
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2020-04-28 12:47:11 +02:00
Christian Dietrich
e7db3d48a8
Merge pull request #1457 from eclipse/cd_asm8
[eclipse/xtext#1649] update to ASM 8.0
2020-04-28 08:42:54 +02:00
Christian Dietrich
4ac89676f9 [eclipse/xtext#1649] update to ASM 8.0
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2020-04-28 08:27:41 +02:00
Arne Deutsch
fe6bd76975 [eclipse/xtext#1679] Refactor more Xtend to java.
Signed-off-by: Arne Deutsch <Arne.Deutsch@itemis.de>
2020-04-24 08:30:38 +02:00
Christian Dietrich
d685cf29ea [eclipse/xtext-eclipse#1389] fixed exception handing (revert to old behaviour)
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2020-04-06 10:34:38 +02:00
Arne Deutsch
2f5ad0017f
Merge pull request #1423 from eclipse/ade-refactor-xtend-to-java
[eclipse/xtext#1679] Refactor more Xtend to java.
2020-03-30 09:50:37 +02:00
Arne Deutsch
98ba18e78f [eclipse/xtext#1679] Refactor more Xtend to java.
Signed-off-by: Arne Deutsch <Arne.Deutsch@itemis.de>
2020-03-30 09:49:49 +02:00
Sebastian Zarnekow
12a21c9114
[eclipse/xtext#1679] Refactor more Xtend to Java (#1428)
* [eclipse/xtext#1679] Refactor more Xtend to Java
2020-03-26 16:54:05 +01:00
Arne Deutsch
9f4bf0fb16 [eclipse/xtext#1679] Refactor more Xtend to java.
Signed-off-by: Arne Deutsch <Arne.Deutsch@itemis.de>
2020-03-13 08:46:15 +01:00
Christian Dietrich
b9c9d679c4 fixed more unused imports
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2020-03-06 08:02:15 +01:00
Christian Dietrich
f7650e0bbc
Merge pull request #1411 from eclipse/cd_xtend_issue1018
fixed getEntryParserRule with actions [eclipse/xtext-xtend#1018]
2020-03-06 06:14:08 +01:00
Christian Dietrich
0d3bbbc5fc regenerated xtend code & cleanup imports
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2020-03-05 20:06:40 +01:00
Christian Dietrich
1969166a60 fixed getEntryParserRule with actions [eclipse/xtext-xtend#1018]
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2020-03-05 19:44:12 +01:00
Nico Prediger
7c82447f16 [releng] Update Xtext version to 2.22.0
Signed-off-by: Nico Prediger <mail@nicoprediger.de>
2020-03-03 12:00:56 +00:00
Sven Efftinge
f9b6d1bebe
[eclipse/xtext#1176] Migrate to EPL 2.0
Signed-off-by: Sven Efftinge <sven.efftinge@typefox.io>
Co-authored-by: Sebastian Zarnekow <Sebastian.Zarnekow@gmail.com>
2020-02-11 12:02:02 +01:00
Sebastian Zarnekow
04aedc416e
Merge pull request #1358 from rablewis/1262
[#1262] Prevent infinite loop with NodeIterator.
2020-02-03 09:35:28 +01:00
Arne Deutsch
5dec13b7b4 [#1303] Throw exception instead of returning null.
Extend JavaDoc.
Adapt unit test.

Signed-off-by: Arne Deutsch <Arne.Deutsch@itemis.de>
2020-01-31 08:21:07 +01:00
Robert Lewis
dc4699fb40 [#1262] Prevent infinite loop with NodeIterator.
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>
2020-01-24 23:18:58 +00:00
Christian Dietrich
6b552f0659 [eclipse/xtext#1651] made error handling in StorageAwareResource null-safe
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2020-01-20 12:52:13 +01:00
Robert Lewis
da46e06388 [#1262] Prevent infinite loop with NodeIterator.
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>
2020-01-19 15:10:26 +00:00
Christian Dietrich
79e1ebcfed [eclipse/xtext#1642] regenerated xtend code with latest xtend
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2020-01-09 13:57:00 +01:00
Tamas Miklossy
3641ec9a97 [#1343] Fix invalid link in javadoc.
Signed-off-by: Tamas Miklossy <miklossy@itemis.de>
2020-01-07 20:53:00 +01:00
Christian Dietrich
83249956d4 [eclipse/xtext#1282] Update to EMF 2.20: change version constraints in MANIFESTs
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2020-01-03 16:38:15 +01:00
mmews-n4
4b37a9e4f5 [#1316| Add end line and end column positions to Issue
[#1316] Add end line and end column positions to Issue. Also initialise lines and columns with 0. 

Previously, end line and end column information was not part of Issue, IssueImpl, IssueLocation, AbstractDiagnostic, and ExceptionDiagnostic. It is helpful to have this information in these classes, because otherwise (i.e. now in LanguageServerImpl#toDiagnostic(Issue)) this information has to be computed by loading the Document again.

closes #1316 

Signed-off-by: mmews <marcus.mews@numberfour.eu>
2019-12-13 09:54:04 +01:00
Sebastian Zarnekow
f8c791989c
Merge pull request #1322 from mmews-n4/requestManger_logging
Log Exceptions thrown in futures created by the RequestManger
2019-12-12 17:28:25 +01:00
mmews
85e1620ab4 incorporate review feedback
Signed-off-by: mmews <marcus.mews@numberfour.eu>
2019-12-11 11:18:47 +01:00
mmews
3102556c4e add CancellationException to OCM#getPlatformOperationCanceledException
Signed-off-by: mmews <marcus.mews@numberfour.eu>
2019-12-10 22:51:31 +01:00
mmews
f360e6b1a0 add annotation @since
Signed-off-by: mmews <marcus.mews@numberfour.eu>
2019-12-10 22:46:27 +01:00
mmews
c59ce4d0db add isIndexOnly as default method and read it to create build request
Signed-off-by: mmews <marcus.mews@numberfour.eu>
2019-12-10 12:29:40 +01:00
Karsten Thoms
325fa1e8d6 [releng] Update Xtext version to 2.21.0
Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2019-12-02 14:06:33 +00:00