Commit graph

292 commits

Author SHA1 Message Date
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
Moritz Eysholdt
927d574d96 [#16, partial-parser] On fully re-parse, keep the entry parser rule
When the partial parser does a full re-parse, it should use the same
entry parser rule that has been used during the last parse.

see https://github.com/eclipse/xtext-core/issues/16

Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2016-08-11 15:35:48 +02:00
Moritz Eysholdt
9b43417e24 make grammar GrammarElementTitleSwitch more robust
Signed-off-by: Moritz Eysholdt <moritz.eysholdt@typefox.io>
2016-08-11 15:35:46 +02:00
Christian Dietrich
49b9ff4e55 Do not collect EObjects in transient Features when calculating IdToEObjectMap for Serialization. Fixes #65
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2016-08-03 08:16:44 +02:00
Jan Koehnlein
c70555edd9 [ls] make ResourceServiceProviderServiceLoader non-static 2016-07-20 13:44:13 +02:00
akosyakov
9e5a63dfba [incremenalBuilder] filter URIs which are not handled by a corresponding
resourceServiceProivder
2016-07-12 16:11:43 +02:00
Christian Dietrich
db0c4628c0 fixed broken manifests
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2016-07-07 13:47:21 +02:00
Sven Efftinge
24dad56ff4 made testlanguages project generator work again 2016-07-07 11:31:14 +02:00
Miro Spönemann
950eb8ae74 Removed old Gradle integration prefs 2016-07-07 11:22:13 +02:00
Miro Spönemann
decf9b22aa Checked in project metadata based on Buildship 2016-07-07 10:19:04 +02:00
Christian Dietrich
f8e2ceabc2 fixed typo Errorneous Erroneous
Signed-off-by: Christian Dietrich <christian.dietrich@itemis.de>
2016-06-23 09:18:19 +02:00
Sven Efftinge
2a2f5bec3e added empty TraceAsSmapInstaller back 2016-06-20 09:08:08 +02:00
Miro Spönemann
8ef5376742 Fixed some JavaDoc warnings 2016-06-15 16:39:35 +02:00
Miro Spönemann
0bc7f1fd20 Remove redundant .gitignore rules 2016-06-14 15:31:26 +02:00
Miro Spönemann
b612f2d437 Added generated code for package org.eclipse.xtext.build 2016-06-14 15:25:07 +02:00
Miro Spönemann
e1a4782403 Generated code 2016-06-14 09:45:31 +02:00
Miro Spönemann
96edcf48ae Removed buildship.core.prefs 2016-06-14 09:44:34 +02:00
Miro Spönemann
4270986cba Moved projects to root of repository 2016-06-14 08:30:25 +02:00