Commit graph

3122 commits

Author SHA1 Message Date
Sven Efftinge
4345686729 fixed class cast exception in grammar access (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=347171) 2012-04-30 13:31:42 +02:00
Moritz Eysholdt
d21e95334d [Xtext] fixed 363914 - Check that you cannot append a null segment to a
QualifiedName
(cherry picked from commit b74a06f705a9a0750289e2152d49941f4727e756)
2012-04-27 13:35:10 +02:00
Knut Wannheden
babd10b531 [test] improved AssertableDiagnostics#diagnostic() helper methods
The AssertableDiagnostics#diagnostic() helper methods now declare
the severity and code parameters as of type Integer instead of int.
This allows clients to specify that there is no expected value. Note
that this change is binary incompatible but source compatible.

Added API analysis to org.eclipse.xtext.junit.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=374743
2012-04-27 11:33:43 +02:00
Dennis Huebner
d374641c8e [pde] Xtext now depends on emf 2.8! 2012-04-27 11:20:41 +02:00
Knut Wannheden
814e2fa850 [node model][performance] small tweaks to NodeModelBuilder
- Replaced some repeated method calls with variables on the stack.
- Inlined and removed the methods #addPrevious() and #addNext()
  resulting in an API incompatibility (filtered)
- Replaced internal EObjectArrayAsList with ArrayInterner

https://bugs.eclipse.org/bugs/show_bug.cgi?id=376637
2012-04-26 17:51:35 +02:00
Sebastian Zarnekow
2eab8af78d [xbase][scoping,typing] WIP: batched type resolution and linking for Xbase languages
see https://bugs.eclipse.org/bugs/show_bug.cgi?id=376037

All the things in the newly most likely temporarily introduced packages
xbase.typesystem.* and xbase.scoping.batch.* are subject to heavy changes
2012-04-26 13:14:26 +02:00
Sebastian Zarnekow
95b8c7f306 [xtext] Minor: Added overloaded variant MapBasedScope#createScope(IScope, Collection) 2012-04-26 13:14:26 +02:00
Sebastian Zarnekow
ad06a1f04f [xbase] Reexport jdt.annotations 2012-04-26 13:14:25 +02:00
Sven Efftinge
97e0896e37 [junit] suppressed API-problems 2012-04-26 10:19:28 +02:00
Moritz Eysholdt
53fcc1b7bd [serializer] improved sequence acceptors that help with debugging 2012-04-25 19:28:29 +02:00
Moritz Eysholdt
9250272022 improved an exception message, see bug 326024. 2012-04-25 19:21:30 +02:00
Moritz Eysholdt
79bbfccb6d make the BacktrackingSequencer deterministic in ambiguous situations 2012-04-25 17:57:02 +02:00
Moritz Eysholdt
c4c0fc200a fixed 377296 #3: Inlined LiveStateBasedContainerManager 2012-04-25 09:53:36 +02:00
Sven Efftinge
0bbd7064c7 added @since 2012-04-25 08:24:33 +02:00
Moritz Eysholdt
1d9dfc78d1 fixed 377296 #2: disable caches instead of propagating events 2012-04-24 18:52:21 +02:00
Moritz Eysholdt
890160412e reverted some changes from my last commit.
Propagating the events from the ResourceSet 
to all containers introduces too much overhead.
2012-04-24 17:43:12 +02:00
Moritz Eysholdt
ed45ba284e fixed 377296: ResourceSetBasedAllContainersState should handle lazily loaded resources 2012-04-24 16:21:07 +02:00
Jan Koehnlein
78bc63945d [generator] late delivery of tests for manifest merger changes 2012-04-20 12:42:22 +02:00
Jan Koehnlein
d7d5524039 [nodemodel] marked new serialization API internal 2012-04-20 12:16:01 +02:00
Jan Koehnlein
f56b26ff2d [nodemodel] Make node model serializable
applied patch https://bugs.eclipse.org/bugs/attachment.cgi?id=212979
see https://bugs.eclipse.org/bugs/show_bug.cgi?id=359824
2012-04-20 12:09:28 +02:00
Jan Koehnlein
0791813424 [grammar][codeassist] Reworked feature proposals 2012-04-20 10:07:27 +02:00
Jan Koehnlein
e5fbedbc9e [generator] generate dependencies for test plug-in
https://bugs.eclipse.org/bugs/show_bug.cgi?id=373330
2012-04-19 14:51:06 +02:00
Jan Koehnlein
293185e436 [validation] set the issue code even for plain diagnostics
https://bugs.eclipse.org/bugs/show_bug.cgi?id=369179
2012-04-19 11:47:05 +02:00
Dennis Huebner
08c019acef [xtext-mwe] Friendly PathTraverser - Bug 376944 2012-04-19 10:36:27 +02:00
Knut Wannheden
9c2e8afce6 [node model][performance] added caching of hash code
Caching the hash code of EObjectArrayAsList objects improves the
overall parse performance by around 10%.
2012-04-12 19:11:59 +02:00
Knut Wannheden
d82b7980f3 [node model] reintroduced cache in NodeModelBuilder
The previous commit accidentally removed the grammar element cache
which was there to reduce the node model size. the performance
improvement is still 20% over the original, but not as good as 35%.
2012-04-12 17:51:07 +02:00
Knut Wannheden
7dec6c607b [node model][performance] NodeModelBuilder#compressAndReturnParent()
see https://bugs.eclipse.org/bugs/show_bug.cgi?id=376607
2012-04-12 16:54:07 +02:00
Sven Efftinge
afc7879e29 made leaked class public (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=370843) 2012-04-12 08:32:26 +02:00
Sven Efftinge
86bbb847ab - delete trace file, if generated file is deleted (https://bugs.eclipse.org/bugs/show_bug.cgi?id=376376)
- trace files start with a '.' to make them hidden by default (https://bugs.eclipse.org/bugs/show_bug.cgi?id=376377) 
- fixed generated source view, to work with multiple generated files.
2012-04-12 08:11:38 +02:00
Sven Efftinge
e13a41363e bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=361538 2012-04-11 14:57:53 +02:00
Moritz Eysholdt
cc4beb3446 [serializer] implemented a fail-early strategy for sequencing
The backtracking algorithm of the semantic sequencer now avoids paths
that can not lead to a successful consumption of all EOBject's values.

To do so, every node of the state machine has knowledge about all
EStructuralFeatures which its subsequent nodes refer to. If an EObject
has unconsumed values within EStructuralFeatures that are not part of
this list, the algorithm will not proceed past this node.
2012-04-03 23:57:22 +02:00
Sebastian Zarnekow
3ee879ab6d [xtext][ui] Fix: LinkingErrorFixes have to use the value converter service
see https://bugs.eclipse.org/bugs/show_bug.cgi?id=361509
2012-04-03 23:45:28 +02:00
Sebastian Zarnekow
675b31c24a [xtext][hover] Made MultiLineCommentDocumentationProvider easier to extend
see https://bugs.eclipse.org/bugs/show_bug.cgi?id=374736
2012-04-03 19:10:38 +02:00
Moritz Eysholdt
ae18e7c2b4 fixed serializer test cases 2012-04-03 13:17:15 +02:00
Sebastian Zarnekow
dfd9fa96c9 [validation] Improved error message for invalid attempt to create a FeatureBasedDiagnostic 2012-04-02 22:38:11 +02:00
Moritz Eysholdt
750f07ad9f fixed a bug, thx to Ed Willink for code review. 2012-03-28 09:12:33 -04:00
Sebastian Zarnekow
3ce0d96106 [xtext] Minor: Code cleanup in MultilineCommentDocumentationProvider 2012-03-15 15:59:45 +01:00
Sebastian Zarnekow
d83d4f8365 [tests] Enabled a number of previously disabled test cases
Replaced commented code with more explicit @Ignore annotations in test classes
2012-03-13 14:17:19 +01:00
Sebastian Zarnekow
2c6128873a [tests] Removed obsolete test class 2012-03-13 14:17:19 +01:00
Sebastian Zarnekow
665213a0e6 [xtext] Some more null guards related to XtextResource / IParseResult 2012-03-09 16:42:58 +01:00
Sebastian Zarnekow
5f3f3a640c [xtext] Some additional guards against NPEs 2012-03-09 16:42:58 +01:00
Sebastian Zarnekow
e423c58a00 [cosmentics] Replace deprecated Iterables#reverse by Lists#reverse 2012-03-09 16:42:58 +01:00
Sebastian Zarnekow
87f0cad8cc [xtext] cosmetics: Removed unused import 2012-03-09 16:42:57 +01:00
Sebastian Zarnekow
65d9c1413d [xbase][compiler] Fix: NPE in compiler 2012-03-09 14:59:37 +01:00
Moritz Eysholdt
421085e6e3 fixed broken serializer tests in Xbase. The problem was that the node
model was not iterated properly.
2012-03-09 14:02:06 +01:00
Sebastian Zarnekow
41df70b922 [xtext][locationInFileProvider] Improved the computation of significant and full regions 2012-03-08 11:55:38 +01:00
Sebastian Zarnekow
cc25489506 [xtext][locationInFileProvider] Minor refactored the implementation to avoid the EcoreSwitch for debugability reasons 2012-03-08 10:40:03 +01:00
Sven Efftinge
fdb6859021 [xbase] types builder makes sure only one body is associated or set (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=372525) 2012-03-07 15:10:51 +01:00
Sven Efftinge
1a06ed183f fixed broken test, removed obsolete test 2012-03-07 13:49:54 +01:00
Sven Efftinge
69092a288f [debug] some more fixes and fine-tuning around breakpoints and debugging. 2012-03-07 11:19:49 +01:00