Titouan Vervack
127fa42d17
Removed redundant modifiers
...
Signed-off-by: Titouan Vervack <titouan.vervack@sigasi.com>
2018-03-28 17:41:41 +02:00
Arne Deutsch
89baed80ba
[ eclipse/xtext-eclipse#616 ] Reverse of empty is empty again, not null.
...
Signed-off-by: Arne Deutsch <Arne.Deutsch@itemis.de>
2018-03-27 15:33:12 +02:00
Holger Schill
47effb3ff1
Allow multiple annotations on Terminal but restrict it to a well defined set.
2018-03-26 16:15:53 +02:00
Holger Schill
70886d54a5
Make ResourceDesecriptionStrategyFragment and ValidationFragment more configurable
2018-03-26 12:40:19 +02:00
Holger Schill
8893b09e57
GrammarAnnotations: @Deprecated Annotation and corresponding tests
2018-03-22 14:40:23 +01:00
Holger Schill
fafdce378e
Merge branch 'master' into grammarannotations
2018-03-22 11:17:31 +01:00
Holger Schill
2bfe5fb64b
Allow multiple Annotations on ParserRules
2018-03-22 11:12:08 +01:00
Sebastian Zarnekow
7da28520af
Merge pull request #663 from eclipse/sz/bug361216
...
[361216] Improved logic that registers scope wrappers
2018-03-21 18:48:14 +01:00
Christian Dietrich
4b0d37e1aa
Merge pull request #659 from ArneDeutsch/recursive-emf
...
[#449 ] Avoid stack overflow with deep EMF containment trees.
2018-03-21 18:45:30 +01:00
Sebastian Zarnekow
9adf2d94ed
[361216] Improved logic that registeres scope wrappers
2018-03-21 17:13:06 +01:00
Arne Deutsch
e90230f1b1
[ #476 ] Support EMF's ResourceLocators in XtextResourceSet.
...
Signed-off-by: Arne Deutsch <Arne.Deutsch@itemis.de>
2018-03-21 15:40:22 +01:00
Arne Deutsch
3ecaa1a493
[ #449 ] Avoid stack overflow with deep EMF containment trees.
...
Signed-off-by: Arne Deutsch <Arne.Deutsch@itemis.de>
2018-03-21 14:22:01 +01:00
Holger Schill
04e0375fec
Introduce Final Annotation on ParserRules and corresponding test
2018-03-20 16:57:28 +01:00
Moritz Eysholdt
cfb627da1e
[hidden regions] Code Cleanup
...
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2018-03-05 17:16:54 +01:00
Karsten Thoms
4fea27469a
Merge pull request #651 from eclipse/kth_qn_startwith_null
...
startsWith: return false for null argument
2018-03-05 14:36:29 +01:00
Karsten Thoms
2e534b5246
startsWith: check that prefix is not null
...
Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2018-03-05 11:41:44 +01:00
Moritz Eysholdt
43b7d1df8c
Handle comments and whitespace properly in rewrite scenarios
...
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2018-03-04 19:41:46 +01:00
Christian Dietrich
58113d0f41
Regenerated against lastest xbase-lib
...
https://github.com/eclipse/xtext/issues/1174
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2018-02-26 15:07:09 +01:00
Christian Dietrich
1a86a763fb
maintained x-friends https://github.com/eclipse/xtext/issues/1173
...
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2018-02-26 12:39:26 +01:00
Christian Dietrich
7ab31042c8
maintained x-friends https://github.com/eclipse/xtext/issues/1173
...
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2018-02-23 15:57:53 +01:00
Karsten Thoms
77c13da27d
Merge pull request #634 from kthoms/kth_Reader_mwe2doc
...
[doc] Added MWE2 usage example
2018-02-13 23:19:54 +01:00
Karsten Thoms
5316f0c66c
Merge pull request #635 from TraneSlink/doc
...
Print mwe2 syntax in error message
2018-02-13 23:19:09 +01:00
Karsten Thoms
1ea9596739
[doc] Added MWE2 usage example
...
Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2018-02-08 22:35:27 +01:00
René Purrio
f760c53548
Print mwe2 syntax in error message
...
Signed-off-by: René Purrio <rpurrio@itemis.de>
2018-02-08 16:52:16 +01:00
Karsten Thoms
4bdb317e10
Return empty list instead of null
...
Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2018-02-08 16:26:12 +01:00
Christian Dietrich
26e06d1f26
implemented review feedback
...
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2018-01-26 11:43:48 +01:00
Christian Dietrich
26d6870c88
[ #550 ] Cache AbstractInternalAntlrParser.createAllRules
...
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2018-01-26 10:08:02 +01:00
Christian Dietrich
5292c344c6
Merge pull request #613 from eclipse/cd_issue611
...
[#611 ] Fixed broken/outdated javadoc
2018-01-23 07:17:37 +01:00
Karsten Thoms
809377cd27
[420984] Compiler optimization: Suppress creation of unused exception variable
...
Recompiled Xtend files
Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2018-01-16 14:54:22 +01:00
Karsten Thoms
90cef27ab4
[ eclipse/xtext#1160 ] Update copyright date range
...
Recompiled Xtend files
Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2018-01-16 09:11:22 +01:00
Karsten Thoms
134c788006
[ eclipse/xtext#1160 ] Update copyright date range
...
Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2018-01-15 16:28:39 +01:00
Christian Dietrich
d1d596d64b
[ #611 ] Fixed broken/outdated javadoc
...
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2018-01-15 13:26:35 +01:00
Arne Deutsch
7b1bb9d188
[ eclipse/xtext-eclipse#145 ] Create new implementations in core.
...
Move implementation from CopyQualifiedNameService and
DefaultCopyQualifiedNameService to xtext core plugin.
Rename CopyQualifiedNameService to ICopyQualifiedNameService.
Document the interface.
Move to public API package "org.eclipse.xtext.naming".
Change-Id: I3ffdbbcda641cc4f70396f4274e42934e4248278
Signed-off-by: Arne Deutsch <Arne.Deutsch@itemis.de>
2018-01-11 09:56:49 +01:00
Florian Stolte
3a740a437e
[ eclipse/xtext#1155 ] Cleaned up javadoc to remove some warnings.
...
Signed-off-by: Florian Stolte <fstolte@itemis.de>
2017-12-19 12:04:05 +01:00
Karsten Thoms
d5e6578a6d
Merge pull request #588 from FStolte/issue1152
...
[eclipse/xtext#1152 ] Java 9 - Added Automatic-Module-Name header
2017-12-18 10:04:26 +01:00
Florian Stolte
1bc930b5b6
[ eclipse/xtext#1152 ] Java 9 - Added Automatic-Module-Name header
...
- added header to existing manifest files
- added header to manifest generation in xtext generator and wizard
Signed-off-by: Florian Stolte <fstolte@itemis.de>
2017-12-14 14:16:20 +01:00
Christian Dietrich
c3893bc200
Duplicate @Named ids in AbstractMultiLineCommentProvider https://github.com/eclipse/xtext/issues/1153
...
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2017-12-14 13:34:46 +01:00
Christian Dietrich
c7ab2c7b32
Merge pull request #578 from FStolte/issue570
...
[#570 ] Added error message for invalid override
2017-12-13 12:39:30 +01:00
Florian Stolte
6b9d505b07
[ #570 ] Added error message for invalid override.
...
- rules with an @Override annotation in a grammar without super grammar
now correctly display an error
Signed-off-by: Florian Stolte <fstolte@itemis.de>
2017-12-13 12:23:06 +01:00
Florian Stolte
9d6f9434a1
Fixed a typo in XtextValidator.
...
Signed-off-by: Florian Stolte <fstolte@itemis.de>
2017-12-13 10:53:40 +01:00
Christian Dietrich
1894da8a38
made code of resource storage facade more consistent
...
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2017-12-12 16:32:33 +01:00
Jan Koehnlein
9e4087bf5b
GH-520 more tests for live scoping
...
Signed-off-by: Jan Koehnlein <jan.koehnlein@typefox.io>
2017-12-06 08:51:30 +01:00
Jan Koehnlein
2c0b77541a
[cleanup] various typos
2017-12-05 20:56:55 +01:00
Jan Koehnlein
15b13a279d
GH-520 allow shadowed resource descriptions in language server scenario
2017-12-05 20:56:55 +01:00
Sebastian Zarnekow
c4b4c8e4a9
Merge pull request #565 from eclipse/sz_stableSyntacticSequencerOrder
...
Make generated code in syntactic sequence more stable
2017-12-01 19:23:26 +01:00
Sebastian Zarnekow
e48a062d2b
Make generated code in syntactic sequence more stable
2017-12-01 12:41:32 +01:00
Christian Dietrich
3b4910adae
more review feedback
...
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2017-12-01 11:38:35 +01:00
Christian Dietrich
d9e4a5d265
more review feedback
...
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2017-12-01 11:37:27 +01:00
Christian Dietrich
bb9b15316b
implemented review feedback
...
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2017-12-01 11:11:13 +01:00
Christian Dietrich
6997cb0697
[tracing] NPE thrown when a file is generated without traces https://github.com/eclipse/xtext-core/issues/359
...
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2017-12-01 09:54:43 +01:00
Christian Dietrich
67a36a5b64
Merge pull request #563 from eclipse/cd_core_issue544
...
moved 'copy java problems' configurable issue code to xtext core
2017-11-30 10:35:59 +01:00
Christian Dietrich
94a43ed825
moved 'copy java problems' configurable issue code to xtext core https://github.com/eclipse/xtext-core/issues/544
...
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2017-11-30 10:07:19 +01:00
Karsten Thoms
f3d2655cab
Refactoring & additional tests
...
Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2017-11-29 16:35:30 +01:00
Karsten Thoms
e3baf9ede5
[refactoring] formatting
...
Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2017-11-29 08:57:38 +01:00
Florian Stolte
c322f3e73a
[ #556 ] Added test for TextRegionsToString::quote
...
Signed-off-by: Florian Stolte <fstolte@itemis.de>
2017-11-22 16:55:51 +01:00
Florian Stolte
22820aac32
[ #555 ] Fix for issue.
...
Since windows line endings are replaced by unix line endings - i.e. the
"\r" character is removed -, the result string can be shorter than the
input string.
Since the loop iterating over the characters of the input string is
limited to "maxLength + 1" iterations, the check "result.size() >
maxLength" did not give the desired result in the presence of windows
line endings.
Now, the number of iterations is incremented when a character is deleted
from the string.
Signed-off-by: Florian Stolte <fstolte@itemis.de>
2017-11-22 14:04:02 +01:00
Karsten Thoms
07b182918c
Merge pull request #529 from eclipse/me/newline_fix
...
Fixed #460 : Test failure on Windows due to CarriageReturn char
2017-11-22 12:17:49 +01:00
Karsten Thoms
c22e0bb047
Merge pull request #549 from FStolte/refactoring
...
Refactoring: Cleaning up warnings
2017-11-15 17:32:25 +01:00
Florian Stolte
2a503da006
Refactoring: Cleaning up warnings.
...
Removed four unused imports and one unused local variable declaration.
Signed-off-by: Florian Stolte <fstolte@itemis.de>
2017-11-15 15:54:57 +01:00
fstolte
88fdbc819f
[ #537 ] Added null guards.
...
Added null guards to all relevant public methods of the Serializer
class.
Signed-off-by: fstolte <fstolte@itemis.de>
2017-11-15 11:33:50 +01:00
Christian Dietrich
dfa56bfc2e
fixed formatting of annotations (e.g. @Override) in Xtext Grammars #534
...
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2017-11-08 22:29:43 +01:00
Christian Dietrich
84533e40f1
fixed formatting of annotations (e.g. @Override) in Xtext Grammars #534
...
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2017-11-08 22:16:22 +01:00
Moritz Eysholdt
f41d82c540
Fixed #460 : Test failure on Windows due to CarriageReturn char
2017-11-08 08:48:31 +01:00
Waqas Ilyas
b8d1aa0294
Fix for #525 : Detect incomplete escape sequences
...
Signed-off-by: Waqas Ilyas <waqas.ilyas@gmail.com>
2017-11-05 03:21:42 -06:00
Christian Dietrich
4960af9c0a
set version to 2.14
...
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2017-10-27 09:03:34 +02:00
Moritz Eysholdt
ee2d61b332
[textRegionAccess] grammar elements may be TerminalRules
...
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2017-10-18 19:54:34 +02:00
Christian Dietrich
5f2b37de0f
widened version range for asm to include version 6 https://github.com/eclipse/xtext-core/issues/501
...
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2017-10-13 10:32:42 +02:00
Moritz Eysholdt
5c293fb6c4
Made another value converter null-safe
...
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2017-10-12 09:50:46 +02:00
Moritz Eysholdt
d68ca48a55
Fix an NPE during ValueConversion of xtext.xtext.GrammarID
...
java.lang.NullPointerException: null
at
org.eclipse.xtext.xtext.XtextValueConverters$1.internalToValue(XtextValueConverters.java:44)
at
org.eclipse.xtext.xtext.XtextValueConverters$1.internalToValue(XtextValueConverters.java:40)
at
org.eclipse.xtext.conversion.impl.AbstractNullSafeConverter.toValue(AbstractNullSafeConverter.java:31)
at
org.eclipse.xtext.conversion.impl.AbstractDeclarativeValueConverterService.toValue(AbstractDeclarativeValueConverterService.java:79)
at
org.eclipse.xtext.ide.serializer.impl.ReferenceUpdater.getQualifiedName(ReferenceUpdater.java:124)
at
org.eclipse.xtext.ide.serializer.impl.ReferenceUpdater.needsUpdating(ReferenceUpdater.java:146)
at
org.eclipse.xtext.ide.serializer.impl.ReferenceUpdater.update(ReferenceUpdater.java:172)
at
org.eclipse.xtext.ide.serializer.impl.RecordingXtextResourceUpdater.applyChange(RecordingXtextResourceUpdater.java:70)
at
org.eclipse.xtext.ide.serializer.impl.ChangeSerializer.endRecordChanges(ChangeSerializer.java:136)
at
org.eclipse.xtext.ide.serializer.impl.ChangeSerializer.applyModifications(ChangeSerializer.java:75)
at
org.eclipse.xtext.ui.editor.quickfix.WorkbenchMarkerResolutionAdapter$1.lambda$1(WorkbenchMarkerResolutionAdapter.java:131)
at java.util.LinkedHashMap.forEach(LinkedHashMap.java:684)
at
org.eclipse.xtext.ui.editor.quickfix.WorkbenchMarkerResolutionAdapter$1.execute(WorkbenchMarkerResolutionAdapter.java:139)
at
org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModifyOperation.java:106)
at
org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2313)
at
org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:118)
at
org.eclipse.xtext.ui.editor.quickfix.WorkbenchMarkerResolutionAdapter.run(WorkbenchMarkerResolutionAdapter.java:142)
at
org.eclipse.xtext.xtext.ui.editor.quickfix.XtextGrammarQuickfixProviderTest.assertAndApplyAllResolutions(XtextGrammarQuickfixProviderTest.java:172)
at
org.eclipse.xtext.xtext.ui.editor.quickfix.XtextGrammarQuickfixProviderTest.testFixAllEmptyEnumLiteral(XtextGrammarQuickfixProviderTest.java:106)
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2017-10-11 19:02:45 +02:00
Moritz Eysholdt
85f07a23c0
[textRegionAccess] make accessing EStructuralFeatures easier
...
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2017-10-11 14:54:40 +02:00
Christian Dietrich
81df41e85b
removed unused imports
...
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2017-10-05 08:26:22 +02:00
Jan Koehnlein
08ab8fe119
GH-488 fixed DefaultReferenceDescription test
...
We need the fragment path URIs in the renam scenario only
Signed-off-by: Jan Koehnlein <jan.koehnlein@typefox.io>
2017-10-02 20:56:19 +02:00
Jan Koehnlein
dd3513b8a9
[refactoring] Fixes in core for https://github.com/eclipse/xtext-eclipse/issues/284
...
Signed-off-by: Jan Koehnlein <jan.koehnlein@typefox.io>
2017-10-02 18:08:52 +02:00
Christian Dietrich
abc098556c
Merge pull request #484 from tkutz/tku_templateNodeWhitespace
...
#483 : Remove last whitespaces only when appending separator in for-loops
2017-10-01 21:26:50 +02:00
Knut Wannheden
ea7e45a602
#481 : Improve performance of ResourceStorageLoadable
...
Wrap ZipInputStream in a BufferedInputStream before reading from it with
with a DataInputStream or ObjectInputStream. This improves performance
quite significantly (overall roughly by a factor 4), as the
decompression works much more efficiently with larger chunks of data.
Signed-off-by: Knut Wannheden <knut.wannheden@paranor.ch>
2017-10-01 21:23:32 +02:00
Thomas Kutz
0b74443d41
[ #483 ] Append trailing whitespaces and newlines after appending separator in for-loops
...
Signed-off-by: Thomas Kutz <thomas.kutz@itemis.de>
2017-09-29 13:40:36 +02:00
Moritz Eysholdt
c1014a0972
[formatter/perf] Avoid calling List.newArrayList() during autowrap
...
To navigate the TextReplacers in reverse order, this change introduces a
reversed iterable. Thus, it is no longer necessary to copy all the
TextReplacers into a list for reverse navigation.
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2017-09-27 19:42:42 +02:00
Christian Dietrich
b71f866eb3
[Tracing] Allow to specify UseForDebugging #467
...
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2017-09-22 13:25:42 +02:00
Sven Efftinge
11c084dc5e
GH-73 Replaced the string replace with URI factory to fix the authority.
...
Signed-off-by: Sven Efftinge <sven.efftinge@typefox.io>
2017-09-13 17:24:57 +02:00
Moritz Eysholdt
846e686bd7
[formatter] improved comment handling in undefined regions
...
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2017-09-12 09:18:26 +02:00
Sebastian Zarnekow
278a115708
Merge pull request #404 from eclipse/sz_gh341
...
Problem with content assist and grammar fragments
2017-09-06 14:29:14 +02:00
Christian Dietrich
d8a45bcfe2
fixed wrong import
...
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2017-09-06 10:41:45 +02:00
Christian Dietrich
7b2e23b94e
[479137]improved Misleading error message 'Cannot create datatype' for terminal rule #91
...
- added test
- fixed broken test framework
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2017-09-06 09:34:28 +02:00
Sebastian Zarnekow
7be950d6a2
Merge branch 'master' into sz_gh341
2017-09-05 23:11:22 +02:00
Sebastian Zarnekow
1c5b2b0320
Merge pull request #366 from eclipse/sz_bug476690
...
Refined token placement for indentation based languages
2017-09-05 23:02:36 +02:00
Karsten Thoms
077b26c5ca
[formatting] removed obsolete tab
...
Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2017-08-24 16:05:23 +02:00
Dennis Huebner
87e7b088e3
Merge pull request #354 from yanntm/master
...
remove greedy flags from critical dependency paths
2017-08-24 08:59:32 +02:00
Moritz Eysholdt
8ff6017c62
[ChangeSerializer] improved toString()
2017-08-23 18:27:51 +02:00
Moritz Eysholdt
6a55da1434
[TextRegionDiffBuilder] improved handling of multi-inserts
...
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2017-08-23 17:31:59 +02:00
Moritz Eysholdt
ae9d0259ef
fixed #438 : error in ITextRegionAccess.regionForLineAtOffset(int)
...
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2017-08-21 19:25:51 +02:00
Moritz Eysholdt
353cdac76e
make AbstractEObjectRegion.addChild(IAstRegion) public
...
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2017-08-21 10:16:53 +02:00
Moritz Eysholdt
b304d5e921
[ChangeSerializer] improve handling of multiple deleted regions
...
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2017-08-20 20:10:02 +02:00
Moritz Eysholdt
b913ac015f
[TextRegionAccess] Allow usage on mutable EMF models
...
This includes the possibility that an EObject has been removed from the
EMF containment tree or moved to another resource.
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2017-08-20 20:10:02 +02:00
Moritz Eysholdt
fcdd7c4011
[TextRegionAccess] keep track of containment among EObjectRegions
...
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2017-08-18 11:24:29 +02:00
Moritz Eysholdt
80f8bca39f
[debug] also visualize changes that only change URIs but not text
...
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2017-08-16 18:09:20 +02:00
Moritz Eysholdt
0845899c84
Support Modifications on a TextRegionAccess
...
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2017-08-11 08:07:05 +02:00
Moritz Eysholdt
9d8bfe5c5a
[JavaFormatter] auto-line-wrap for Code+Comments to 120 chars
...
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2017-08-11 08:07:05 +02:00
Anton Kosiakov
987146a77f
[ls] unifies workspace configs
...
Signed-off-by: Anton Kosiakov <anton.kosyakov@typefox.io>
2017-08-09 09:48:30 +02:00
Sebastian Zarnekow
4a59384b6f
Missing @since tags
2017-08-07 11:13:13 +02:00
Christian Dietrich
4857bce25b
[468777] [formatter] ITextRegionAccess.regionForEObject(EObject) should throw exception for resource-external eobjects
...
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2017-08-04 13:37:02 +02:00
Moritz Eysholdt
1a57c83086
[textRegionAccess] simplified inheritance hierarchy
...
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2017-08-03 14:21:35 +02:00
Alex Tugarev
bf995d259b
[textRegionAccess] Fixed missing import.
...
Signed-off-by: Alex Tugarev <alex.tugarev@typefox.io>
2017-07-31 09:45:45 +02:00
Karsten Thoms
f8ccf33644
Merge pull request #409 from AlexTugarev/GH-408
...
[textRegionAccess] Make state of `NodeModelBasedRegionAccessBuilder` accessible in subclasses
2017-07-29 18:51:42 +02:00
Alex Tugarev
d8c31d4a79
[textRegionAccess] Make state of NodeModelBasedRegionAccessBuilder
accessible in subclasses.
...
Signed-off-by: Alex Tugarev <alex.tugarev@typefox.io>
2017-07-29 05:01:45 +02:00
Sebastian Zarnekow
2580fb8ffc
Minor cleanup in GrammarUtils
2017-07-23 19:52:22 +02:00
Moritz Eysholdt
58ca794e9e
fixed #398 : formatting must not be applied outside requested regions
...
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2017-07-20 19:19:34 +02:00
Moritz Eysholdt
dd63a84305
Make it easier to traverse text regions of a TextRegionAccess
...
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2017-07-18 13:15:31 +02:00
Moritz Eysholdt
81aa59709e
fixed #383 : LiveShadowedResourceDescriptions should be live
...
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2017-07-18 13:14:56 +02:00
Moritz Eysholdt
2b268a4f4f
fix #301 : Improved support for IAutoWrapFormatter
...
The previous fix
906be319a4
dind't handle insertion of new ITextReplacers
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2017-07-10 22:15:20 +02:00
Moritz Eysholdt
906be319a4
fix #301 : Rollback bc autowrap may ignore change from IAutoWrapFormatter
...
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2017-07-10 19:26:09 +02:00
Christian Dietrich
8eecbdcd4d
[519299] LiveShadowedAllContainerState.containsURI() breaks scoping while refactoring (regression)
...
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2017-07-06 15:19:07 +02:00
Karsten Thoms
50e1919579
Merge pull request #380 from eclipse/bug519241
...
[519241] Throw AssertionError when scope provider returns null
2017-07-05 16:48:20 +02:00
Karsten Thoms
3f486be870
[519241] Throw AssertionError when scope provider returns null
...
Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2017-07-05 16:41:52 +02:00
Miro Spönemann
84dece4cd4
Merge pull request #372 from eclipse/msp_issue57
...
Create an in-memory workspace configuration when no root URI is given
2017-07-05 12:45:55 +02:00
Miro Spönemann
cdeb89d335
Explicitly return null
2017-07-05 12:44:21 +02:00
Karsten Thoms
f46a269fdd
gradleprojectbuilder added by Buildship project import
...
Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2017-07-01 23:09:36 +02:00
Miro Spönemann
d424d9f80d
Fixed #57 : Create an in-memory workspace configuration when no rootURI is given
2017-06-30 11:17:51 +02:00
Anton Kosiakov
2782bd4e8c
[ls/resourceAccess] fail if the resource set is null
...
Signed-off-by: Anton Kosiakov <anton.kosyakov@typefox.io>
2017-06-18 12:03:17 +02:00
Anton Kosiakov
7f91cc9c09
[referenceFinder] refine a javadoc for IResourceAccess
...
Signed-off-by: Anton Kosiakov <anton.kosyakov@typefox.io>
2017-06-18 11:43:32 +02:00
Karsten Thoms
aca69748fd
formatting
...
Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2017-06-14 19:08:56 +02:00
Sebastian Zarnekow
0657d731dd
Make test cases green, improve token placement
2017-06-12 15:09:57 +02:00
Sebastian Zarnekow
19a3930632
Improved synthetic token placement
2017-06-07 10:31:21 +02:00
Sebastian Zarnekow
34bf1e5d30
Introduce local vars to avoid compiler warning
2017-06-02 12:42:28 +02:00
Sebastian Zarnekow
1521d1ffc3
Mark overriding methods as synchronized since it does no harm
2017-06-02 12:41:56 +02:00
Yann Thierry-Mieg
3f9898593c
remove greedy flags from critical dependency paths These greedy flags are pulling in a lot of unwanted plugins in eclipse update scenarios.
...
More precisely, any install of org.eclipse.xtext into an eclipse with eclipse/releases/ update site (e.g. every eclipse) will install e.g. jdt.core among other things.
This is a problem especially when the original eclipse product is very lean, e.g. a headless application relying on Xtext to parse models to EMF.
It is also undesirable overall in other scenarios, see also :
(older bug report) https://bugs.eclipse.org/bugs/show_bug.cgi?id=464344
(current issue on github) #345
(documentation for why greedy is bad for tool providers using Xtext) https://wiki.eclipse.org/Equinox/p2/Publisher
This commit removes greedy from dependencies on things which are not needed at runtime : xtend, mwe
Signed-off-by: Yann Thierry-Mieg <Yann.Thierry-Mieg@lip6.fr>
2017-05-25 12:21:55 +02:00
Christian Dietrich
569a3ab241
cleanup unused imports
...
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2017-05-24 15:11:20 +02:00
Miro Spönemann
a75bac8287
Increased version number to 2.13.0-SNAPSHOT
2017-05-24 13:41:16 +02:00
Christian Dietrich
72a2e8856e
dont generate traced accessor for java.lang.Object#getClass
...
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2017-05-24 11:12:39 +02:00
Christian Dietrich
9158fdbed0
added logging to inform the user that calling the formatter with an non resource eobject is a bad idea
...
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2017-05-18 11:57:01 +02:00
Christian Dietrich
915d9df13d
Made Code Guava 21 Compatible
...
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2017-05-10 08:38:34 +02:00
Miro Spönemann
ecc8da5c4f
Merge pull request #328 from eclipse/msp_templateNodes
...
Fixed inconsistencies between TemplateNode and Xtend templates
2017-05-02 09:46:15 +02:00
Karsten Thoms
e6d86d9d3c
Merge pull request #329 from eclipse/kth_bug515846
...
handle null argument for projectConfig
2017-05-02 09:27:29 +02:00
Miro Spönemann
e9c0e220cf
Don’t indent if there is no content, added another special case test
2017-05-02 09:17:59 +02:00
Karsten Thoms
bebc514648
[515846] getTraceToTarget: return null when argument projectConfig is
...
null
Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2017-05-01 21:43:52 +02:00
Karsten Thoms
a571fa9ba1
[515846] Add null guard for projectConfig
...
Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2017-04-29 20:48:28 +02:00
Miro Spönemann
3a115a7977
Fixed inconsistencies between TemplateNode and Xtend templates
2017-04-28 15:32:19 +02:00
Miro Spönemann
4345a10408
Code cleanup and comments
2017-04-28 09:25:10 +02:00
Miro Spönemann
e40329c501
Allow templates and generator nodes as input to append(Object), improved handling of indent nodes
2017-04-28 09:24:26 +02:00
Miro Spönemann
05dc198460
Fixed mismatch between IndentNode and TargetStringConcatenation wrt. indentation of the first line
2017-04-28 08:57:58 +02:00
Sven Efftinge
0cb38c5f4c
[tracing] handle indent differently
2017-04-27 15:02:30 +02:00
Miro Spönemann
82b2ad56a7
Merge pull request #325 from eclipse/msp_generatorErrorMessage
...
Improved error message of Xtext grammar validation
2017-04-27 08:43:54 +02:00
Miro Spönemann
c5dd2694e5
Removed @EqualsHashCode from generator nodes
2017-04-27 08:38:25 +02:00
Miro Spönemann
a104e77dbc
Allow postprocessing on generator result tree
2017-04-26 15:58:19 +02:00
Miro Spönemann
da893449d2
#41 : Improved error message of Xtext grammar validation when the type of a reference cannot be resolved
2017-04-26 13:22:04 +02:00
Miro Spönemann
e1d1859709
Fixed IndexOutOfBoundsException in TemplateNode
2017-04-26 08:35:32 +02:00
Christian Dietrich
778ac24720
NPE in PartialParsingHelper #219
...
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2017-04-12 13:27:05 +02:00
Sven Efftinge
f2017600f9
[tracing] Handle null argument in template append ( fixes #314 )
2017-03-31 08:52:46 +02:00
Jan Köhnlein
12a23df787
Merge pull request #293 from eclipse/me_perf1
...
fixed #292 Improve performance of FilterUriContainer#isEmpty()
2017-03-30 09:20:08 +02:00
Christian Dietrich
ffad50d897
Merge pull request #307 from eclipse/cd_bug410605
...
[410605] [grammar][terminal] Validate that EOF cannot be inverted
2017-03-29 09:34:59 +02:00
Christian Dietrich
6ef6a0f16f
Merge pull request #305 from eclipse/cd_bug380449
...
[380449] Enhancements to Task Finder
2017-03-29 09:30:41 +02:00
Christian Dietrich
697fc6dc67
[380449] implemented reuse of END_TAG pattern from MUltiLineCommentProvider
...
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2017-03-28 18:21:06 +02:00
Christian Dietrich
8e303f37ec
Merge pull request #306 from eclipse/cd_bug493990
...
[493990] Fixed Duplicate Problem in TraceRegionMerger
2017-03-28 17:31:11 +02:00
Christian Dietrich
282afa652b
made signature of new traceregion constructor more relaxed
...
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2017-03-28 17:16:32 +02:00
Christian Dietrich
257c2c88fc
[410605] [grammar][terminal] Validate that EOF cannot be inverted
...
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2017-03-24 15:39:00 +01:00
Christian Dietrich
6919d13563
[493990] Fixed Duplicate Problem in TraceRegionMerger
...
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2017-03-24 15:28:04 +01:00
Sven Efftinge
9a9526ec45
[tracing] disable line separator harmonizer for trace aware contents
2017-03-24 13:56:25 +01:00
Christian Dietrich
770e6897d7
[380449] Enhancements to Task Finder
...
- Introduced a hook to allow stripping of the node text before calling the task parser
- Stripped trailing comment in tasks
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2017-03-22 10:55:54 +01:00
Stéphane Galland
6e413dbe41
Use getValuesProvider function in IssueSeveritiesProvider.
...
The function `getValueProvider` is defined in `IssueSeveritiesProvider`
for replying the value provider instance.
This function seems to be defined as protected in order to be overriden.
But is it not called from the rest of the code of
`IssueSeveritiesProvider`. This PR fixes this issue.
Signed-off-by: Stéphane Galland <galland@arakhne.org>
2017-03-07 17:49:41 +01:00
Christian Dietrich
214f6f00a4
fixed some typos
...
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2017-03-04 13:48:25 +01:00
Michael Keppler
2b8de2905e
refactor: improve performance of StateBasedContainer
...
When using huge models, the getContents() call takes really big runtime.
Shorten runtime by only asking it for much faster isEmpty().
Signed-off-by: Michael Keppler <michael.keppler@gmx.de>
2017-03-03 16:25:36 +01:00
Moritz Eysholdt
db5d5dde2d
fixed #294 improve performance of IContainerState#contains(URI)
...
This change adds a default method
boolean containsURI(String containerHandle, URI candidateURI)
to IAllContainersState, so that implementations can introduce
a faster algorithm that leverages the internals data structures.
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2017-02-28 19:32:46 +01:00
Moritz Eysholdt
af9e9150c8
fixed #292 Improve performance of FilterUriContainer#isEmpty()
...
it's called often from e.g. SelectableBasedScope.createScope(...)
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2017-02-28 18:47:19 +01:00
Sven Efftinge
0ac49cb58c
[tracing] changes regarding moritz’ feedback ( fixes #287 )
2017-02-27 16:38:35 +01:00
Sven Efftinge
d909078dfd
[tracing] various improvements ( #287 )
...
- fixed indentation issues
- support newLineIfNotEmpty semantics
- indent and newline nodes contain the actual string
- better naming
- documentation
2017-02-27 16:38:23 +01:00
Sven Efftinge
ac2b856e6e
[tracing] rename ( #287 )
2017-02-27 16:38:07 +01:00
Sven Efftinge
3e96aa3939
[tracing] Improved client API ( #287 )
2017-02-27 16:37:57 +01:00
Sven Efftinge
cfc62dea7a
[tracing] Added support for tracing in code generation ( #287 )
...
Signed-off-by: Sven Efftinge <sven.efftinge@typefox.io>
2017-02-27 16:37:43 +01:00
Sven Efftinge
8342fcb19f
[LS / Incremental Builder] Fixed issues (failing tests) with reused resource sets
2017-02-02 09:34:47 +01:00
Sven Efftinge
1c2b7a49f3
Merge pull request #237 from eclipse/se_reuse_resourcet
...
[language server / incrmental builder] allow reusing resource set
2017-02-01 12:08:19 +01:00
Miro Spönemann
ba911b4790
Lifted version number to 2.12.0-SNAPSHOT
2017-01-18 11:47:03 +01:00
Moritz Eysholdt
2012ce7256
fixed #251 : Formatter erroneously applies default formatting
...
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2017-01-16 20:02:07 +01:00
Sven Efftinge
6133b66961
added explicit dependency to org.eclipse.osgi (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=510504 )
2017-01-16 14:48:40 +01:00
Miro Spönemann
0515d22685
Refreshed projects with Buildship 2.0
2017-01-12 10:32:06 +01:00
Sven Efftinge
dd82d2ac5f
[language server / incrmental builder] allow reusing resource set
2017-01-11 15:14:15 +01:00
Moritz Eysholdt
066e22f507
fixed #12 : [formatter] IllegalArgumentException in NodeRegion.toString()
...
see https://github.com/eclipse/xtext-core/issues/12
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2017-01-11 10:53:08 +01:00
Miro Spönemann
6b52efede3
Merge pull request #229 from eclipse/msp_grammarAnalysisNullCheck
...
Added null / proxy check to GrammarElementTitleSwitch
2017-01-11 09:36:12 +01:00
Moritz Eysholdt
e968946b4f
[formatter/performance] Don't create stack traces
...
This change:
- introduces a flag that by default disables creation of stack traces
- lets the formatter do a second pass on conflict with that flag enabled
This combines the benefits of both worlds:
- performance without the need for tweaking
- debug information without the need to enable some magic config
see
https://bugs.eclipse.org/bugs/show_bug.cgi?id=508894
https://bugs.eclipse.org/bugs/show_bug.cgi?id=507174
https://github.com/eclipse/xtext-core/pull/195
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2017-01-10 17:54:44 +01:00
Miro Spönemann
5a6394afbc
Added null / proxy check to GrammarElementTitleSwitch
2017-01-10 14:39:07 +01:00
Holger Schill
7c96131e2a
Change Group and version for core.runtime
2017-01-09 16:45:30 +01:00
Holger Schill
a44c88c4e1
Change version and group ID for equinox.registry
...
Signed-off-by: Holger Schill <Holger.Schill@itemis.de>
2017-01-09 16:31:27 +01:00
Holger Schill
e51e61cece
[Wizard] General: Gradle Tests dont work #224
...
Signed-off-by: Holger Schill <Holger.Schill@itemis.de>
2017-01-09 16:25:15 +01:00
Miro Spönemann
0618470051
Merge pull request #218 from eclipse/msp_crossRefSerializer
...
Fixed CrossReferenceSerializer regression for special proxy URI formats
2017-01-06 16:43:29 +01:00
Miro Spönemann
a0c5eacbe0
Added missing encoding settings
2017-01-06 16:20:58 +01:00
Miro Spönemann
383b65b7ad
Fixed CrossReferenceSerializer regression for special proxy URI formats
2017-01-06 15:37:34 +01:00
Miro Spönemann
5867a8e76b
Added null check in SerializationDiagnostic
2017-01-05 11:58:49 +01:00
Karsten Thoms
89fc6af674
Added @SafeVarargs annotation for methods with varargs
...
Suppress compiler warning
Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2017-01-05 07:16:44 +01:00
Karsten Thoms
56f1d1079e
[492072] Regenerated Xtend code
...
Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2017-01-02 14:33:55 +01:00
Sven Efftinge
4cc8c07641
[smap] made old smap installer try to delegate to new impl. This will allow users to fix this just by adding the corresponding dependency to the classpath.
2016-12-23 09:02:08 +01:00
Karsten Thoms
c9b7bf5af2
[492072] Minimized usage of local variables
...
The Xtend compiler was optimized to minimize the usage of synthetic variables for member feature calls and right-hand assignments
Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2016-12-22 00:54:25 +01:00
Karsten Thoms
f2b5cdfe39
[507077] Do not emit empty concatenation
...
Changes to generated Xtend code due to compiler optimization
Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2016-12-19 15:47:59 +01:00
Sven Efftinge
ad9ef47b80
Merge pull request #204 from lievenlemiengre/master
...
Allow customisation of allRules creation in AbstractInternalAntlrParser
2016-12-18 14:21:14 +01:00
Titouan Vervack
0e3063dcb2
Fixed typo in PreferenceKey.java
...
Signed-off-by: Titouan Vervack <titouan.vervack@sigasi.com>
2016-12-15 12:11:11 +01:00
Christian Schneider
d46773cfc1
[xtext lang] re-generated runtime parts of with new generator
...
Signed-off-by: Christian Schneider <christian.schneider@typefox.io>
2016-12-14 13:16:00 +01:00
Christian Schneider
d4d1e0e83f
[xtext lang] re-generated Terminals-related parts (runtime only) with new generator
...
Signed-off-by: Christian Schneider <christian.schneider@typefox.io>
2016-12-14 13:15:59 +01:00
Christian Schneider
483d3ac819
[xtext lang] re-generated antlr grammar with new generator, re-generated lexer+parser impl
...
Signed-off-by: Christian Schneider <christian.schneider@typefox.io>
2016-12-14 13:15:57 +01:00
Lieven Lemiengre
522fbcfca6
Allow customisation of allRules creation in AbstractInternalAntlrParser
...
Signed-off-by: Lieven Lemiengre <lieven.lemiengre@sigasi.com>
2016-12-14 11:45:51 +01:00
Karsten Thoms
365e8b8def
Merge pull request #192 from eclipse/kth/refactorings
...
Some minor refactorings
2016-12-12 15:02:39 +01:00
Karsten Thoms
b7ec4d2584
Use ToStringBuilder for toString
...
Objects#toStringBuilder is marked for removal and its replacement
MoreObjects#toStringBuilder is only available from Guava 18+
Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2016-12-12 13:17:04 +01:00
Miro Spönemann
ca592b03ac
Merge pull request #178 from tivervac/patch-1
...
Fixed #177 : typo in AbstractFormatter2.java
2016-12-06 12:13:23 +01:00
Karsten Thoms
5c04979dd2
Replace deprecated Objects.ToStringHelper by MoreObjects.ToStringHelper
...
Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2016-12-06 00:19:33 +01:00
Karsten Thoms
79c3eab77c
[ #5 ] Changes to .classpath generated by Buildship import
...
Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2016-11-30 10:00:21 +01:00
Karsten Thoms
13ba597bc4
Merge branch 'master' of git@github.com:eclipse/xtext-core
2016-11-29 15:33:08 +01:00
Karsten Thoms
c4ba710623
Classpath inclusion/exclusion rules changed by buildship import
...
Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2016-11-29 15:32:57 +01:00
Christian Dietrich
7377d51f13
Merge pull request #182 from eclipse/kth/umbrella-issue3-gradle-composite
...
Gradle composite
2016-11-29 11:37:19 +01:00
Karsten Thoms
8c381f8d59
Gradle composite
...
see https://github.com/eclipse/xtext-umbrella/issues/3
Remove org.eclipse.buildship.core.prefs
Files are generated on Gradle project import or by Oomph setup
Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2016-11-28 14:41:08 +01:00
Karsten Thoms
c637df9451
Gradle composite
...
connection.project.dir changed to composite build location in new
umbrella project
value 'containers' added by Buildship
Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2016-11-25 08:49:49 +01:00
Akos Kitta
64010edcfc
Fixed issue in URI based file system access when checking missing files.
...
A FNFE was thrown instead of returning with false.
Signed-off-by: Akos Kitta <kittaakos@gmail.com>
2016-11-21 23:04:27 +01:00
Titouan Vervack
8d2529dc82
Fixed typo in AbstractFormatter2
...
Signed-off-by: Titouan Vervack <tivervac@gmail.com>
2016-11-20 12:55:56 +01:00
Moritz Eysholdt
fa6b2f5849
make DefaultLinkingService#getLinkedObjects() easier to debug
...
To set a breakpoint that hits when a cross reference can not be resolved
it should not be necessary to use a conditional breakpoint. A regular
breakpoint should be enough.
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2016-11-09 17:33:21 +01:00
Christian Dietrich
072bf6ecbb
[ #170 ] [Formatter2] Typo in the AbstractEObjectRegion class
...
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2016-11-09 08:22:32 +01:00
Sven Efftinge
b97a5ed574
Get rid of some warnings 💄
2016-11-08 11:52:48 +01:00
Miro Spönemann
b92f63bc54
eclipse/xtext#1080 : Add name and description to generated poms
...
Signed-off-by: Miro Spönemann <miro.spoenemann@typefox.io>
2016-10-23 13:36:04 +02:00
Christian Schneider
5d472b86ca
[xtext validation] added checks for missing or invalid '@Override' annotations in 'XtextValidator' as desired by #121 , put the issue codes to 'XtextConfigurableIssueCodes' although the severity is not configurable (yet), added a corresponding test to 'XtextValidatorTest'
...
Signed-off-by: Christian Schneider <christian.schneider@typefox.io>
2016-10-18 09:54:44 +02:00
Christian Schneider
eba5492719
[grammar] introduced annotations to parser, terminal, and enum rules paving the way for @Override annotations as desired by #121 , updated generated + affected artifacts and tests
...
Signed-off-by: Christian Schneider <christian.schneider@typefox.io>
2016-10-18 09:54:44 +02:00
Moritz Eysholdt
db03d9f7b8
[serializer/perf] produce diagnostics only on error
...
Don't always run the old ConcreteSyntaxValidator before serialization.
Instead, create diagnostics in the serializer only when serialization
fails.
see https://github.com/eclipse/xtext-core/issues/48
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2016-10-14 12:22:40 +02:00
Moritz Eysholdt
66b8ace522
[GrammarUtil/perf] make containing*() fast for misses
...
containingAssignment() and containingCrossReference() should return
null as fast as possible when there is no Assignemnt/CrossReference
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2016-10-14 12:22:13 +02:00
Moritz Eysholdt
d7f9373b95
[textRegionAccess/perf] don't call getLength() on ICompositeNodes
...
because on them it's a derived (expensive) value
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2016-10-14 12:22:13 +02:00
Moritz Eysholdt
d2bc2f52f1
[serializer/perf] don't generate events for unassigned parser rules
...
Because they're neither consumed by the old- nor the new formatter.
And they are not needed to generate text.
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2016-10-13 19:30:55 +02:00
Moritz Eysholdt
053a1c5069
revert ef25bcbe4c
, no performance increase
2016-10-13 19:30:55 +02:00
Moritz Eysholdt
bff7b4ec65
[serializer/perf] avoid redundant calls to .distanceToFinalStateMap()
...
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2016-10-13 19:30:55 +02:00
Miro Spönemann
bbda47b341
Fixed #122 : Change default binding of IReferableElementsUnloader to GenericUnloader
...
Signed-off-by: Miro Spönemann <miro.spoenemann@typefox.io>
2016-10-13 11:21:04 +02:00
Miro Spönemann
e8682fbfd3
[serializer] Improved performance of bounds computation
...
Implemented new algorithms for computing upper and lower bounds in GrammarConstraintProvider
Signed-off-by: Miro Spönemann <miro.spoenemann@typefox.io>
2016-10-11 15:38:09 +02:00
Moritz Eysholdt
ef25bcbe4c
[serializer/performance] use an identity string to compare NFAs/PDAs.
2016-10-11 13:54:46 +02:00
Moritz Eysholdt
6c71e90449
[serializer/performance] use ArrayListMultimap
...
This avoids calls to hashCode() .equals() on values.
2016-10-11 13:54:46 +02:00
Moritz Eysholdt
80a6f9fcf8
[serializer/performance] avoid redundant grammar analysis
2016-10-11 08:49:25 +02:00
Moritz Eysholdt
e90d21797e
fixed eclipse/xtext-eclipse#100 serializer/performance fix regression
...
This disables a check with a legacy impl.
The check should never be active at runtime.
Unfortunately, the legacy impl has a bug when a node's parent is null.
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2016-10-07 20:33:52 +02:00
Moritz Eysholdt
d59869f704
[serializer/performance] avoid redundant traversal of node model
...
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2016-10-07 20:18:44 +02:00
Moritz Eysholdt
c683d48d8b
[serializer/performance] never resolve cross references
...
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2016-10-07 20:16:47 +02:00
Moritz Eysholdt
88b34d57c8
[serializer] fixed a NPE
...
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2016-10-07 15:26:40 +02:00
Moritz Eysholdt
423780cf3e
fix eclipse/xtext-extras#63 broken serializer tests
...
this is a fixup for cb9981d14cc279cb0433b63c9c88f8ebf20ba739
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2016-10-07 14:21:12 +02:00
Moritz Eysholdt
93ca0d1487
[serializer/performance] fixed broken hashCode() function
...
'parameterValues' was usually emptySet()
so parameterValues.hashCode() returned 0
which caused this hashCode() method to return 0
nothing but collisions when used as key in maps! duh!
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2016-10-06 23:30:40 +02:00
Moritz Eysholdt
17a85f155d
[serializer/performance] improved performance of node model traversal
...
this change deprecates EmitterNodeIterator since it relies on
expensive calls to iNode.getOffset().
Furthermore, it simplifies the implementation because
- lazy behavior does not provide advantages here
- 'allowHidden' and 'passAbsorber' were always false.
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2016-10-06 16:46:52 +02:00
Sven Efftinge
7c51af4e58
[lsp] use language specific proposal acceptor, added SerializableEObjectDescriptionProvider hook
2016-09-27 01:17:00 +02:00
Moritz Eysholdt
6bbad4f142
fixed #14 : [formatter2] honor FormatterRequest.allowIdentityEdits
...
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2016-09-25 23:15:59 +02:00
Moritz Eysholdt
7c7e1f88b7
fixed #97 [Formatting2/auto-wrap] never wrap preceding lines
...
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2016-09-25 22:50:45 +02:00
Lorenzo Bettini
4de451dd36
Merge pull request #104 from kthoms/kth/issue5
...
[#5 ] Ignore optional compile problems on *-gen source folders
2016-09-23 17:15:56 +02:00
Karsten Thoms
312e0af4d6
[ #5 ] Ignore optional compile problems on *-gen source folders
...
Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2016-09-23 15:51:18 +02:00
Karsten Thoms
9b0947fe62
[format] Streamlined whitespaces
...
Consistent use of tabs instead of spaces
Use single whitespace between brackets
Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2016-09-14 16:00:10 +02:00
Christian Dietrich
73fd155426
[445175] Missing error message on invalid alternative assignments with cross references
...
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2016-09-08 07:57:30 +02:00
Sven Efftinge
1da41dec11
More stable ordering for ResourcedescriptionData
2016-09-01 08:19:22 +02:00
Sven Efftinge
1c120fb1a0
Stable ordering for Resourcedescriptiondata’s resourcedecriptions
2016-08-30 23:04:43 +02:00
Christian Dietrich
07d3a5a73b
readded accidentally removed constructor (this time with correct behaviour)
...
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2016-08-29 21:24:40 +02:00
Sven Efftinge
1cf171157a
readded accidentally removed constructor
2016-08-29 08:48:14 +02:00
Sven Efftinge
6ab778f839
restored accidentally removed constructor
2016-08-26 14:49:09 +02:00
Sven Efftinge
9b9537b4b6
[LSP] fixed some issue with URI normalization
2016-08-26 12:02:25 +02:00
Christian Dietrich
6858354b19
[482110] fixed AbstractFormatter2.shouldFormat
...
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2016-08-18 14:51:14 +02:00
Karsten Thoms
d7efc23796
[478377] Add null guard
...
Test call findNodesForFeature with null feature
Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2016-08-16 22:21:44 +02:00
Moritz Eysholdt
79118e564d
Merge pull request #72 from eclipse/me_xtextresource
...
introduce XtextResource#setEntryPoint(ParserRule)
2016-08-12 13:46:25 +02:00
Christian Dietrich
625803b3c9
[435441] Added JavaDoc to CheckType Enum
...
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2016-08-12 13:40:49 +02:00
Moritz Eysholdt
0745d5a43d
[ #16 , XtextResource] introduce setEntryPoint(ParserRule)
...
This change allows to specify on XtextResource what ParserRule the
parser should be using as the entry point.
see https://github.com/eclipse/xtext-core/issues/16
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2016-08-11 15:35:49 +02:00