mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
better names for new api methods
This commit is contained in:
@@ -335,13 +335,13 @@ public class JavaParserUtil {
|
||||
}
|
||||
|
||||
@Override
|
||||
public IElementType justLookup(int steps) {
|
||||
return myDelegate.justLookup(steps);
|
||||
public IElementType rawLookup(int steps) {
|
||||
return myDelegate.rawLookup(steps);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int tokenTypeStart(int steps) {
|
||||
return myDelegate.tokenTypeStart(steps);
|
||||
public int rawTokenTypeStart(int steps) {
|
||||
return myDelegate.rawTokenTypeStart(steps);
|
||||
}
|
||||
|
||||
@Nullable @NonNls
|
||||
|
||||
@@ -93,7 +93,7 @@ public interface PsiBuilder extends UserDataHolder, UserDataHolderUnprotected {
|
||||
* @return type element ahead or behind, including whitespace / comment tokens
|
||||
*/
|
||||
@Nullable
|
||||
IElementType justLookup(int steps);
|
||||
IElementType rawLookup(int steps);
|
||||
|
||||
/**
|
||||
* See what token type is in <code>steps</code> ahead / behind current position
|
||||
@@ -101,7 +101,7 @@ public interface PsiBuilder extends UserDataHolder, UserDataHolderUnprotected {
|
||||
* @return offset type element ahead or behind, including whitespace / comment tokens, -1 if first token,
|
||||
* getOriginalText().getLength() at end
|
||||
*/
|
||||
int tokenTypeStart(int steps);
|
||||
int rawTokenTypeStart(int steps);
|
||||
|
||||
/**
|
||||
* Returns the text of the current token from the lexer.
|
||||
|
||||
@@ -635,13 +635,13 @@ public class PsiBuilderImpl extends UserDataHolderBase implements PsiBuilder {
|
||||
}
|
||||
|
||||
@Override
|
||||
public IElementType justLookup(int steps) {
|
||||
public IElementType rawLookup(int steps) {
|
||||
int cur = myCurrentLexeme + steps;
|
||||
return cur < myLexemeCount && cur >= 0 ? myLexTypes[cur] : null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int tokenTypeStart(int steps) {
|
||||
public int rawTokenTypeStart(int steps) {
|
||||
int cur = myCurrentLexeme + steps;
|
||||
if (cur < 0) return -1;
|
||||
if (cur >= myLexemeCount) return getOriginalText().length();
|
||||
|
||||
Reference in New Issue
Block a user