mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Jade multiple PSI trees custom parsing for chunks + misc
This commit is contained in:
@@ -666,6 +666,14 @@ public class PsiBuilderImpl extends UserDataHolderBase implements PsiBuilder, AS
|
||||
|
||||
@Override
|
||||
public IElementType getTokenType() {
|
||||
final IElementType elementType = doGetTokenType();
|
||||
if (elementType instanceof TokenWrapper) {
|
||||
return ((TokenWrapper)elementType).getDelegate();
|
||||
}
|
||||
return elementType;
|
||||
}
|
||||
|
||||
private IElementType doGetTokenType() {
|
||||
if (eof()) return null;
|
||||
|
||||
if (myRemapper != null) {
|
||||
@@ -761,7 +769,7 @@ public class PsiBuilderImpl extends UserDataHolderBase implements PsiBuilder, AS
|
||||
@Nullable
|
||||
public String getTokenText() {
|
||||
if (eof()) return null;
|
||||
final IElementType type = getTokenType();
|
||||
final IElementType type = doGetTokenType();
|
||||
if (type instanceof TokenWrapper) {
|
||||
return ((TokenWrapper)type).getValue();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user