Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
31,500 | void (Project project, Editor editor, PsiElement element) { final Pair<List<? extends PsiElement>, String> pair = RenamePropertyUtil.askToRenameProperty((PsiMember)element); final List<? extends PsiElement> result = pair.getFirst(); if (result.isEmpty()) return; PsiElement propertyToRename = getPropertyToRename(element... | invokeInner |
31,501 | PsiElement (PsiElement element, List<? extends PsiElement> result, String propertyName) { if (result.size() == 1) { return result.get(0); } else /*if (result.size() > 1)*/ { return new PropertyForRename(result, propertyName, element.getManager()); } } | getPropertyToRename |
31,502 | String () { return GroovyRefactoringBundle.message("rename.groovy.property"); } | getActionTitle |
31,503 | boolean (@NotNull PsiElement element) { return element instanceof GroovyFile && ((GroovyFile)element).isScript() && GroovyScriptUtil.isPlainGroovyScript((GroovyFile)element); } | canProcessElement |
31,504 | void (@NotNull PsiElement element, @NotNull String newName, @NotNull Map<PsiElement, String> allRenames) { if (element instanceof GroovyFile) { final PsiClass script = ((GroovyFile)element).getScriptClass(); if (script != null && script.isValid()) { final String scriptName = FileUtilRt.getNameWithoutExtension(newName);... | prepareRenaming |
31,505 | void (@NotNull PsiElement element, @NotNull String newName, @NotNull MultiMap<PsiElement, String> conflicts) { final String scriptName = FileUtilRt.getNameWithoutExtension(newName); if (!StringUtil.isJavaIdentifier(scriptName)) { final PsiClass script = ((GroovyFile)element).getScriptClass(); conflicts.putValue(script,... | findExistingNameConflicts |
31,506 | boolean (@NotNull PsiElement element) { return element instanceof GroovyPsiElement && super.canProcessElement(element); } | canProcessElement |
31,507 | Collection<PsiReference> (@NotNull PsiElement element, @NotNull SearchScope searchScope, boolean searchInCommentsAndStrings) { return RenameAliasedUsagesUtil.filterAliasedRefs(super.findReferences(element, searchScope, searchInCommentsAndStrings), element); } | findReferences |
31,508 | RenameDialog (@NotNull Project project, @NotNull PsiElement element, PsiElement nameSuggestionContext, Editor editor) { return new RenameDialog(project, element, nameSuggestionContext, editor) { @Override protected boolean areButtonsValid() { return true; } }; } | createRenameDialog |
31,509 | boolean () { return true; } | areButtonsValid |
31,510 | void (@NotNull PsiElement element, @NotNull final String newName, @NotNull final Map<? extends PsiElement, String> allRenames, @NotNull final List<UsageInfo> result) { if (element instanceof PsiMethod method) { OverridingMethodsSearch.search(method).forEach(overrider -> { PsiElement original = overrider; if (overrider ... | findCollisions |
31,511 | String () { return RefactoringBundle.message("0.is.not.an.identifier", newName, ref.getText()); } | getDescription |
31,512 | PsiElement (PsiReference ref, String newName) { PsiElement element = ref.getElement(); if (RenameUtil.isValidName(element.getProject(), element, newName) || element instanceof GrReferenceElement) { return super.processRef(ref, newName); } PsiElement nameElement; if (element instanceof PsiReferenceExpression) { nameElem... | processRef |
31,513 | String () { return GroovyRefactoringBundle.message("cannot.rename.property.0", myName, myBaseName); } | getDescription |
31,514 | void (String newName) { PsiNamedElement elementToRename = getVariable(); if (elementToRename instanceof ClosureSyntheticParameter && !"it".equals(newName)) { final GrClosableBlock closure = ((ClosureSyntheticParameter)elementToRename).getClosure(); final GroovyPsiElementFactory factory = GroovyPsiElementFactory.getInst... | renameSynthetic |
31,515 | boolean (String newName, Language language) { return true; } | isIdentifier |
31,516 | TextRange (@NotNull PsiElement element) { TextRange range = getIdentifierNameRange(element); return range != null ? range : super.getRangeToRename(element); } | getRangeToRename |
31,517 | TextRange (@NotNull PsiReference reference) { TextRange range = getReferenceNameRange(reference.getElement()); return range != null ? range : super.getRangeToRename(reference); } | getRangeToRename |
31,518 | TextRange (@NotNull PsiElement element) { if (element instanceof JavaIdentifier) { return GrStringUtil.getStringContentRange(element.getNavigationElement()); } return null; } | getIdentifierNameRange |
31,519 | TextRange (PsiElement element) { if (element instanceof GrReferenceExpression referenceExpression) { PsiElement nameElement = referenceExpression.getReferenceNameElement(); TextRange stringContentRange = GrStringUtil.getStringContentRange(nameElement); if (stringContentRange != null) return stringContentRange.shiftRigh... | getReferenceNameRange |
31,520 | ResolveSnapshot (PsiElement scope) { return new GroovyResolveSnapshot(scope); } | createSnapshot |
31,521 | boolean (@Nullable PsiElement element, @NotNull Editor editor, @NotNull PsiFile file) { if (!editor.getSettings().isVariableInplaceRenameEnabled()) return false; if (!(element instanceof GrVariable)) return false; if (element instanceof GrField) return false; final SearchScope scope = element.getUseScope(); if (!(scope... | isAvailable |
31,522 | VariableInplaceRenamer (@NotNull PsiElement elementToRename, @NotNull Editor editor) { return new GrVariableInplaceRenamer((PsiNameIdentifierOwner)elementToRename, editor); } | createRenamer |
31,523 | boolean (@Nullable PsiElement element, @NotNull Editor editor, @NotNull PsiFile file) { if (!editor.getSettings().isVariableInplaceRenameEnabled()) return false; return element instanceof GrMethod && file instanceof GroovyFile; } | isAvailable |
31,524 | MemberInplaceRenamer (@NotNull PsiElement element, @NotNull PsiNameIdentifierOwner elementToRename, @NotNull Editor editor) { return new GrMethodInplaceRenamer(elementToRename, element, editor); } | createMemberRenamer |
31,525 | void (@NotNull GrReferenceExpression refExpr) { if (!refExpr.isQualified()) { PsiElement resolved = refExpr.resolve(); if (resolved instanceof GrMember) { SmartPsiElementPointer key = pointerManager.createSmartPsiElementPointer(refExpr); SmartPsiElementPointer value = pointers.get(resolved); if (value == null) { value ... | visitReferenceExpression |
31,526 | void (String hidingLocalName) { PsiDocumentManager.getInstance(myProject).commitDocument(myDocument); for (Map.Entry<SmartPsiElementPointer, SmartPsiElementPointer> entry : myReferencesMap.entrySet()) { qualify(entry.getKey().getElement(), entry.getValue().getElement(), hidingLocalName); } } | apply |
31,527 | void (PsiElement referent, PsiElement referee, String hidingLocalName) { if (referent instanceof GrReferenceExpression ref && referee instanceof GrMember) { if (!ref.isQualified() && hidingLocalName.equals(ref.getReferenceName())) { PsiUtil.qualifyMemberReference(ref, (GrMember)referee, hidingLocalName); } } } | qualify |
31,528 | boolean () { final Editor editor = myEditorTextField.getEditor(); if (editor != null) { new JavaReferenceImporter().autoImportReferenceAtCursor(editor, myCodeFragment); } return super.stopCellEditing(); } | stopCellEditing |
31,529 | JBPopup (List<? extends GrParameterListOwner> scopes, final Editor editor, final JBPopupOwner popupRef, final PairFunction<? super GrParameterListOwner, ? super PsiElement, Object> callback) { final JPanel panel = new JPanel(new BorderLayout()); final JCheckBox superMethod = new JCheckBox(GroovyBundle.message("change.b... | create |
31,530 | Component (JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) { super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus); final String text; if (value instanceof PsiMethod method) { text = PsiFormatUtil.formatMethod(method, PsiSubstitutor.EMPTY, PsiFormatUtilBase.SHOW... | getListCellRendererComponent |
31,531 | void (final ListSelectionEvent e) { final GrParameterListOwner selectedMethod = (GrParameterListOwner)list.getSelectedValue(); if (selectedMethod == null) return; dropHighlighters(highlighters); updateView(selectedMethod, editor, EditorColors.SEARCH_RESULT_ATTRIBUTES, highlighters, superMethod); } | valueChanged |
31,532 | void (ActionEvent e) { final GrParameterListOwner ToSearchIn = (GrParameterListOwner)list.getSelectedValue(); final JBPopup popup = popupRef.get(); if (popup != null && popup.isVisible()) { popup.cancel(); } final PsiElement toSearchFor; if (ToSearchIn instanceof GrMethod method) { toSearchFor = superMethod.isEnabled()... | actionPerformed |
31,533 | void (@NotNull LightweightWindowEvent event) { dropHighlighters(highlighters); } | onClosed |
31,534 | void (GrParameterListOwner selectedMethod, Editor editor, TextAttributesKey attributesKey, List<? super RangeHighlighter> highlighters, JCheckBox superMethod) { final MarkupModel markupModel = editor.getMarkupModel(); final TextRange textRange = selectedMethod.getTextRange(); final RangeHighlighter rangeHighlighter = m... | updateView |
31,535 | GrVariable (@NotNull GrParameterListOwner owner) { final PsiElement parent = owner.getParent(); if (parent instanceof GrVariable) return (GrVariable)parent; if (parent instanceof GrAssignmentExpression && ((GrAssignmentExpression)parent).getRValue() == owner && !((GrAssignmentExpression)parent).isOperatorAssignment()) ... | findVariableToUse |
31,536 | void (List<RangeHighlighter> highlighters) { for (RangeHighlighter highlighter : highlighters) { highlighter.dispose(); } highlighters.clear(); } | dropHighlighters |
31,537 | GrTypeComboBox (@Nullable PsiType type, @NotNull PsiElement context) { return new GrTypeComboBox(type, null, true, context, false); } | createTypeComboBoxWithDefType |
31,538 | GrTypeComboBox (@NotNull GrExpression expression) { return createTypeComboBoxFromExpression(expression, false); } | createTypeComboBoxFromExpression |
31,539 | GrTypeComboBox (@NotNull GrExpression expression, boolean selectDef) { PsiType type = expression.getType(); if (expression instanceof GrReferenceExpression) { PsiElement resolved = ((GrReferenceExpression)expression).resolve(); if (resolved instanceof PsiClass) { type = TypesUtil.createJavaLangClassType(type, expressio... | createTypeComboBoxFromExpression |
31,540 | GrTypeComboBox () { return new GrTypeComboBox(null, null, false, null, false); } | createEmptyTypeComboBox |
31,541 | void (@Nullable PsiType type, @NotNull PsiElement context) { final PsiElementFactory factory = JavaPsiFacade.getElementFactory(context.getProject()); final PsiType cl; if (type == null || type == PsiTypes.nullType()) { cl = factory.createTypeFromText(GroovyCommonClassNames.GROOVY_LANG_CLOSURE, context); } else { cl = f... | addClosureTypesFrom |
31,542 | PsiType () { final Object selected = getSelectedItem(); assert selected instanceof PsiTypeItem; return ((PsiTypeItem)selected).getType(); } | getSelectedType |
31,543 | boolean () { return ((PsiTypeItem)getSelectedItem()).isClosure(); } | isClosureSelected |
31,544 | boolean (PsiType type) { if (!(type instanceof PsiClassType)) return false; PsiType[] parameters = ((PsiClassType)type).getParameters(); PsiClassType.ClassResolveResult classResolveResult = ((PsiClassType)type).resolveGenerics(); PsiClass clazz = classResolveResult.getElement(); if (clazz == null) return false; return ... | isPartiallySubstituted |
31,545 | void (JComponent component, final GrTypeComboBox combo) { final AnAction arrow = new AnAction() { @Override public void actionPerformed(@NotNull AnActionEvent e) { if (e.getInputEvent() instanceof KeyEvent) { final int code = ((KeyEvent)e.getInputEvent()).getKeyCode(); scrollBy(code == KeyEvent.VK_DOWN ? 1 : code == Ke... | registerUpDownHint |
31,546 | void (@NotNull AnActionEvent e) { if (e.getInputEvent() instanceof KeyEvent) { final int code = ((KeyEvent)e.getInputEvent()).getKeyCode(); scrollBy(code == KeyEvent.VK_DOWN ? 1 : code == KeyEvent.VK_UP ? -1 : 0, combo); } } | actionPerformed |
31,547 | void (int delta, GrTypeComboBox combo) { if (delta == 0) return; final int size = combo.getModel().getSize(); int next = combo.getSelectedIndex() + delta; if (next < 0 || next >= size) { if (!UISettings.getInstance().getCycleScrolling()) { return; } next = (next + size) % size; } combo.setSelectedIndex(next); } | scrollBy |
31,548 | PsiType () { return myType; } | getType |
31,549 | boolean (Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; PsiTypeItem that = (PsiTypeItem)o; if (myType == null) { if (that.myType != null) return false; } else { if (!myType.equals(that.myType)) return false; } return true; } | equals |
31,550 | int () { return myType == null ? 0 : myType.hashCode(); } | hashCode |
31,551 | String () { return myType == null ? "def" : myType.getPresentableText(); } | toString |
31,552 | boolean () { return isClosure; } | isClosure |
31,553 | String () { return myFileName; } | getFileName |
31,554 | void (@NotNull PsiReference reference, @NotNull List<? super UsageInfo> usages, @NotNull PsiNamedElement parameter, int paramIdx, boolean isVararg) { final PsiElement element = reference.getElement(); GrCall call = null; if (element instanceof GrCall) { call = (GrCall)element; } else if (element.getParent() instanceof ... | createUsageInfoForParameter |
31,555 | void (@NotNull PsiReference reference, @NotNull List<? super UsageInfo> usages, @NotNull PsiElement typeParameter, int paramsCount, int index) { if (reference instanceof GrCodeReferenceElementImpl) { final @Nullable GrTypeArgumentList parameterList = ((GrCodeReferenceElementImpl)reference).getTypeArgumentList(); if (pa... | createJavaTypeParameterUsageInfo |
31,556 | void (@NotNull PsiElement overriddenFunction, PsiElement @NotNull [] elements2Delete, @NotNull List<? super UsageInfo> result) { } | createCleanupOverriding |
31,557 | UsageInfo (PsiElement refElement, PsiReference reference) { return null; } | createExtendsListUsageInfo |
31,558 | PsiElement (PsiElement element, boolean onlyNonStatic) { PsiFile file = element.getContainingFile(); if (file instanceof GroovyFile) { GrImportStatement anImport = PsiTreeUtil.getParentOfType(element, GrImportStatement.class); if (!(anImport == null || anImport.isStatic() && onlyNonStatic)) { return anImport; } } retur... | findImport |
31,559 | void (StringBuilder builder, GrEnumConstant constant) { GenerationUtil.writeDocComment(builder, constant, false); builder.append(constant.getName()); final GrArgumentList argumentList = constant.getArgumentList(); if (argumentList != null) { final GroovyResolveResult resolveResult = constant.advancedResolve(); GrSignat... | writeEnumConstant |
31,560 | void (StringBuilder text, PsiMethod constructor, boolean isEnum) { writeMethod(text, constructor); } | writeConstructor |
31,561 | void (StringBuilder builder, PsiMethod method) { if (method == null) return; GenerationUtil.writeDocComment(builder, method, true); String name = method.getName(); boolean isAbstract = method.hasModifierProperty(PsiModifier.ABSTRACT); PsiModifierList modifierList = method.getModifierList(); final PsiClass containingCla... | writeMethod |
31,562 | StringBuilder (GrReflectedMethod method) { final GrParameter[] actualParams = method.getParameterList().getParameters(); final GrParameter[] parameters = method.getBaseMethod().getParameters(); Set<String> actual = new HashSet<>(actualParams.length); for (GrParameter param : actualParams) { actual.add(param.getName());... | generateDelegateCall |
31,563 | void (StringBuilder builder, PsiMethod method) { final PsiClass containingClass = method.getContainingClass(); LOG.assertTrue(containingClass instanceof GroovyScriptClass); final PsiParameter[] parameters = method.getParameterList().getParameters(); LOG.assertTrue(parameters.length == 1); builder.append("{\nnew ").appe... | writeMainScriptMethodBody |
31,564 | void (StringBuilder builder, PsiMethod method) { builder.append("{\n"); final PsiClass containingClass = method.getContainingClass(); LOG.assertTrue(containingClass instanceof GroovyScriptClass); final PsiFile scriptFile = containingClass.getContainingFile(); LOG.assertTrue(scriptFile instanceof GroovyFile); LOG.assert... | writeRunScriptMethodBody |
31,565 | void (StringBuilder builder, PsiMethod method) { final String propName = ((GrAccessorMethod)method).getProperty().getName(); if (((GrAccessorMethod)method).isSetter()) { final String paramName = method.getParameterList().getParameters()[0].getName(); builder.append("{\n"); if (method.hasModifierProperty(PsiModifier.STA... | writeAccessorBody |
31,566 | PsiClassType[] (PsiMethod method) { return method.getThrowsList().getReferencedTypes(); //todo find method exceptions! } | getMethodExceptions |
31,567 | void (StringBuilder mainBuilder, GrVariableDeclaration variableDeclaration) { ExpressionContext extended = context.extend(); GrVariable[] variables = variableDeclaration.getVariables(); if (variables.length > 0 && variables[0] instanceof PsiField) { GenerationUtil.writeDocComment(mainBuilder, ((PsiField)variables[0]), ... | writeVariableDeclarations |
31,568 | Collection<PsiMethod> (PsiClass typeDefinition) { List<PsiMethod> result = ContainerUtil.filter( typeDefinition.getMethods(), m -> !GroovyObjectTransformationSupport.isGroovyObjectSupportMethod(m) ); if (typeDefinition instanceof GroovyScriptClass) { final GroovyPsiElementFactory factory = GroovyPsiElementFactory.getIn... | collectMethods |
31,569 | boolean () { return true; } | generateAnnotations |
31,570 | void (StringBuilder builder, PsiClass psiClass) { if (psiClass.getContainingClass() != null) return; if (psiClass instanceof PsiAnonymousClass) return; Map<PsiMethod, String> setters = context.getSetters(); Set<Map.Entry<PsiMethod, String>> entries = setters.entrySet(); if (ApplicationManager.getApplication().isUnitTes... | writePostponed |
31,571 | void (StringBuilder text, PsiClass typeDefinition) { final Collection<PsiClassType> implementsTypes = new LinkedHashSet<>(); Collections.addAll(implementsTypes, typeDefinition.getImplementsListTypes()); if (implementsTypes.isEmpty()) return; if (implementsTypes.size() == 1 && shouldSkipInImplements(typeDefinition, impl... | writeImplementsList |
31,572 | boolean (PsiClass typeDefinition, PsiClassType implementsType) { return implementsType.equalsToText(GROOVY_OBJECT) && typeDefinition instanceof GrTypeDefinition && !typeDefinition.isInterface() && !GenerationSettings.implementGroovyObjectAlways && !isInList(implementsType, ((GrTypeDefinition)typeDefinition).getImplemen... | shouldSkipInImplements |
31,573 | void (StringBuilder text, PsiClass typeDefinition) { final PsiClassType[] extendsClassesTypes = typeDefinition.getExtendsListTypes(); PsiClassType type = null; if (extendsClassesTypes.length > 0) { type = extendsClassesTypes[0]; } else { if (typeDefinition instanceof GrTypeDefinition) { if (GenerationSettings.implement... | writeExtendsList |
31,574 | boolean (@NotNull PsiClassType type, @Nullable GrReferenceList list) { if (list == null) return false; PsiClass resolved = type.resolve(); if (resolved == null) return true; PsiManager manager = list.getManager(); GrCodeReferenceElement[] elements = list.getReferenceElementsGroovy(); for (GrCodeReferenceElement element... | isInList |
31,575 | boolean (@NotNull GrTypeDefinition aClass, @NotNull final String fqn) { PsiClass classToSearch = JavaPsiFacade.getInstance(aClass.getProject()).findClass(fqn, aClass.getResolveScope()); if (classToSearch == null) return true; Set<String> methodsToFind = new HashSet<>(); for (PsiMethod method : classToSearch.getMethods(... | containsMethodsOf |
31,576 | void (GrListOrMap operand, GrTypeElement typeElement, final StringBuilder builder, ExpressionContext context) { final PsiType type = typeElement.getType(); final PsiClass psiClass; final PsiSubstitutor substitutor; if (type instanceof PsiClassType) { final PsiClassType.ClassResolveResult resolveResult = ((PsiClassType)... | writeAnonymousMap |
31,577 | void () { final boolean isStatic = mySetter.hasModifierProperty(PsiModifier.STATIC); final GroovyPsiElementFactory factory = GroovyPsiElementFactory.getInstance(myContext.project); PsiParameter[] parameters = mySetter.getParameterList().getParameters(); PsiParameter parameter = parameters[parameters.length - 1]; final ... | write |
31,578 | void (boolean aStatic, PsiParameter @NotNull [] parameters, @NotNull PsiParameter parameter, final GroovyPsiElement place) { //method body myBuffer.append("{\n"); //arg initialization myContext.myUsedVarNames.add("propOwner"); final GrExpression[] args = generateArguments(parameters, place); new ExpressionGenerator(myB... | writeBody |
31,579 | GroovyPsiElement (PsiParameter @NotNull [] parameters) { StringBuilder methodText = new StringBuilder("def ").append(myName).append('('); for (PsiParameter parameter : parameters) { methodText.append(parameter.getType().getCanonicalText()).append(' ').append(parameter.getName()).append(','); } if (parameters.length > 0... | createStubMethod |
31,580 | void (PsiType parameterType) { //type parameters if (mySetter.hasTypeParameters()) { GenerationUtil.writeTypeParameters(myBuffer, mySetter, myClassNameProvider); } if (parameterType instanceof PsiPrimitiveType) { myBuffer.append(parameterType.getCanonicalText()).append(' '); } else { if (mySetter.hasTypeParameters()) {... | processTypeParameters |
31,581 | Object () { return copy(); } | clone |
31,582 | void () { myProps.put(myShouldInsertCurlyBrackets, true); } | setInsertCurlyBrackets |
31,583 | boolean (String name) { final Boolean aBoolean = myProps.get(name); return aBoolean != null && aBoolean.booleanValue(); } | getProp |
31,584 | boolean () { return getProp(myShouldInsertCurlyBrackets); } | shouldInsertCurlyBrackets |
31,585 | boolean () { return getProp(myInAnonymousContext); } | isInAnonymousContext |
31,586 | void (boolean inAnonymousContext) { myProps.put(myInAnonymousContext, inAnonymousContext); } | setInAnonymousContext |
31,587 | void (GroovyPsiElement root) { analyzedVars = LocalVarAnalyzer.searchForVarsToWrap(root, analyzedVars, this); } | searchForLocalVarsToWrap |
31,588 | String () { return myRefSetterName.get(); } | getRefSetterName |
31,589 | String (GroovyPsiElement context) { if (myRefSetterName.isNull()) { myRefSetterName.set(GenerationUtil.suggestMethodName(context, "setGroovyRef", this)); } return myRefSetterName.get(); } | getRefSetterName |
31,590 | String (PsiMethod setter, GroovyPsiElement place) { String name = setters.get(setter); if (name != null) return name; name = GenerationUtil.suggestMethodName(place, setter.getName(), this); setters.put(setter, name); return name; } | getSetterName |
31,591 | boolean (PsiClass aClass) { if (aClass == null) return false; return myClasses.contains(aClass); } | isClassConverted |
31,592 | String (@Nullable PsiClass psiClass, @Nullable PsiElement context) { if (context != null && psiClass != null) { psiClass = GenerationUtil.findAccessibleSuperClass(context, psiClass); } if (psiClass == null) { return CommonClassNames.JAVA_LANG_OBJECT; } if (psiClass instanceof GrTypeDefinition) { if (!myAllToCompile.con... | getQualifiedClassName |
31,593 | boolean () { return true; } | forStubs |
31,594 | void (StringBuilder builder, PsiType[] parameters, PsiElement context, ClassNameProvider classNameProvider) { if (parameters.length == 0) return; builder.append('<'); for (PsiType parameter : parameters) { if (parameter instanceof PsiPrimitiveType) { parameter = TypesUtil.boxPrimitiveType(parameter, context.getManager(... | writeTypeParameters |
31,595 | String (GrExpression expr, ExpressionContext expressionContext) { final DefaultGroovyVariableNameValidator nameValidator = new DefaultGroovyVariableNameValidator(expr, expressionContext.myUsedVarNames, true); final String[] varNames = GroovyNameSuggestionUtil.suggestVariableNames(expr, nameValidator); LOG.assertTrue(va... | suggestVarName |
31,596 | String (PsiType type, GroovyPsiElement context, ExpressionContext expressionContext) { final DefaultGroovyVariableNameValidator nameValidator = new DefaultGroovyVariableNameValidator(context, expressionContext.myUsedVarNames, true, true); if (type instanceof PsiPrimitiveType) type = TypesUtil.boxPrimitiveType(type, con... | suggestVarName |
31,597 | String (String name, GroovyPsiElement context, ExpressionContext expressionContext) { return new DefaultGroovyVariableNameValidator(context, expressionContext.myUsedVarNames, true).validateName(name, true); } | validateName |
31,598 | void (StringBuilder builder, GrCodeReferenceElement referenceElement) { final GroovyResolveResult resolveResult = referenceElement.advancedResolve(); final PsiElement resolved = resolveResult.getElement(); if (resolved == null) { builder.append(referenceElement.getText()); return; } LOG.assertTrue(resolved instanceof P... | writeCodeReferenceElement |
31,599 | void (@Nullable GrExpression caller, @NotNull String methodName, GrExpression @NotNull [] exprs, GrNamedArgument @NotNull [] namedArgs, GrClosableBlock @NotNull [] closureArgs, @NotNull ExpressionGenerator expressionGenerator, @NotNull GroovyPsiElement psiContext) { GroovyResolveResult call = resolveMethod(caller, meth... | invokeMethodByName |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.