Commit graph

2080 commits

Author SHA1 Message Date
Moritz Eysholdt
0e97152963 [serializer] improved error reporting of invlid enum values 2011-07-25 20:18:51 +02:00
Dennis Huebner
c11038aaff added dependency to o.e.xtext.xbase cause it is indirect used by org.eclipse.xtext.xtext.ecoreInference.Xtext2EcoreTransformerTest.testBug346035_01() 2011-07-25 19:12:32 +02:00
Moritz Eysholdt
d00ca9d1b7 [serializer/GrammarConstraints] fixed recursive impl of isOptional() and isMany() 2011-07-25 18:51:23 +02:00
Moritz Eysholdt
f92ffe0901 [serializer/ContextFinder] improved handling of transient values 2011-07-25 18:51:22 +02:00
Sebastian Zarnekow
7ac88c68c0 [xtext][builder] Fix: containers should not expose null entries in #getResourceDescriptions
see https://bugs.eclipse.org/bugs/show_bug.cgi?id=352214
2011-07-25 18:43:29 +02:00
Moritz Eysholdt
ee37e89f57 regenerated test languages 2011-07-25 16:49:28 +02:00
Moritz Eysholdt
69d24d7056 [serializer/AssignmentFinder] added support for boolean assignments 2011-07-25 16:49:28 +02:00
Sebastian Zarnekow
7f6b31eb54 [xtext][generator] Made class splitting more greedy by default, exposed configuration parameter for class splitting
see https://bugs.eclipse.org/bugs/show_bug.cgi?id=349992
2011-07-25 15:50:13 +02:00
Sebastian Zarnekow
195453d985 [xtext][generator] Improved class splitting for larger DFAs in generated lexer
see https://bugs.eclipse.org/bugs/show_bug.cgi?id=349992
2011-07-25 14:29:50 +02:00
Moritz Eysholdt
2473fdd605 [SerializerTester] reuse ResourceSet, if possible 2011-07-25 12:45:22 +02:00
Moritz Eysholdt
d8c910bc08 [serializer] bugfix in how NFAs are created
This fix is of major relevance and I'm surprised it hasn't been
discovered earlier. The code that creates state machines (NFAs) for the
new (and the old) serializer didn't handle alternatives with optional
members correctly. If an alternative has at least one optional member,
the alternative itself becomes optional. This wasn't considered so far.
2011-07-25 12:30:51 +02:00
Moritz Eysholdt
c23c2f81a0 [serializer] removed old test that is superseded by XtextSerializerTest 2011-07-25 10:23:42 +02:00
Moritz Eysholdt
439f0d7bcd [SerializerTester] resolve all proxies before detaching node model 2011-07-25 10:15:25 +02:00
Sebastian Zarnekow
cf7881a8e0 [xtext] Moved API breaking change to new currently internal utility class 2011-07-24 23:00:30 +02:00
Sebastian Zarnekow
867a534294 [xtext] Fixed some typos: semanitc -> semantic 2011-07-24 22:55:35 +02:00
Moritz Eysholdt
6d26277f9d [serializer] enabled the backtracking semantic sequencer by default. 2011-07-24 20:59:41 +02:00
Moritz Eysholdt
9208a51961 [serializer] implemented backtracking generic semantic sequencer 2011-07-24 20:59:40 +02:00
Moritz Eysholdt
5dc6a309bb [util.formallang] various improvements
- implemented a generic backtracking algorithm for NFAs
- added other utility functions for NFAs, such as 
  find, collect, sort, etc.
- implemented a simple generic NFA to ASCII renderer
2011-07-24 20:59:40 +02:00
Moritz Eysholdt
8069c50bdf [GrammarElementTitleSwitch] fixed a potential NPE 2011-07-24 20:59:40 +02:00
Moritz Eysholdt
30f0fe0c42 added GrammarUtil.getFeature(EObject obj, EClass owner) 2011-07-24 20:59:40 +02:00
Moritz Eysholdt
c854fa2449 [serializer] factored out the AssignmentFinder 2011-07-24 20:59:40 +02:00
Moritz Eysholdt
cc564342a2 [serializer/semanticsequencer] removed unused code 2011-07-24 20:59:39 +02:00
Sebastian Zarnekow
dc87ba8362 Disabled some irritating System.out statements 2011-07-23 16:08:28 +02:00
Sebastian Zarnekow
a2bf3ae015 [xtext][junit4] Moved XtextRunnerTest to new test bundle junit4.tests 2011-07-22 16:03:04 +02:00
Sebastian Benz
81f239ab49 Fixed: XtextRunner creates an injector before saving the global registries, which causes the registries to be overwritten when generated standalone setups are used.
Signed-off-by: Sebastian Zarnekow <Sebastian.Zarnekow@itemis.de>
2011-07-22 15:38:36 +02:00
Sebastian Zarnekow
c8e96a3ed5 [xtext] Fix: NPE in EcoreUtil2#getEReferenceFromExternalForm 2011-07-22 15:34:18 +02:00
Sebastian Zarnekow
ac57627787 [xtext][nodemodel] Fix: CCE in #findLeafNodeAtOffset
see https://bugs.eclipse.org/bugs/show_bug.cgi?id=352777
2011-07-22 10:37:03 +02:00
Holger Schill
08e3778579 fix for https://bugs.eclipse.org/bugs/show_bug.cgi?id=352450 2011-07-19 16:26:33 +02:00
Sebastian Zarnekow
901d6349d7 [xtend][scoping] Regression: Imports for nested types should not collide with imports for enclosing type, e.g.
import java.util.Map
import java.util.Map$Entry

should allow to write

def fun(Map map, Entry e, Map$Entry e2) {}
2011-07-19 15:27:41 +02:00
Moritz Eysholdt
ff166fac1b regenerated test languages 2011-07-15 15:17:43 +02:00
Moritz Eysholdt
f16a65d404 Fixed bug 352162 - [sequencer][generator] Large EPackage don't have a Literals Class 2011-07-15 14:58:38 +02:00
Moritz Eysholdt
2fde7e09e3 [serializer] removed unused code from the GenericSemanitcSequencer 2011-07-15 14:58:38 +02:00
Moritz Eysholdt
339bacb194 [GrammarElementTitleSwitch] Don't name it clone() when it doesn't use
java.lang.Object.clone()
2011-07-14 16:11:45 +02:00
Moritz Eysholdt
edb1b09d02 [serializer] fixed typos 2011-07-14 15:47:26 +02:00
Moritz Eysholdt
d271a78fb3 [Serializer] updated SerializerTester to support partial serialization 2011-07-14 15:46:54 +02:00
Moritz Eysholdt
d771534a55 fixed 345565 - [serializer] partial model serialization does not work 2011-07-13 21:06:36 +02:00
Moritz Eysholdt
4e89163c59 [serializer] improved algorithm for ContextFinder 2011-07-13 21:06:36 +02:00
Moritz Eysholdt
b954a60611 [GrammarElementTitleSwitch] smaller bugfixes 2011-07-13 15:36:47 +02:00
Moritz Eysholdt
c58c580875 Use require-bundle for Xtext instead for package-import because of bug
351970 - Package org.eclipse.xtext.util is exported twice
2011-07-13 15:36:47 +02:00
Moritz Eysholdt
d9c4ac4be3 [serializer] improved error messages 2011-07-13 15:36:47 +02:00
Moritz Eysholdt
41c6747a2b [serializer] make SerializerTester available for JUnit 4 as well 2011-07-13 12:33:55 +02:00
Moritz Eysholdt
d38cfd924e regenerated test languages 2011-07-12 18:27:15 +02:00
Moritz Eysholdt
f6bf58cd61 [serializer] work on the context finder 2011-07-12 18:27:15 +02:00
Moritz Eysholdt
1299f0b176 [serializer] bugfix in the grammar constraint provider 2011-07-12 18:27:15 +02:00
Moritz Eysholdt
fb0bcf8b28 fixed bug 344399 - NodeModelUtils.compactDump causes NPE when there are parse errors 2011-07-12 14:28:26 +02:00
Moritz Eysholdt
b58c225d2b applied patch from bug 351759 - [Serializer] performance leak due to inefficient INodes navigation in NodeIterator (thx Wladimir) 2011-07-12 13:24:44 +02:00
Moritz Eysholdt
f84af19a22 explicitly set version constraint for org.junit to [3.0.0, 4.0.0). Otherwise it sometimes resolves to JUnit 4 which renders the tests non-executable for me. 2011-07-12 13:07:17 +02:00
Sven Efftinge
47ff2347eb integrated xtend2 and xbase doc into xtext.doc 2011-07-07 14:11:02 +02:00
Jan Koehnlein
9a76cd17e3 [validation] handle diagrnostic message == null
https://bugs.eclipse.org/bugs/show_bug.cgi?id=350241
2011-07-07 13:14:55 +02:00
Jan Koehnlein
f7e4b6af6c [mwe] minor issue
https://bugs.eclipse.org/bugs/show_bug.cgi?id=350796
2011-07-07 11:50:16 +02:00