Unnamed: 0
int64
0
305k
body
stringlengths
7
52.9k
name
stringlengths
1
185
34,700
PsiTypeParameterList () { return myMethod.getTypeParameterList(); }
getTypeParameterList
34,701
boolean (Object o) { if (this == o) return true; if (!(o instanceof GrGdkMethodImpl that)) return false; if (myMethod != null ? !myMethod.equals(that.myMethod) : that.myMethod != null) return false; if (hasModifierProperty(PsiModifier.STATIC) != that.hasModifierProperty(PsiModifier.STATIC)) return false; return true; }
equals
34,702
int () { return myMethod.hashCode(); }
hashCode
34,703
GrGdkMethod (@NotNull final PsiMethod original, final boolean isStatic, @Nullable final String originInfo) { final Key<CachedValue<GrGdkMethodImpl>> cachedValueKey = isStatic ? CACHED_STATIC : CACHED_NON_STATIC; CachedValue<GrGdkMethodImpl> cachedValue = original.getUserData(cachedValueKey); if (cachedValue == null) { cachedValue = CachedValuesManager.getManager(original.getProject()).createCachedValue( () -> CachedValueProvider.Result.create(new GrGdkMethodImpl(original, isStatic, originInfo), PsiModificationTracker.MODIFICATION_COUNT), false); original.putUserData(cachedValueKey, cachedValue); } return cachedValue.getValue(); }
createGdkMethod
34,704
boolean () { return myMethod.isValid(); }
isValid
34,705
PsiElement () { PsiElement navigationElement = myMethod.getNavigationElement(); return navigationElement == null ? myMethod : navigationElement; }
getNavigationElement
34,706
void (@NotNull PsiElement navigationElement) { throw new UnsupportedOperationException(); }
setNavigationElement
34,707
PsiElement () { return getStaticMethod(); }
getPrototype
34,708
PsiElement () { return myClosure.getElement(); }
getParent
34,709
PsiType () { assert isValid(); return TypeInferenceHelper.getCurrentContext().getExpressionType(this, TYPES_CALCULATOR); }
getTypeGroovy
34,710
PsiType () { return null; }
getDeclaredType
34,711
boolean () { return true; }
isWritable
34,712
SearchScope () { GrClosableBlock closure = myClosure.getElement(); if (closure == null) { throw new IncorrectOperationException("Pointer is invalidated"); } return new LocalSearchScope(closure); }
getUseScope
34,713
boolean () { return myClosure.getElement() != null; }
isStillValid
34,714
GrClosableBlock () { GrClosableBlock closure = myClosure.getElement(); if (closure == null) { throw new IncorrectOperationException("Pointer is invalidated"); } return closure; }
getClosure
34,715
PsiElement () { GrClosableBlock smartClosure = myClosure.getElement(); return smartClosure != null ? smartClosure : super.getDeclarationScope(); }
getDeclarationScope
34,716
boolean (Object o) { if (this == o) return true; if (!(o instanceof ClosureSyntheticParameter parameter)) return false; // Closure parameter is uniquely identified by the closure itself return Objects.equals(myClosure, parameter.myClosure); }
equals
34,717
int () { return Objects.hash(super.hashCode(), myClosure); }
hashCode
34,718
void (@NotNull String newName) { }
onRename
34,719
boolean () { return true; }
isWritable
34,720
GrLightMethodBuilder () { GrLightMethodBuilder copy = new GrRenamableLightMethodBuilder(myManager, myName); copyData(copy); return copy; }
copy
34,721
PsiType () { return myElement.getType(); }
getType
34,722
PsiJavaCodeReferenceElement () { return null; }
getInnermostComponentReferenceElement
34,723
PsiAnnotation (@NotNull @NonNls String qualifiedName) { return null; }
findAnnotation
34,724
PsiAnnotation (@NotNull @NonNls String qualifiedName) { throw new UnsupportedOperationException(); }
addAnnotation
34,725
String () { return "Synthetic PsiTypeElement"; }
toString
34,726
TextRange () { return myElement.getTextRange(); }
getTextRange
34,727
int () { return myElement.getTextOffset(); }
getTextOffset
34,728
String () { return myElement.getText(); }
getText
34,729
boolean () { return myElement.isValid(); }
isValid
34,730
void (@NotNull PsiElementVisitor visitor) { if (visitor instanceof JavaElementVisitor) { ((JavaElementVisitor)visitor).visitTypeElement(this); } else { visitor.visitElement(this); } }
accept
34,731
void (@NotNull PsiElementVisitor visitor) { final PsiElement[] children = myElement.getChildren(); for (PsiElement child : children) { if (child instanceof GrTypeElement) { PsiImplUtil.getOrCreateTypeElement((GrTypeElement)child).accept(visitor); } } }
acceptChildren
34,732
boolean () { return false; }
acceptsAnnotations
34,733
GrDocComment () { return null; }
getDocComment
34,734
boolean () { return false; }
isDeprecated
34,735
SearchScope () { return ResolveScopeManager.getElementUseScope(this); }
getUseScope
34,736
PsiClass () { return myContainingClass; }
getContainingClass
34,737
GrLightField (@NotNull PsiClass containingClass) { myContainingClass = containingClass; return this; }
setContainingClass
34,738
boolean () { return PsiUtil.isProperty(this); }
isProperty
34,739
GrAccessorMethod () { return GrClassImplUtil.findSetter(this); }
getSetter
34,740
void (GrExpression initializer) { throw new IncorrectOperationException("cannot set initializer to light field!"); }
setInitializerGroovy
34,741
Object () { PsiElement navigationElement = getNavigationElement(); if (navigationElement instanceof Property) { return ((Property)navigationElement).getKey(); } return super.computeConstantValue(); }
computeConstantValue
34,742
GrExpression () { return null; }
getInitializerGroovy
34,743
GrTypeElement () { return null; }
getTypeElementGroovy
34,744
PsiType () { return getType(); }
getTypeGroovy
34,745
PsiType () { return getType(); }
getDeclaredType
34,746
PsiElement () { return myNameIdentifier; }
getNameIdentifierGroovy
34,747
void (@NotNull GroovyElementVisitor visitor) { visitor.visitField(this); }
accept
34,748
void (@NotNull GroovyElementVisitor visitor) { }
acceptChildren
34,749
boolean (PsiElement another) { if (super.isEquivalentTo(another)) return true; if (another instanceof GrLightField otherField) { return otherField.myContainingClass == myContainingClass && getName().equals(otherField.getName()); } return false; }
isEquivalentTo
34,750
PsiElement () { assert getNavigationElement() != this; GrLightField copy = new GrLightField(myContainingClass, getName(), getType(), getNavigationElement()); copy.setCreatorKey(getCreatorKey()); return copy; }
copy
34,751
void (@NotNull Icon icon) { myIcon = icon; }
setIcon
34,752
Icon (int flags) { Icon actualIcon = myIcon == null ? super.getElementIcon(flags) : myIcon; RowIcon baseIcon = IconManager.getInstance().createLayeredIcon(this, actualIcon, ElementPresentationUtil.getFlags(this, false)); return ElementPresentationUtil.addVisibilityIcon(this, flags, baseIcon); }
getElementIcon
34,753
PsiElement () { return myContext; }
getContext
34,754
PsiFile () { return myContext.getContainingFile(); }
getContainingFile
34,755
GrCodeReferenceElement () { return myRef; }
getClassReference
34,756
String () { return StringUtil.getShortName(myQualifiedName); }
getShortName
34,757
GrAnnotationArgumentList () { return myAnnotationArgList; }
getParameterList
34,758
void (@NotNull GroovyElementVisitor visitor) { visitor.visitAnnotation(this); }
accept
34,759
void (@NotNull GroovyElementVisitor visitor) { //todo }
acceptChildren
34,760
String () { return "light groovy annotation"; }
toString
34,761
String () { return "@" + myQualifiedName + myAnnotationArgList.getText(); }
getText
34,762
String () { return myQualifiedName; }
getQualifiedName
34,763
PsiJavaCodeReferenceElement () { final GroovyResolveResult resolveResult = myRef.advancedResolve(); final PsiElement resolved = resolveResult.getElement(); if (resolved instanceof PsiClass) { return new LightClassReference(getManager(), getClassReference().getText(), (PsiClass)resolved, resolveResult.getSubstitutor()); } else { return null; } }
getNameReferenceElement
34,764
PsiAnnotationMemberValue (@NonNls String attributeName) { return PsiImplUtil.findAttributeValue(this, attributeName); }
findAttributeValue
34,765
PsiAnnotationMemberValue (@NonNls String attributeName) { return PsiImplUtil.findDeclaredAttributeValue(this, attributeName); }
findDeclaredAttributeValue
34,766
PsiAnnotationOwner () { return myOwner; }
getOwner
34,767
void (PsiNameValuePair pair) { if (pair instanceof GrAnnotationNameValuePair) { myAnnotationArgList.addAttribute((GrAnnotationNameValuePair)pair); } else { GrAnnotationMemberValue newValue = new AnnotationArgConverter().convert(pair.getValue()); if (newValue == null) return; String name = pair.getName(); addAttribute(name, newValue.getText()); } }
addAttribute
34,768
void (@NlsSafe @Nullable String name, @NlsSafe @NotNull String value) { GroovyPsiElementFactory factory = GroovyPsiElementFactory.getInstance(getProject()); String text = name != null ? name + "=" + value : value; myAnnotationArgList.addAttribute(factory.createAnnotationAttribute(text, this)); }
addAttribute
34,769
PsiElement () { return GrLightAnnotation.this; }
getContext
34,770
void (@NotNull GrAnnotationNameValuePair attribute) { if (myAttributes == null) myAttributes = new ArrayList<>(); myAttributes.add(attribute); myCachedAttributes = null; }
addAttribute
34,771
void (@NotNull GroovyElementVisitor visitor) { visitor.visitAnnotationArgumentList(this); }
accept
34,772
void (@NotNull GroovyElementVisitor visitor) { if (myAttributes != null) { for (GrAnnotationNameValuePair attribute : myAttributes) { attribute.accept(visitor); } } }
acceptChildren
34,773
String () { return "light annotation argument list"; }
toString
34,774
String () { if (myAttributes == null || myAttributes.isEmpty()) return ""; StringBuilder buffer = new StringBuilder(); buffer.append('('); for (GrAnnotationNameValuePair attribute : myAttributes) { buffer.append(attribute.getText()); buffer.append(','); } buffer.deleteCharAt(buffer.length() - 1); buffer.append(')'); return buffer.toString(); }
getText
34,775
GrLightMethodBuilder (@NotNull Map<String, NamedArgumentDescriptor> namedParameters) { myNamedParameters = namedParameters; return this; }
setNamedParameters
34,776
ItemPresentation () { return JavaPresentationUtil.getMethodPresentation(this); }
getPresentation
34,777
boolean () { return getTypeParameters().length != 0; }
hasTypeParameters
34,778
LightTypeParameterListBuilder () { return myTypeParameterList; }
getTypeParameterList
34,779
GrDocComment () { return null; }
getDocComment
34,780
boolean () { return false; }
isDeprecated
34,781
HierarchicalMethodSignature () { return PsiSuperMethodImplUtil.getHierarchicalMethodSignature(this); }
getHierarchicalMethodSignature
34,782
boolean (@GrModifierConstant @NotNull String name) { return getModifierList().hasModifierProperty(name); }
hasModifierProperty
34,783
GrMember[] () { return GrMember.EMPTY_ARRAY; }
getMembers
34,784
GrLightModifierList () { return myModifierList; }
getModifierList
34,785
GrLightMethodBuilder (@GrModifierConstant String modifier) { getModifierList().addModifier(modifier); return this; }
addModifier
34,786
GrLightMethodBuilder (int modifier) { getModifierList().addModifier(modifier); return this; }
addModifier
34,787
GrLightMethodBuilder (@GrModifierConstant String[] modifiers) { getModifierList().setModifiers(modifiers); return this; }
setModifiers
34,788
GrLightMethodBuilder (int modifiers) { getModifierList().setModifiers(modifiers); return this; }
setModifiers
34,789
GrOpenBlock () { return null; }
getBlock
34,790
void (GrCodeBlock newBlock) { throw new IncorrectOperationException(); }
setBlock
34,791
GrTypeElement () { PsiType returnType = getReturnType(); if (returnType == null) { return null; } return new GrLightTypeElement(returnType, getManager()); }
getReturnTypeElementGroovy
34,792
PsiType () { return getReturnType(); }
getInferredReturnType
34,793
PsiType () { return myReturnType; }
getReturnType
34,794
GrTypeElement (@NlsSafe String returnType, GlobalSearchScope scope) { setReturnType(JavaPsiFacade.getInstance(myManager.getProject()).getElementFactory().createTypeByFQClassName(returnType, scope)); return null; }
setReturnType
34,795
GrTypeElement (@Nullable PsiType returnType) { myReturnType = returnType; return null; }
setReturnType
34,796
PsiTypeElement () { return null; }
getReturnTypeElement
34,797
GrLightParameterListBuilder () { return myParameterList; }
getParameterList
34,798
GrLightMethodBuilder (@NotNull GrParameter parameter) { getParameterList().addParameter(parameter); return this; }
addParameter
34,799
GrLightMethodBuilder (@NlsSafe @NotNull String name, @NlsSafe @NotNull String type) { return addParameter(name, type, false); }
addParameter