From 11a9b9f171b99b104e9c55d5fd7a6793a36ae295 Mon Sep 17 00:00:00 2001 From: Eugene Vigdorchik Date: Wed, 2 Mar 2005 16:52:00 +0300 Subject: [PATCH] (no message) --- .../psi/impl/source/parsing/ParseUtil.java | 30 ------------------- 1 file changed, 30 deletions(-) diff --git a/source/com/intellij/psi/impl/source/parsing/ParseUtil.java b/source/com/intellij/psi/impl/source/parsing/ParseUtil.java index 100ef6ab9ddb..60c10dec3265 100644 --- a/source/com/intellij/psi/impl/source/parsing/ParseUtil.java +++ b/source/com/intellij/psi/impl/source/parsing/ParseUtil.java @@ -65,36 +65,6 @@ public class ParseUtil implements Constants { lexer.start(lexer.getBuffer(), (int)position & 0xFFFFFFFF, lexer.getBufferEnd(), (int)(position >> 32)); } - public static int addTokens(CompositeElement parent, Lexer lexer, TokenSet typeBitSet, ParsingContext context) { - int count = 0; - while (true) { - IElementType tokenType = lexer.getTokenType(); - if (tokenType == null) break; - if (!typeBitSet.isInSet(tokenType)) break; - if (parent != null) { - TreeUtil.addChildren(parent, ParseUtil.createTokenElement(lexer, context.getCharTable())); - } - lexer.advance(); - count++; - } - return count; - } - - public static int addTokensUntil(CompositeElement parent, Lexer lexer, IElementType stopType, ParsingContext context) { - int count = 0; - while (true) { - IElementType tokenType = lexer.getTokenType(); - if (tokenType == null) break; - if (tokenType == stopType) break; - if (parent != null) { - TreeUtil.addChildren(parent, createTokenElement(lexer, context.getCharTable())); - } - lexer.advance(); - count++; - } - return count; - } - public static String getTokenText(Lexer lexer) { return StringFactory.createStringFromConstantArray(lexer.getBuffer(), lexer.getTokenStart(), lexer.getTokenEnd() - lexer.getTokenStart());