aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Christiaens2010-09-30 09:21:12 (EDT)
committerKnut Wannheden2011-04-28 05:18:05 (EDT)
commite0670fcfea73af829512d5d519a356eed12ebd27 (patch)
tree4d748045a97274595529f47985d84b88da63fece
parent5a48a5161a15507fab434ecc15a7f81a9ac246b0 (diff)
downloadorg.eclipse.xtext-e0670fcfea73af829512d5d519a356eed12ebd27.zip
org.eclipse.xtext-e0670fcfea73af829512d5d519a356eed12ebd27.tar.gz
org.eclipse.xtext-e0670fcfea73af829512d5d519a356eed12ebd27.tar.bz2
Final cleanup before submission.Helios_Maintenance
-rw-r--r--plugins/org.eclipse.xtext.ui/src/org/eclipse/xtext/ui/editor/FastDamagerRepairer.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/org.eclipse.xtext.ui/src/org/eclipse/xtext/ui/editor/FastDamagerRepairer.java b/plugins/org.eclipse.xtext.ui/src/org/eclipse/xtext/ui/editor/FastDamagerRepairer.java
index 99ff2cb..ed9c4db 100644
--- a/plugins/org.eclipse.xtext.ui/src/org/eclipse/xtext/ui/editor/FastDamagerRepairer.java
+++ b/plugins/org.eclipse.xtext.ui/src/org/eclipse/xtext/ui/editor/FastDamagerRepairer.java
@@ -7,7 +7,6 @@
*******************************************************************************/
package org.eclipse.xtext.ui.editor;
-import java.util.LinkedList;
import java.util.List;
import java.util.ListIterator;
@@ -31,6 +30,7 @@ import com.google.inject.name.Named;
/**
* @author Sebastian Zarnekow - Initial contribution and API
+ * @author Mark Christiaens, Sigasi N.V. - Execution speed improvements
*/
public class FastDamagerRepairer extends AbstractDamagerRepairer {
@@ -75,7 +75,7 @@ public class FastDamagerRepairer extends AbstractDamagerRepairer {
}
}
- private boolean checkInvariant = true;
+ private boolean checkInvariant = false;
private List<TokenInfo> tokenInfos;
private IRegion previousRegion;
private DocumentEvent previousEvent;
@@ -164,8 +164,6 @@ public class FastDamagerRepairer extends AbstractDamagerRepairer {
int tokenInfoStart = -1;
int nextTokenInfoStart = 0;
- assert tokenInfos.get(tokenInfos.size() - 1).type == Token.EOF;
-
TokenSource source = createLexer(e.fDocument.get());
CommonToken token = null;