Commit graph

2206 commits

Author SHA1 Message Date
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
Moritz Eysholdt
644bb665d2 fixed FormatterTest.testLinewrapDatatypeRuleRef1 (see bug 347782) 2012-03-06 14:56:51 +01:00
Sven Efftinge
915e9dead8 [xbase] Line mapping for debugging improved 2012-03-06 11:52:39 +01:00
Sebastian Zarnekow
0e0dab5370 [formatting] Prevent NPE when formatting objects that reside in dummy resources without URI (backwards compatibility)
[debugAntlr] Set the URI for the formatting resource

see https://bugs.eclipse.org/bugs/show_bug.cgi?id=347782
2012-03-06 10:57:21 +01:00
Sebastian Zarnekow
cec0e93b34 [trace] Fine grained tracing for structure of Jvm types, e.g. origins of type references, parameters or type parameters are traced 2012-03-05 21:34:17 +01:00
Sebastian Zarnekow
5882670c44 [xtext][locationProvider] Introduced extension interface to ILocationInFileProvider which allows to specify the requested region more fine grained
Currently supported regions are: 
SIGNIFICANT,
FULL,
INCLUDING_COMMENTS,
INCLUDING_WHITESPACE
2012-03-05 21:34:17 +01:00
Sebastian Zarnekow
f7a8042a9a [xtext][documentationSupport] Introduced extension interface to IEObjectDocumentProvider which allows to access the actual documentation nodes 2012-03-05 21:34:17 +01:00
Sebastian Zarnekow
3ae1cff276 [trace] Some fixes for computation of inverse trace regions 2012-03-05 21:34:16 +01:00
Jan Koehnlein
642014d616 [grammarlanguage][autoedit] Fix for spurious ')' before quotes
https://bugs.eclipse.org/bugs/show_bug.cgi?id=346652#c0 (second issue)
2012-03-02 17:35:14 +01:00
Jan Koehnlein
a909ac8421 unused import 2012-03-02 17:35:13 +01:00
Jan Koehnlein
fd8c51bed6 [formatter] Use configurable line breaks: Fixed glitches and added tests for windows
https://bugs.eclipse.org/bugs/show_bug.cgi?id=347782
2012-03-02 11:57:29 +01:00
Jan Koehnlein
161e8237c9 set UNIX-style linebreaks all over the Xtext codebase 2012-03-01 15:04:38 +01:00
Jan Koehnlein
31690a5d29 [tests] fixing tests failing on windows because of file separator 2012-03-01 15:04:37 +01:00
Jan Koehnlein
7c5d2cd831 [formatter] fixing tests on Windows 2012-03-01 15:04:37 +01:00
Jan Koehnlein
a29baf41f1 [formatter] Use configurable line separator
https://bugs.eclipse.org/bugs/show_bug.cgi?id=347782
2012-03-01 15:04:37 +01:00
Dennis Huebner
08be34013d [common] Fixed some bugs detected by fb, removed obsolete SuppressWarn 2012-02-29 17:26:36 +01:00
Sebastian Zarnekow
6fadbb2109 [xbase][serialization] Added some tests for combinations of XShortClosure and the builder syntax, some fixes in semantic and syntactic sequence customizations 2012-02-29 14:14:56 +01:00
Sebastian Zarnekow
e1c0c2e0ba [xtext][junit4] Ignore discouraged access of types in compiler settings 2012-02-28 14:28:36 +01:00
Sven Efftinge
6b0e632252 [Xbase] introduced JvmModelCompleter to complete a JvmModel according to Java defaults. 2012-02-28 14:06:14 +01:00
Sven Efftinge
70c41e25ee Some improvements and normalization of debug information. 2012-02-27 14:22:08 +01:00
Jan Koehnlein
a2945fc474 [resource] clear adapters on root element when unloading
https://bugs.eclipse.org/bugs/show_bug.cgi?id=372563
2012-02-27 11:38:19 +01:00
Sven Efftinge
ec5fb021ac moved the trace to snap logic to Xtext core, such that it can be reused without any workspace model dependencies. 2012-02-26 21:42:02 +01:00
Sven Efftinge
b8e0ae92fc more debugging support 2012-02-24 17:26:26 +01:00
Sven Efftinge
d66a5223e4 first shot on debugging support for traced languages 2012-02-24 17:26:26 +01:00
Jan Koehnlein
f7cf310715 [naming] Better guidance for implementing a declarative qualified name provider
https://bugs.eclipse.org/bugs/show_bug.cgi?id=362287
2012-02-24 16:29:50 +01:00