Unnamed: 0
int64
0
305k
body
stringlengths
7
52.9k
name
stringlengths
1
185
32,900
IntentionAction (GrReferenceExpression expression, PsiType[] types) { return QuickFixes.EMPTY_ACTION; }
createDynamicMethodFix
32,901
IntentionAction (GrReferenceExpression expression) { return QuickFixes.EMPTY_ACTION; }
createDynamicPropertyFix
32,902
IntentionAction (GrReferenceElement element) { return QuickFixes.EMPTY_ACTION; }
createGroovyAddImportAction
32,903
IntentionAction (GrNewExpression parent) { return QuickFixes.EMPTY_ACTION; }
createClassFromNewAction
32,904
IntentionAction (GrReferenceElement element, GrCreateClassKind anInterface) { return QuickFixes.EMPTY_ACTION; }
createClassFixAction
32,905
IntentionAction (GrReferenceExpression expr) { return QuickFixes.EMPTY_ACTION; }
createCreateFieldFromUsageFix
32,906
IntentionAction (GrReferenceExpression expr, PsiClass aClass) { return QuickFixes.EMPTY_ACTION; }
createCreateGetterFromUsageFix
32,907
IntentionAction (GrReferenceExpression expr) { return QuickFixes.EMPTY_ACTION; }
createCreateSetterFromUsageFix
32,908
IntentionAction (GrReferenceExpression expr) { return QuickFixes.EMPTY_ACTION; }
createCreateMethodFromUsageFix
32,909
IntentionAction (GrReferenceExpression expr, GrVariableDeclarationOwner owner) { return QuickFixes.EMPTY_ACTION; }
createCreateLocalVariableFromUsageFix
32,910
IntentionAction (GrReferenceExpression expr) { return QuickFixes.EMPTY_ACTION; }
createCreateParameterFromUsageFix
32,911
IntentionAction (GrMethodCall parent) { return QuickFixes.EMPTY_ACTION; }
createGroovyStaticImportMethodFix
32,912
GroovyFix () { return GroovyFix.EMPTY_FIX; }
createRenameFix
32,913
LocalQuickFix () { return GroovyFix.EMPTY_FIX; }
createReplaceWithImportFix
32,914
LocalQuickFix (String actual) { return QuickFixes.EMPTY_ACTION; }
createGrMoveToDirFix
32,915
LocalQuickFix (GrTypeDefinition element, GrNamedArgument argument) { return QuickFixes.EMPTY_ACTION; }
createCreateFieldFromConstructorLabelFix
32,916
LocalQuickFix (GrArgumentLabel label, PsiClass element) { return QuickFixes.EMPTY_ACTION; }
createDynamicPropertyFix
32,917
GroovyFix (String methodName, GrTypeDefinition aClass) { return GroovyFix.EMPTY_FIX; }
createAddMethodFix
32,918
GroovyFix (GrTypeDefinition aClass, String comparable) { return GroovyFix.EMPTY_FIX; }
createAddClassToExtendsFix
32,919
IntentionAction (boolean onTheFly) { return QuickFixes.EMPTY_ACTION; }
createOptimizeImportsFix
32,920
IntentionAction (GrParameter parameter) { return QuickFixes.EMPTY_ACTION; }
createRemoveUnusedGrParameterFix
32,921
IntentionAction (String reason) { return QuickFixes.EMPTY_ACTION; }
createInvestigateFix
32,922
LocalQuickFix (int size) { return GroovyFix.EMPTY_FIX; }
createMultipleAssignmentFix
32,923
LocalQuickFix (int size) { return GroovyFix.EMPTY_FIX; }
createSpreadArgumentFix
32,924
LocalQuickFix () { return GroovyFix.EMPTY_FIX; }
createMapConstructorFix
32,925
LocalQuickFix () { return GroovyFix.EMPTY_FIX; }
createQualifyExpressionFix
32,926
LocalQuickFix (List<? extends PsiElement> expressions, GrSwitchElement switchElement) { return null; }
createAddMissingCasesFix
32,927
void (@NotNull GrCall call, @NotNull GroovyResolveResult resolveResult, @Nullable String argumentName, boolean forCompletion, @NotNull Map<String, NamedArgumentDescriptor> result) { PsiElement resolve = resolveResult.getElement(); if (!forCompletion || !(resolve instanceof PsiMethod)) return; PsiType returnType = ((Psi...
getNamedArguments
32,928
boolean () { return false; }
useFqClassNames
32,929
boolean () { return false; }
useFqClassNamesInJavadoc
32,930
int () { return 0; }
staticFieldsOrderWeight
32,931
int () { return 0; }
fieldsOrderWeight
32,932
int () { return 0; }
staticMethodsOrderWeight
32,933
int () { return 0; }
methodsOrderWeight
32,934
int () { return 0; }
staticInnerClassesOrderWeight
32,935
int () { return 0; }
innerClassesOrderWeight
32,936
int () { return 0; }
constructorsOrderWeight
32,937
boolean () { return false; }
insertInnerClassImports
32,938
void (@NotNull GrCall call, @NotNull GroovyResolveResult resolveResult, @Nullable String argumentName, boolean forCompletion, @NotNull Map<String, NamedArgumentDescriptor> result) { PsiElement resolve = resolveResult.getElement(); if (resolve instanceof GrMethod) { ((GrMethod)resolve).getNamedParameters().forEach((key,...
getNamedArguments
32,939
TreeElement (TreeElement element, final Map<Object, Object> decodingState) { if (element instanceof CompositeElement) { if (element.getElementType() == GroovyElementTypes.REFERENCE_ELEMENT || element.getElementType() == GroovyElementTypes.REFERENCE_EXPRESSION) { GrReferenceElement ref = (GrReferenceElement)SourceTreeTo...
decodeInformation
32,940
void (final TreeElement element, final ASTNode original, final Map<Object, Object> encodingState) { if (original instanceof CompositeElement && !isInsideImport(original)) { IElementType elementType = original.getElementType(); if (elementType == GroovyElementTypes.REFERENCE_ELEMENT || elementType == GroovyElementTypes....
encodeInformation
32,941
boolean (ASTNode node) { while (node != null && node.getElementType() == GroovyElementTypes.REFERENCE_ELEMENT) { node = node.getTreeParent(); } return node != null && node.getElementType() == GroovyStubElementTypes.IMPORT; }
isInsideImport
32,942
String () { return myDescription.get(); }
getDescription
32,943
Language () { return GroovyLanguage.INSTANCE; }
getLanguage
32,944
PsiMethod () { return myOriginalAccessor; }
getOriginalAccessor
32,945
int () { final int isStatic = hasModifierProperty(PsiModifier.STATIC) ? 1 : 0; final int visibilityModifier; visibilityModifier = getVisibilityCode(); return getName().hashCode() << 3 + isStatic << 2 + visibilityModifier; }
hashCode
32,946
int () { int visibilityModifier; if (hasModifierProperty(PsiModifier.PUBLIC)) { visibilityModifier = 3; } else if (hasModifierProperty(PsiModifier.PROTECTED)) { visibilityModifier = 2; } else if (hasModifierProperty(PsiModifier.PRIVATE)) { visibilityModifier = 1; } else { visibilityModifier = 0; } return visibilityModi...
getVisibilityCode
32,947
String () { return getName(); }
toString
32,948
boolean (PsiElement another) { if (!(another instanceof GrPropertyForCompletion)) return false; if (!((GrPropertyForCompletion)another).getName().equals(getName())) return false; if (hasModifierProperty(PsiModifier.STATIC) != ((GrPropertyForCompletion)another).hasModifierProperty(PsiModifier.STATIC)) return false; if (...
isEquivalentTo
32,949
PsiElement (ASTNode node) { IElementType elem = node.getElementType(); if (elem instanceof GroovyElementType.PsiCreator) { return ((GroovyElementType.PsiCreator)elem).createPsi(node); } if (elem instanceof IGroovyDocElementType) { return GroovyDocPsiCreator.createElement(node); } if (elem == MODIFIER_LIST) return new G...
createElement
32,950
GrBlockImpl (CharSequence text) { return new GrClosableBlockImpl(this, text); }
createNode
32,951
GrBlockImpl (CharSequence text) { return new GrOpenBlockImpl(this, text); }
createNode
32,952
boolean () { return false; }
parseDeep
32,953
boolean (@Nullable final IElementType tokenType) { return false; }
isExtendedSeparator
32,954
boolean (PsiBuilder builder) { return false; }
parseExtendedStatement
32,955
void (PsiBuilder b) { b = adapt_builder_(CODE_REFERENCE, b, this, EXTENDS_SETS_); doc_reference(b, 0); }
parseDocReference
32,956
GrBlockImpl (CharSequence text) { return new GrBlockLambdaBodyImpl(this, text); }
createNode
32,957
ASTNode () { return createNode(null); }
createCompositeNode
32,958
boolean (@NotNull CharSequence buffer, @NotNull Language fileLanguage, @NotNull Project project) { return GroovyParserUtils.isBlockParseable(buffer); }
isParsable
32,959
boolean () { return isInsideSwitch; }
isInsideSwitch
32,960
GrEnumDefinitionBody (@NotNull EmptyStub stub) { return new GrTypeDefinitionBodyBase.GrEnumBody(stub); }
createPsi
32,961
Lexer (Project project) { return new GroovyLexer(); }
createLexer
32,962
PsiParser (Project project) { return new GroovyParser(); }
createParser
32,963
IFileElementType () { return GROOVY_FILE; }
getFileNodeType
32,964
TokenSet () { return TokenSets.COMMENTS_TOKEN_SET; }
getCommentTokens
32,965
TokenSet () { return TokenSets.STRING_LITERALS; }
getStringLiteralElements
32,966
PsiElement (ASTNode node) { return GroovyPsiCreator.createElement(node); }
createElement
32,967
PsiFile (@NotNull FileViewProvider viewProvider) { return new GroovyFileImpl(viewProvider); }
createFile
32,968
SpaceRequirements (ASTNode left, ASTNode right) { final IElementType lType = left.getElementType(); final IElementType rType = right.getElementType(); if (rType == GroovyTokenTypes.kIMPORT && lType != TokenType.WHITE_SPACE) { return SpaceRequirements.MUST_LINE_BREAK; } else if (lType == MODIFIER_LIST && rType == MODIFI...
spaceExistenceTypeBetweenTokens
32,969
GrBlockImpl (CharSequence text) { return new GrOpenBlockImpl(this, text); }
createNode
32,970
void (PsiBuilder builder, IElementType elem, @ParsingError String errorMsg) { if (elem.equals(builder.getTokenType())) { builder.advanceLexer(); } else if (errorMsg != null) { builder.error(errorMsg); } }
getToken
32,971
boolean (PsiBuilder builder, IElementType elem) { if (elem.equals(builder.getTokenType())) { builder.advanceLexer(); return true; } return false; }
getToken
32,972
boolean (PsiBuilder builder, IElementType element1, IElementType element2) { if (element1 != builder.getTokenType()) return false; Marker rb = builder.mark(); builder.advanceLexer(); boolean res = (!builder.eof() && element2 == builder.getTokenType()); rb.rollbackTo(); return res; }
lookAhead
32,973
GrBlockElementType (String debugName) { return new GrBlockElementType(debugName, true); }
getSwitchAwareBlockElementType
32,974
GrBlockLambdaBodyElementType (String debugName) { return new GrBlockLambdaBodyElementType(debugName, true); }
getSwitchAwareLambdaBlockElementType
32,975
GrClosureElementType (String debugName) { return new GrClosureElementType(debugName, true); }
getSwitchAwareClosureBlockElementType
32,976
boolean (GrClosableBlock closure, PsiScopeProcessor processor, GrReferenceExpression refExpr, ResolveState state) { PsiElement parent = closure.getParent(); if (parent instanceof GrArgumentList) parent = parent.getParent(); if (!(parent instanceof GrMethodCall)) return true; PsiMethod psiMethod = ((GrMethodCall)parent)...
processMembers
32,977
Boolean (@NotNull GroovyMethodResult result1, @NotNull GroovyMethodResult result2, @NotNull Context context) { for (GrMethodComparator comparator : EP_NAME.getExtensions()) { Boolean result = comparator.dominated(result1, result2, context); if (result != null) { return result; } } return true; }
checkDominated
32,978
int (@NotNull GroovyMethodResult result1, @NotNull GroovyMethodResult result2, @NotNull Context context) { final PsiMethod method1 = result1.getElement(); final PsiMethod method2 = result2.getElement(); if (!method1.getName().equals(method2.getName())) return 0; boolean firstIsPreferable = checkDominated(result2, resul...
compareMethods
32,979
GlobalSearchScope (@NotNull VirtualFile file, @NotNull Project project) { FileType fileType = file.getFileType(); if (!(fileType instanceof LanguageFileType) || ((LanguageFileType)fileType).getLanguage() != GroovyLanguage.INSTANCE) { return null; } ProjectFileIndex projectFileIndex = ProjectRootManager.getInstance(proj...
getResolveScope
32,980
boolean (GrReferenceExpression ref, PsiScopeProcessor processor) { if (!ResolveUtilKt.shouldProcessMethods(processor)) return true; for (PsiElement e = ref.getContext(); e != null; e = e.getContext()) { if (e instanceof GrClosableBlock) { ResolveState state = ResolveState.initial().put(ClassHint.RESOLVE_CONTEXT, e); fo...
processMethodsFromClosures
32,981
Boolean (@NotNull GroovyMethodResult result1, @NotNull GroovyMethodResult result2, @NotNull Context context) { final PsiMethod method1 = result1.getElement(); final PsiSubstitutor substitutor1 = result1.getContextSubstitutor(); final PsiElement resolveContext1 = result1.getCurrentFileResolveContext(); final PsiMethod m...
dominated
32,982
boolean (@NotNull PsiType type1, @NotNull PsiType type2, @NotNull Context context) { final boolean hasArguments = context.getArguments() != null; return hasArguments ? //resolve, otherwise same_name_variants TypesUtil.isAssignableWithoutConversions(type1, type2) : type1.equals(type2); }
typesAgree
32,983
ClassMembers (@NotNull PsiClass aClass, boolean includeSynthetic) { CachedValue<ClassMembers> cached = aClass.getUserData(getMemberCacheKey(includeSynthetic)); if (cached != null && cached.hasUpToDateValue()) { return cached.getValue(); } return buildCache(aClass, includeSynthetic && checkClass(aClass)); }
getCachedMembers
32,984
boolean (@NotNull PsiClass aClass) { Set<PsiClass> visited = new HashSet<>(); Queue<PsiClass> queue = ContainerUtil.newLinkedList(aClass); while (!queue.isEmpty()) { PsiClass current = queue.remove(); if (current instanceof ClsClassImpl) continue; if (visited.add(current)) { for (PsiClass superClass : getSupers(current...
checkClass
32,985
ClassMembers (@NotNull final PsiClass aClass, final boolean includeSynthetic) { return CachedValuesManager.getCachedValue(aClass, getMemberCacheKey(includeSynthetic), () -> { ClassMembers result = new ClassMembers(); processClass(aClass, result.fields, result.methods, result.innerClasses, new HashSet<>(), PsiSubstituto...
buildCache
32,986
Key<CachedValue<ClassMembers>> (boolean includeSynthetic) { return includeSynthetic ? CACHED_MEMBERS_INCLUDING_SYNTHETIC : CACHED_MEMBERS; }
getMemberCacheKey
32,987
void (@NotNull PsiClass aClass, @NotNull Map<String, CandidateInfo> allFields, @NotNull Map<String, List<CandidateInfo>> allMethods, @NotNull Map<String, CandidateInfo> allInnerClasses, @NotNull Set<? super PsiClass> visitedClasses, @NotNull PsiSubstitutor substitutor, boolean includeSynthetic) { PsiUtilCore.ensureVali...
processClass
32,988
boolean (@NotNull PsiField field) { if (field instanceof GrField) { final GrModifierList list = (GrModifierList)field.getModifierList(); return list == null || list.hasExplicitVisibilityModifiers(); } else { return true; } }
hasExplicitVisibilityModifiers
32,989
void (@NotNull Map<String, List<CandidateInfo>> allMethods, @NotNull PsiMethod method, @NotNull PsiSubstitutor substitutor) { String name = method.getName(); List<CandidateInfo> methods = allMethods.get(name); if (methods == null) { methods = new ArrayList<>(); allMethods.put(name, methods); } methods.add(new Candidate...
addMethod
32,990
void (String className, GdslMembersHolderConsumer consumer) { processCategoryMethods(className, consumer, false); }
category
32,991
void (String className, final boolean isStatic, GdslMembersHolderConsumer consumer) { processCategoryMethods(className, consumer, isStatic); }
category
32,992
void (final String className, final GdslMembersHolderConsumer consumer, final boolean isStatic) { final GlobalSearchScope scope = consumer.getResolveScope(); final PsiClass categoryClass = JavaPsiFacade.getInstance(consumer.getProject()).findClass(className, scope); if (categoryClass == null) { return; } NotNullLazyVal...
processCategoryMethods
32,993
boolean (GroovyClassDescriptor descriptor, PsiScopeProcessor processor, ResolveState state) { return !ResolveUtil.shouldProcessMethods(processor.getHint(ElementClassHint.KEY)) || methodsMap.getValue().processMethods(processor, state, descriptor.getPsiType(), descriptor.getProject()); }
processMembers
32,994
void (GroovyClassDescriptor descriptor, Consumer<? super ClosureDescriptor> consumer) {}
consumeClosureDescriptors
32,995
boolean (@NotNull PsiElement place, @NotNull PsiScopeProcessor processor, boolean processNonCodeMembers) { return ResolveUtilKt.treeWalkUp(place, processor, initialState(processNonCodeMembers)); }
treeWalkUp
32,996
boolean (final @NotNull PsiElement place, final @NotNull PsiElement originalPlace, final @NotNull PsiScopeProcessor processor, final @NotNull ResolveState state) { PsiElement maxScope = null; if (ResolveUtilKt.processNonCodeMembers(state)) { maxScope = PsiTreeUtil.getParentOfType(place, GrFunctionalExpression.class); }...
treeWalkUp
32,997
boolean (@NotNull PsiElement place, @Nullable PsiElement lastParent, @NotNull PsiElement scope, @NotNull PsiScopeProcessor processor, @NotNull ResolveState state) { boolean processNonCodeMembers = ResolveUtilKt.processNonCodeMembers(state); if (scope instanceof GrFunctionalExpression && processNonCodeMembers) { if (!pr...
doProcessDeclarations
32,998
void (PsiScopeProcessor processor, PsiElement run) { processor.handleEvent(JavaScopeProcessorEvent.CHANGE_LEVEL, null); if (run instanceof GrFunctionalExpression && GrClosableBlock.OWNER_NAME.equals(getNameHint(processor)) || run instanceof PsiClass && !(run instanceof PsiAnonymousClass) || run instanceof GrMethod && r...
issueLevelChangeEvents
32,999
PsiScopeProcessor (PsiScopeProcessor processor, PsiElement scope) { //hack for walking up in java code //java's processDeclarations don't check names so we should do it manually if (scope.getLanguage() != GroovyLanguage.INSTANCE && processor.getHint(NameHint.KEY) != null) { return new JavaResolverProcessor(processor); ...
substituteProcessor