Java 类com.intellij.psi.impl.SharedPsiElementImplUtil 实例源码

项目:intellij-ce-playground    文件:MultiplePsiFilesPerDocumentFileViewProvider.java   
@Override
@Nullable
public PsiReference findReferenceAt(int offset) {
  TextRange minRange = new TextRange(0, getContents().length());
  PsiReference ret = null;
  for (final Language language : getLanguages()) {
    final PsiElement psiRoot = getPsi(language);
    final PsiReference reference = SharedPsiElementImplUtil.findReferenceAt(psiRoot, offset, language);
    if (reference == null) continue;
    final TextRange textRange = reference.getRangeInElement().shiftRight(reference.getElement().getTextRange().getStartOffset());
    if (minRange.contains(textRange) && !textRange.contains(minRange)) {
      minRange = textRange;
      ret = reference;
    }
  }
  return ret;
}
项目:tools-idea    文件:MultiplePsiFilesPerDocumentFileViewProvider.java   
@Override
@Nullable
public PsiReference findReferenceAt(int offset) {
  TextRange minRange = new TextRange(0, getContents().length());
  PsiReference ret = null;
  for (final Language language : getLanguages()) {
    final PsiElement psiRoot = getPsi(language);
    final PsiReference reference = SharedPsiElementImplUtil.findReferenceAt(psiRoot, offset, language);
    if (reference == null) continue;
    final TextRange textRange = reference.getRangeInElement().shiftRight(reference.getElement().getTextRange().getStartOffset());
    if (minRange.contains(textRange) && !textRange.contains(minRange)) {
      minRange = textRange;
      ret = reference;
    }
  }
  return ret;
}
项目:consulo    文件:MultiplePsiFilesPerDocumentFileViewProvider.java   
@Override
@Nullable
public PsiReference findReferenceAt(int offset) {
  TextRange minRange = new TextRange(0, getContents().length());
  PsiReference ret = null;
  for (final Language language : getLanguages()) {
    final PsiElement psiRoot = getPsi(language);
    final PsiReference reference = SharedPsiElementImplUtil.findReferenceAt(psiRoot, offset, language);
    if (reference == null) continue;
    final TextRange textRange = reference.getRangeInElement().shiftRight(reference.getElement().getTextRange().getStartOffset());
    if (minRange.contains(textRange) && !textRange.contains(minRange)) {
      minRange = textRange;
      ret = reference;
    }
  }
  return ret;
}
项目:intellij-ce-playground    文件:DummyHolderViewProvider.java   
@Override
public PsiReference findReferenceAt(final int offset) {
  return SharedPsiElementImplUtil.findReferenceAt(getPsi(getBaseLanguage()), offset);
}
项目:intellij-ce-playground    文件:OwnBufferLeafPsiElement.java   
@Override
public PsiReference findReferenceAt(int offset) {
  return SharedPsiElementImplUtil.findReferenceAt(this, offset);
}
项目:intellij-ce-playground    文件:OwnBufferLeafPsiElement.java   
@Override
@NotNull
public PsiReference[] getReferences() {
  return SharedPsiElementImplUtil.getReferences(this);
}
项目:intellij-ce-playground    文件:LazyParseablePsiElement.java   
@Override
public PsiReference findReferenceAt(int offset) {
  return SharedPsiElementImplUtil.findReferenceAt(this, offset);
}
项目:intellij-ce-playground    文件:LazyParseablePsiElement.java   
@Override
@NotNull
public PsiReference[] getReferences() {
  return SharedPsiElementImplUtil.getReferences(this);
}
项目:intellij-ce-playground    文件:CompositePsiElement.java   
@Override
public PsiReference findReferenceAt(int offset) {
  return SharedPsiElementImplUtil.findReferenceAt(this, offset);
}
项目:intellij-ce-playground    文件:CompositePsiElement.java   
@Override
@NotNull
public PsiReference[] getReferences() {
  return SharedPsiElementImplUtil.getReferences(this);
}
项目:intellij-ce-playground    文件:LeafPsiElement.java   
@Override
public PsiReference findReferenceAt(int offset) {
  return SharedPsiElementImplUtil.findReferenceAt(this, offset);
}
项目:intellij-ce-playground    文件:LeafPsiElement.java   
@Override
@NotNull
public PsiReference[] getReferences() {
  return SharedPsiElementImplUtil.getReferences(this);
}
项目:intellij-ce-playground    文件:PsiElementBase.java   
@Override
public PsiReference findReferenceAt(int offset) {
  return SharedPsiElementImplUtil.findReferenceAt(this, offset);
}
项目:intellij-ce-playground    文件:PsiElementBase.java   
@Override
@NotNull
public PsiReference[] getReferences() {
  return SharedPsiElementImplUtil.getReferences(this);
}
项目:intellij    文件:ProjectViewPsiSectionItem.java   
@Override
public PsiReference[] getReferences() {
  return SharedPsiElementImplUtil.getReferences(this);
}
项目:js-graphql-intellij-plugin    文件:JSGraphQLTemplateFragmentPsiElement.java   
@NotNull
@Override
public PsiReference[] getReferences() {
    return SharedPsiElementImplUtil.getReferences(this);
}
项目:tools-idea    文件:DummyHolderViewProvider.java   
@Override
public PsiReference findReferenceAt(final int offset) {
  return SharedPsiElementImplUtil.findReferenceAt(getPsi(getBaseLanguage()), offset);
}
项目:tools-idea    文件:LazyParseablePsiElement.java   
@Override
public PsiReference findReferenceAt(int offset) {
  return SharedPsiElementImplUtil.findReferenceAt(this, offset);
}
项目:tools-idea    文件:LazyParseablePsiElement.java   
@Override
@NotNull
public PsiReference[] getReferences() {
  return SharedPsiElementImplUtil.getReferences(this);
}
项目:tools-idea    文件:CompositePsiElement.java   
@Override
public PsiReference findReferenceAt(int offset) {
  return SharedPsiElementImplUtil.findReferenceAt(this, offset);
}
项目:tools-idea    文件:CompositePsiElement.java   
@Override
@NotNull
public PsiReference[] getReferences() {
  return SharedPsiElementImplUtil.getReferences(this);
}
项目:tools-idea    文件:LeafPsiElement.java   
@Override
public PsiReference findReferenceAt(int offset) {
  return SharedPsiElementImplUtil.findReferenceAt(this, offset);
}
项目:tools-idea    文件:LeafPsiElement.java   
@Override
@NotNull
public PsiReference[] getReferences() {
  return SharedPsiElementImplUtil.getReferences(this);
}
项目:tools-idea    文件:PsiElementBase.java   
@Override
public PsiReference findReferenceAt(int offset) {
  return SharedPsiElementImplUtil.findReferenceAt(this, offset);
}
项目:tools-idea    文件:PsiElementBase.java   
@Override
@NotNull
public PsiReference[] getReferences() {
  return SharedPsiElementImplUtil.getReferences(this);
}
项目:tools-idea    文件:OwnBufferLeafPsiElement.java   
@Override
public PsiReference findReferenceAt(int offset) {
  return SharedPsiElementImplUtil.findReferenceAt(this, offset);
}
项目:tools-idea    文件:OwnBufferLeafPsiElement.java   
@Override
@NotNull
public PsiReference[] getReferences() {
  return SharedPsiElementImplUtil.getReferences(this);
}
项目:consulo    文件:DummyHolderViewProvider.java   
@Override
public PsiReference findReferenceAt(final int offset) {
  return SharedPsiElementImplUtil.findReferenceAt(getPsi(getBaseLanguage()), offset);
}
项目:consulo    文件:LazyParseablePsiElement.java   
@Override
public PsiReference findReferenceAt(int offset) {
  return SharedPsiElementImplUtil.findReferenceAt(this, offset);
}
项目:consulo    文件:LazyParseablePsiElement.java   
@Override
@Nonnull
public PsiReference[] getReferences() {
  return SharedPsiElementImplUtil.getReferences(this);
}
项目:consulo    文件:CompositePsiElement.java   
@Override
public PsiReference findReferenceAt(int offset) {
  return SharedPsiElementImplUtil.findReferenceAt(this, offset);
}
项目:consulo    文件:CompositePsiElement.java   
@Override
@Nonnull
public PsiReference[] getReferences() {
  return SharedPsiElementImplUtil.getReferences(this);
}
项目:consulo    文件:LeafPsiElement.java   
@Override
public PsiReference findReferenceAt(int offset) {
  return SharedPsiElementImplUtil.findReferenceAt(this, offset);
}
项目:consulo    文件:LeafPsiElement.java   
@Override
@Nonnull
public PsiReference[] getReferences() {
  return SharedPsiElementImplUtil.getReferences(this);
}
项目:consulo    文件:PsiElementBase.java   
@Override
public PsiReference findReferenceAt(int offset) {
  return SharedPsiElementImplUtil.findReferenceAt(this, offset);
}
项目:consulo    文件:PsiElementBase.java   
@Override
@Nonnull
public PsiReference[] getReferences() {
  return SharedPsiElementImplUtil.getReferences(this);
}
项目:consulo    文件:OwnBufferLeafPsiElement.java   
@Override
public PsiReference findReferenceAt(int offset) {
  return SharedPsiElementImplUtil.findReferenceAt(this, offset);
}
项目:consulo    文件:OwnBufferLeafPsiElement.java   
@Override
@Nonnull
public PsiReference[] getReferences() {
  return SharedPsiElementImplUtil.getReferences(this);
}