Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
34,100 | void (@NotNull S stub, @NotNull IndexSink sink) { } | indexStub |
34,101 | String () { return "gr." + super.toString(); } | getExternalId |
34,102 | GrModifierList (@NotNull GrModifierListStub stub) { return new GrModifierListImpl(stub); } | createPsi |
34,103 | GrModifierListStub (@NotNull GrModifierList psi, StubElement parentStub) { return new GrModifierListStub(parentStub, GroovyStubElementTypes.MODIFIER_LIST, psi.getModifierFlags()); } | createStub |
34,104 | GrExtendsClause (@NotNull GrReferenceListStub stub) { return new GrExtendsClauseImpl(stub); } | createPsi |
34,105 | GrImportStatement (@NotNull GrImportStatementStub stub) { return new GrImportStatementImpl(stub, this); } | createPsi |
34,106 | GrImportStatementStub (@NotNull GrImportStatement psi, StubElement parentStub) { return new GrImportStatementStub( parentStub, this, psi.getImportFqn(), psi.isAliasedImport() ? psi.getImportedName() : null, GrImportStatementStub.buildFlags(psi.isStatic(), psi.isOnDemand()) ); } | createStub |
34,107 | GrImplementsClause (@NotNull GrReferenceListStub stub) { return new GrImplementsClauseImpl(stub); } | createPsi |
34,108 | GrTypeParameterList (@NotNull EmptyStub stub) { return new GrTypeParameterListImpl(stub); } | createPsi |
34,109 | GrInterfaceDefinition (@NotNull GrTypeDefinitionStub stub) { return new GrInterfaceDefinitionImpl(stub); } | createPsi |
34,110 | GrTypeDefinitionStub (@NotNull GrInterfaceDefinition psi, StubElement<?> parentStub) { return doCreateStub(this, psi, parentStub); } | createStub |
34,111 | GrAnnotation (@NotNull GrAnnotationStub stub) { return new GrAnnotationImpl(stub); } | createPsi |
34,112 | GrAnnotationStub (@NotNull GrAnnotation psi, StubElement parentStub) { return new GrAnnotationStub(parentStub, psi); } | createStub |
34,113 | GrMethod (@NotNull GrMethodStub stub) { return new GrAnnotationMethodImpl(stub); } | createPsi |
34,114 | void (@NotNull GrMethodStub stub, @NotNull IndexSink sink) { super.indexStub(stub, sink); String name = stub.getName(); sink.occurrence(GrAnnotationMethodNameIndex.KEY, name); } | indexStub |
34,115 | GrEnumConstantList (@NotNull EmptyStub stub) { return new GrEnumConstantListImpl(stub); } | createPsi |
34,116 | GrTypeDefinitionStub (IStubElementType<?, ?> elementType, GrTypeDefinition typeDefinition, StubElement<?> parentStub) { final byte flags = GrTypeDefinitionStub.buildFlags(typeDefinition); return new GrTypeDefinitionStub( parentStub, typeDefinition.getName(), GrStubUtils.getBaseClassName(typeDefinition), elementType, typeDefinition.getQualifiedName(), GrStubUtils.getAnnotationNames(typeDefinition), flags ); } | doCreateStub |
34,117 | void (@NotNull GrTypeDefinitionStub stub, @NotNull IndexSink sink) { if (stub.isAnonymous()) { final String baseClassName = stub.getBaseClassName(); if (baseClassName != null) { final String shortName = PsiNameHelper.getShortClassName(baseClassName); sink.occurrence(GrAnonymousClassIndex.KEY, shortName); } } else { String shortName = stub.getName(); if (shortName != null) { sink.occurrence(JavaStubIndexKeys.CLASS_SHORT_NAMES, shortName); } final String fqn = stub.getQualifiedName(); if (fqn != null) { sink.occurrence(GrFullClassNameStringIndex.KEY, fqn); } } for (String annName : stub.getAnnotations()) { if (annName != null) { sink.occurrence(GrAnnotatedMemberIndex.KEY, annName); } } } | indexStub |
34,118 | GrEnumTypeDefinition (@NotNull GrTypeDefinitionStub stub) { return new GrEnumTypeDefinitionImpl(stub); } | createPsi |
34,119 | GrTypeDefinitionStub (@NotNull GrEnumTypeDefinition psi, StubElement<?> parentStub) { return doCreateStub(this, psi, parentStub); } | createStub |
34,120 | GrRecordDefinition (@NotNull GrTypeDefinitionStub stub) { return new GrRecordDefinitionImpl(stub); } | createPsi |
34,121 | GrTypeDefinitionStub (@NotNull GrRecordDefinition psi, StubElement<?> parentStub) { return doCreateStub(this, psi, parentStub); } | createStub |
34,122 | GrEnumConstant (@NotNull GrFieldStub stub) { return new GrEnumConstantImpl(stub); } | createPsi |
34,123 | GrFieldStub (@NotNull GrEnumConstant psi, StubElement parentStub) { String[] annNames = GrStubUtils.getAnnotationNames(psi); return new GrFieldStub(parentStub, StringRef.fromString(psi.getName()), annNames, ArrayUtilRt.EMPTY_STRING_ARRAY, GroovyStubElementTypes.ENUM_CONSTANT, GrFieldStub.buildFlags(psi), null); } | createStub |
34,124 | void (@NotNull GrFieldStub stub, @NotNull IndexSink sink) { GrFieldElementType.indexFieldStub(stub, sink); } | indexStub |
34,125 | GrParameterList (@NotNull EmptyStub stub) { return new GrParameterListImpl(stub); } | createPsi |
34,126 | GrVariable (@NotNull GrVariableStub stub) { return new GrVariableImpl(stub); } | createPsi |
34,127 | GrVariableStub (@NotNull GrVariable psi, StubElement parentStub) { return new GrVariableStub( parentStub, this, StringRef.fromNullableString(psi.getName()), GrStubUtils.getAnnotationNames(psi), GrStubUtils.getTypeText(psi.getTypeElementGroovy()) ); } | createStub |
34,128 | boolean (ASTNode node) { ASTNode parent = node.getTreeParent(); return parent != null && parent.getElementType() == GroovyStubElementTypes.VARIABLE_DECLARATION && GroovyStubElementTypes.VARIABLE_DECLARATION.shouldCreateStub(parent); } | shouldCreateStub |
34,129 | GrAnnotationTypeDefinition (@NotNull GrTypeDefinitionStub stub) { return new GrAnnotationTypeDefinitionImpl(stub); } | createPsi |
34,130 | GrTypeDefinitionStub (@NotNull GrAnnotationTypeDefinition psi, StubElement<?> parentStub) { return doCreateStub(this, psi, parentStub); } | createStub |
34,131 | StubBuilder () { return new DefaultStubBuilder() { @NotNull @Override protected StubElement createStubForFile(@NotNull final PsiFile file) { if (file instanceof GroovyFile) { return new GrFileStub((GroovyFile)file); } return super.createStubForFile(file); } @Override public boolean skipChildProcessingWhenBuildingStubs(@NotNull ASTNode parent, @NotNull ASTNode node) { IElementType childType = node.getElementType(); IElementType parentType = parent.getElementType(); if (childType == GroovyStubElementTypes.PARAMETER && parentType != GroovyEmptyStubElementTypes.PARAMETER_LIST) { return true; } if (childType == GroovyEmptyStubElementTypes.PARAMETER_LIST && !(parent.getPsi() instanceof GrMethod || parentType == GroovyStubElementTypes.RECORD_TYPE_DEFINITION)) { return true; } if (childType == GroovyStubElementTypes.MODIFIER_LIST) { if (parentType == GroovyElementTypes.CLASS_INITIALIZER) { return true; } if (parentType == GroovyStubElementTypes.VARIABLE_DECLARATION && !GroovyStubElementTypes.VARIABLE_DECLARATION.shouldCreateStub(parent)) { return true; } } return false; } }; } | getBuilder |
34,132 | StubElement (@NotNull final PsiFile file) { if (file instanceof GroovyFile) { return new GrFileStub((GroovyFile)file); } return super.createStubForFile(file); } | createStubForFile |
34,133 | boolean (@NotNull ASTNode parent, @NotNull ASTNode node) { IElementType childType = node.getElementType(); IElementType parentType = parent.getElementType(); if (childType == GroovyStubElementTypes.PARAMETER && parentType != GroovyEmptyStubElementTypes.PARAMETER_LIST) { return true; } if (childType == GroovyEmptyStubElementTypes.PARAMETER_LIST && !(parent.getPsi() instanceof GrMethod || parentType == GroovyStubElementTypes.RECORD_TYPE_DEFINITION)) { return true; } if (childType == GroovyStubElementTypes.MODIFIER_LIST) { if (parentType == GroovyElementTypes.CLASS_INITIALIZER) { return true; } if (parentType == GroovyStubElementTypes.VARIABLE_DECLARATION && !GroovyStubElementTypes.VARIABLE_DECLARATION.shouldCreateStub(parent)) { return true; } } return false; } | skipChildProcessingWhenBuildingStubs |
34,134 | int () { return super.getStubVersion() + STUB_VERSION; } | getStubVersion |
34,135 | String () { return "groovy.FILE"; } | getExternalId |
34,136 | void (@NotNull GrFileStub stub, @NotNull IndexSink sink) { String name = stub.getName().toString(); if (stub.isScript() && name != null) { sink.occurrence(GrScriptClassNameIndex.KEY, name); final String pName = GrStubUtils.getPackageName(stub); final String fqn = StringUtil.isEmpty(pName) ? name : pName + "." + name; sink.occurrence(GrFullScriptNameStringIndex.KEY, fqn); } for (String anno : stub.getAnnotations()) { sink.occurrence(GrAnnotatedMemberIndex.KEY, anno); } } | indexStub |
34,137 | boolean () { return true; } | isLeftBound |
34,138 | GrAnnotationArgumentList (@NotNull EmptyStub stub) { return new GrAnnotationArgumentListImpl(stub); } | createPsi |
34,139 | GrThrowsClause (@NotNull GrReferenceListStub stub) { return new GrThrowsClauseImpl(stub); } | createPsi |
34,140 | GrAnonymousClassDefinition (@NotNull GrTypeDefinitionStub stub) { return new GrAnonymousClassDefinitionImpl(stub); } | createPsi |
34,141 | GrTypeDefinitionStub (@NotNull GrAnonymousClassDefinition psi, StubElement<?> parentStub) { return doCreateStub(this, psi, parentStub); } | createStub |
34,142 | GrVariableDeclaration (@NotNull GrVariableDeclarationStub stub) { return new GrVariableDeclarationImpl(stub); } | createPsi |
34,143 | GrVariableDeclarationStub (@NotNull GrVariableDeclaration psi, StubElement parentStub) { return new GrVariableDeclarationStub(parentStub, GrStubUtils.getTypeText(psi.getTypeElementGroovy())); } | createStub |
34,144 | boolean (ASTNode node) { PsiElement parent = SharedImplUtil.getParent(node); if (parent instanceof GrTypeDefinitionBody) { // store fields return true; } if (PsiTreeUtil.getParentOfType(parent, GrTypeDefinition.class) != null) { // do not store variable declarations within classes, as they are not scripts return false; } PsiElement psi = node.getPsi(); if (!(psi instanceof GrVariableDeclaration) || ((GrVariableDeclaration)psi).getModifierList().getRawAnnotations().length == 0) { // store only annotated declarations return false; } PsiFile file = psi.getContainingFile(); return file instanceof GroovyFile && ((GroovyFile)file).isScript(); } | shouldCreateStub |
34,145 | GrParameter (@NotNull GrParameterStub stub) { return new GrParameterImpl(stub); } | createPsi |
34,146 | GrParameterStub (@NotNull GrParameter psi, StubElement parentStub) { return new GrParameterStub(parentStub, StringRef.fromString(psi.getName()), GrStubUtils.getAnnotationNames(psi), GrStubUtils.getTypeText( psi.getTypeElementGroovy()), GrParameterStub.encodeFlags(psi.getInitializerGroovy() != null, psi.isVarArgs())); } | createStub |
34,147 | void (@NotNull GrParameterStub stub, @NotNull IndexSink sink) { for (String annName : stub.getAnnotations()) { if (annName != null) { sink.occurrence(GrAnnotatedMemberIndex.KEY, annName); } } } | indexStub |
34,148 | GrTypeParameter (@NotNull GrTypeParameterStub stub) { return new GrTypeParameterImpl(stub); } | createPsi |
34,149 | GrTypeParameterStub (@NotNull GrTypeParameter psi, StubElement parentStub) { return new GrTypeParameterStub(parentStub, StringRef.fromString(psi.getName())); } | createStub |
34,150 | GrTraitTypeDefinition (@NotNull GrTypeDefinitionStub stub) { return new GrTraitTypeDefinitionImpl(stub); } | createPsi |
34,151 | GrTypeDefinitionStub (@NotNull GrTraitTypeDefinition psi, StubElement<?> parentStub) { return doCreateStub(this, psi, parentStub); } | createStub |
34,152 | GrReferenceList (@NotNull GrReferenceListStub stub) { return new GrTypeParameterParameterExtendsListImpl(stub, this); } | createPsi |
34,153 | void (@NotNull GrReferenceListStub stub, @NotNull IndexSink sink) { // don't index short names of bounds as superclasses } | indexStub |
34,154 | PsiType () { return containerType; } | getContainerType |
34,155 | SpreadState () { return innerState; } | getInnerState |
34,156 | SpreadState (PsiType type, @Nullable SpreadState state) { return new SpreadState(type, state); } | create |
34,157 | PsiType (@Nullable PsiType item, @Nullable SpreadState state, Project project) { if (state == null) return item; return apply(CollectionUtil.createSimilarCollection(state.getContainerType(), project, item), state.getInnerState(), project); } | apply |
34,158 | boolean (@NotNull GrInExpression expression) { return expression.getOperationTokenType() == GroovyElementTypes.T_NOT_IN; } | isNegated |
34,159 | void (@NotNull GrArgumentList argumentList) { GrExpression[] expr = argumentList.getExpressionArguments(); if (expr.length == 1 && expr[0] instanceof GrLiteral) { Object value = ((GrLiteral)expr[0]).getValue(); if (value instanceof String s) { if (StringUtil.isJavaIdentifier(s)) { add((String)value); } } } } | extractArguments |
34,160 | void (String refName) { myResult.put(refName, CODE_NAMED_ARGUMENTS_DESCR); } | add |
34,161 | void (@NotNull GrReferenceExpression referenceExpression) { if (myFirstArgumentName.equals(referenceExpression.getReferenceName()) && !referenceExpression.isQualified()) { PsiElement parent = referenceExpression.getParent(); if (parent instanceof GrReferenceExpression parentRef) { PsiElement parentParent = parentRef.getParent(); if (parentParent instanceof GrMethodCallExpression) { if (METHOD_NAMES.contains(parentRef.getReferenceName())) { extractArguments(((GrMethodCallExpression)parentParent).getArgumentList()); } } else { add(parentRef.getReferenceName()); } } else if (parent instanceof GrIndexProperty indexProperty) { extractArguments(indexProperty.getArgumentList()); } } super.visitReferenceExpression(referenceExpression); } | visitReferenceExpression |
34,162 | boolean (@NotNull GrInstanceOfExpression expression) { return expression.getOperationToken().getNode().getElementType() == GroovyElementTypes.T_NOT_INSTANCEOF; } | isNegated |
34,163 | GroovyAssignmentExpressionPattern (@NotNull final ElementPattern pattern) { return with(new PatternCondition<>("left") { @Override public boolean accepts(@NotNull final GrAssignmentExpression psiBinaryExpression, final ProcessingContext context) { return pattern.accepts(psiBinaryExpression.getLValue(), context); } }); } | left |
34,164 | boolean (@NotNull final GrAssignmentExpression psiBinaryExpression, final ProcessingContext context) { return pattern.accepts(psiBinaryExpression.getLValue(), context); } | accepts |
34,165 | GroovyAssignmentExpressionPattern (@NotNull final ElementPattern pattern) { return with(new PatternCondition<>("right") { @Override public boolean accepts(@NotNull final GrAssignmentExpression psiBinaryExpression, final ProcessingContext context) { return pattern.accepts(psiBinaryExpression.getRValue(), context); } }); } | right |
34,166 | boolean (@NotNull final GrAssignmentExpression psiBinaryExpression, final ProcessingContext context) { return pattern.accepts(psiBinaryExpression.getRValue(), context); } | accepts |
34,167 | GroovyAssignmentExpressionPattern (final IElementType pattern) { return with(new PatternCondition<>("operation") { @Override public boolean accepts(@NotNull final GrAssignmentExpression psiBinaryExpression, final ProcessingContext context) { return pattern == psiBinaryExpression.getOperationTokenType(); } }); } | operation |
34,168 | boolean (@NotNull final GrAssignmentExpression psiBinaryExpression, final ProcessingContext context) { return pattern == psiBinaryExpression.getOperationTokenType(); } | accepts |
34,169 | Self (final int index, final ElementPattern<? extends PsiMethod> methodPattern) { final PsiNamePatternCondition nameCondition = ContainerUtil.findInstance(methodPattern.getCondition().getConditions(), PsiNamePatternCondition.class); return with(new PatternCondition<>("methodCallParameter") { @Override public boolean accepts(@NotNull final T literal, final ProcessingContext context) { final PsiElement parent = literal.getParent(); if (parent instanceof GrArgumentList psiExpressionList) { if (!(literal instanceof GrExpression)) return false; if (psiExpressionList.getExpressionArgumentIndex((GrExpression)literal) != index) return false; final PsiElement element = psiExpressionList.getParent(); if (element instanceof GrCall) { final GroovyPsiElement expression = element instanceof GrMethodCall ? ((GrMethodCall)element).getInvokedExpression() : element instanceof GrNewExpression ? ((GrNewExpression)element).getReferenceElement() : null; if (expression instanceof GrReferenceElement ref) { if (nameCondition != null && "withName".equals(nameCondition.getDebugMethodName())) { final String methodName = ref.getReferenceName(); if (methodName != null && !nameCondition.getNamePattern().accepts(methodName, context)) { return false; } } for (GroovyResolveResult result : ref.multiResolve(false)) { final PsiElement psiElement = result.getElement(); if (methodPattern.accepts(psiElement, context)) { return true; } } } } } return false; } }); } | methodCallParameter |
34,170 | boolean (@NotNull final T literal, final ProcessingContext context) { final PsiElement parent = literal.getParent(); if (parent instanceof GrArgumentList psiExpressionList) { if (!(literal instanceof GrExpression)) return false; if (psiExpressionList.getExpressionArgumentIndex((GrExpression)literal) != index) return false; final PsiElement element = psiExpressionList.getParent(); if (element instanceof GrCall) { final GroovyPsiElement expression = element instanceof GrMethodCall ? ((GrMethodCall)element).getInvokedExpression() : element instanceof GrNewExpression ? ((GrNewExpression)element).getReferenceElement() : null; if (expression instanceof GrReferenceElement ref) { if (nameCondition != null && "withName".equals(nameCondition.getDebugMethodName())) { final String methodName = ref.getReferenceName(); if (methodName != null && !nameCondition.getNamePattern().accepts(methodName, context)) { return false; } } for (GroovyResolveResult result : ref.multiResolve(false)) { final PsiElement psiElement = result.getElement(); if (methodPattern.accepts(psiElement, context)) { return true; } } } } } return false; } | accepts |
34,171 | Self () { return with(new PatternCondition<>("regExpOperatorArg") { @Override public boolean accepts(@NotNull T t, ProcessingContext context) { PsiElement parent = t.getParent(); return parent instanceof GrUnaryExpression && ((GrUnaryExpression)parent).getOperationTokenType() == GroovyTokenTypes.mBNOT || parent instanceof GrBinaryExpression && t == ((GrBinaryExpression)parent).getRightOperand() && ((GrBinaryExpression)parent).getOperationTokenType() == GroovyTokenTypes.mREGEX_FIND || parent instanceof GrBinaryExpression && t == ((GrBinaryExpression)parent).getRightOperand() && ((GrBinaryExpression)parent).getOperationTokenType() == GroovyTokenTypes.mREGEX_MATCH; } }); } | regExpOperatorArgument |
34,172 | boolean (@NotNull T t, ProcessingContext context) { PsiElement parent = t.getParent(); return parent instanceof GrUnaryExpression && ((GrUnaryExpression)parent).getOperationTokenType() == GroovyTokenTypes.mBNOT || parent instanceof GrBinaryExpression && t == ((GrBinaryExpression)parent).getRightOperand() && ((GrBinaryExpression)parent).getOperationTokenType() == GroovyTokenTypes.mREGEX_FIND || parent instanceof GrBinaryExpression && t == ((GrBinaryExpression)parent).getRightOperand() && ((GrBinaryExpression)parent).getOperationTokenType() == GroovyTokenTypes.mREGEX_MATCH; } | accepts |
34,173 | GroovyElementPattern () { return new GroovyElementPattern.Capture<>(GroovyPsiElement.class); } | groovyElement |
34,174 | GroovyBinaryExpressionPattern () { return new GroovyBinaryExpressionPattern(); } | groovyBinaryExpression |
34,175 | GroovyAssignmentExpressionPattern () { return new GroovyAssignmentExpressionPattern(); } | groovyAssignmentExpression |
34,176 | boolean (@Nullable final Object o, final ProcessingContext context) { return o instanceof GrLiteral && (value == null || value.accepts(((GrLiteral)o).getValue(), context)); } | accepts |
34,177 | PsiMethodPattern (@NotNull final Object key) { return PsiJavaPatterns.psiMethod().with(new PatternCondition<>("GrLightMethodBuilder") { @Override public boolean accepts(@NotNull PsiMethod method, ProcessingContext context) { return GrLightMethodBuilder.checkKind(method, key); } }); } | grLightMethod |
34,178 | boolean (@NotNull PsiMethod method, ProcessingContext context) { return GrLightMethodBuilder.checkKind(method, key); } | accepts |
34,179 | boolean (@Nullable Object o, ProcessingContext context) { if (!(o instanceof GroovyPsiElement)) return false; PsiElement parent = ((GroovyPsiElement)o).getParent(); if (!(parent instanceof GrAssignmentExpression)) return false; if (((GrAssignmentExpression)parent).getRValue() != o) return false; return assignment.accepts(parent, context) && value.accepts(o, context); } | accepts |
34,180 | boolean (@Nullable final Object o, final ProcessingContext context) { if (!(o instanceof GrLiteral)) return false; return ((GrLiteral)o).isString(); } | accepts |
34,181 | GroovyNamedArgumentPattern () { return new GroovyNamedArgumentPattern(); } | namedArgument |
34,182 | boolean (@Nullable final Object o, final ProcessingContext context) { if (o instanceof GrArgumentLabel) { PsiElement nameElement = ((GrArgumentLabel)o).getNameElement(); if (nameElement instanceof LeafPsiElement) { IElementType elementType = ((LeafPsiElement)nameElement).getElementType(); if (elementType == GroovyTokenTypes.mIDENT || CommonClassNames.JAVA_LANG_STRING.equals(TypesUtil.getBoxedTypeName(elementType))) { return namePattern == null || namePattern.accepts(((GrArgumentLabel)o).getName()); } } } return false; } | accepts |
34,183 | GroovyMethodCallPattern (final ElementPattern<String> names, final String className) { return GroovyMethodCallPattern.INSTANCE.withMethodName(names).withMethod( psiMethod().with(new PatternCondition<>("psiMethodClassNameCondition") { @Override public boolean accepts(@NotNull PsiMethod psiMethod, ProcessingContext context) { PsiClass containingClass = psiMethod.getContainingClass(); if (containingClass != null) { if (InheritanceUtil.isInheritor(containingClass, className)) { return true; } } return false; } }) ); } | methodCall |
34,184 | boolean (@NotNull PsiMethod psiMethod, ProcessingContext context) { PsiClass containingClass = psiMethod.getContainingClass(); if (containingClass != null) { if (InheritanceUtil.isInheritor(containingClass, className)) { return true; } } return false; } | accepts |
34,185 | GroovyMethodCallPattern () { return GroovyMethodCallPattern.INSTANCE; } | methodCall |
34,186 | boolean (@Nullable Object o, ProcessingContext context) { return o instanceof GroovyFileBase && ((GroovyFileBase)o).isScript(); } | accepts |
34,187 | GroovyFieldPattern () { return new GroovyFieldPattern(); } | grField |
34,188 | GrAnnotationPattern () { return new GrAnnotationPattern(); } | annotation |
34,189 | GrAnnotationPattern (@NotNull final String qname) { return with(new PatternCondition<>("withQualifiedName") { @Override public boolean accepts(@NotNull GrAnnotation annotation, ProcessingContext context) { return qname.equals(annotation.getQualifiedName()); } }); } | withQualifiedName |
34,190 | boolean (@NotNull GrAnnotation annotation, ProcessingContext context) { return qname.equals(annotation.getQualifiedName()); } | accepts |
34,191 | GroovyNamedArgumentPattern (@NotNull final String label) { return with(new PatternCondition<>("left") { @Override public boolean accepts(@NotNull GrNamedArgument namedArgument, final ProcessingContext context) { return label.equals(namedArgument.getLabelName()); } }); } | withLabel |
34,192 | boolean (@NotNull GrNamedArgument namedArgument, final ProcessingContext context) { return label.equals(namedArgument.getLabelName()); } | accepts |
34,193 | GroovyNamedArgumentPattern (@NotNull final StringPattern labelPattern) { return with(new PatternCondition<>("left") { @Override public boolean accepts(@NotNull GrNamedArgument namedArgument, final ProcessingContext context) { return labelPattern.accepts(namedArgument.getLabelName(), context); } }); } | withLabel |
34,194 | boolean (@NotNull GrNamedArgument namedArgument, final ProcessingContext context) { return labelPattern.accepts(namedArgument.getLabelName(), context); } | accepts |
34,195 | GroovyNamedArgumentPattern (@NotNull final ElementPattern pattern) { return with(new PatternCondition<>("left") { @Override public boolean accepts(@NotNull GrNamedArgument namedArgument, final ProcessingContext context) { return pattern.accepts(namedArgument.getExpression(), context); } }); } | withExpression |
34,196 | boolean (@NotNull GrNamedArgument namedArgument, final ProcessingContext context) { return pattern.accepts(namedArgument.getExpression(), context); } | accepts |
34,197 | GroovyNamedArgumentPattern (@Nullable final ElementPattern<? extends GrCall> methodCall) { return with(new PatternCondition<>("left") { @Override public boolean accepts(@NotNull GrNamedArgument namedArgument, final ProcessingContext context) { GrCall call = PsiUtil.getCallByNamedParameter(namedArgument); return call != null && (methodCall == null || methodCall.accepts(call, context)); } }); } | isParameterOfMethodCall |
34,198 | boolean (@NotNull GrNamedArgument namedArgument, final ProcessingContext context) { GrCall call = PsiUtil.getCallByNamedParameter(namedArgument); return call != null && (methodCall == null || methodCall.accepts(call, context)); } | accepts |
34,199 | boolean (@Nullable final Object o, final ProcessingContext context) { return o instanceof GrField; } | accepts |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.