Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
6,600 | void (List<BuildFileProperty> userProperties) { myExtensionProperties.myUserProperties = userProperties; } | setUserProperties |
6,601 | void (boolean enabled) { myExtensionProperties.myEnabled = enabled; } | setEnabled |
6,602 | void (@NlsSafe String fileUrl) { myExtensionProperties.myFileUrl = fileUrl; } | setFileUrl |
6,603 | void (@NlsSafe String targetName) { myExtensionProperties.myTargetName = targetName; } | setTargetName |
6,604 | AntBuildTarget (final AntConfiguration antConfiguration) { String fileUrl = getFileUrl(); String targetName = getTargetName(); if (fileUrl == null || targetName == null) return null; for (AntBuildFile buildFile : antConfiguration.getBuildFileList()) { final VirtualFile file = buildFile.getVirtualFile(); if (file != null && file.getUrl().equals(fileUrl)) { final AntBuildModel buildModel = buildFile.getModel(); return buildModel != null ? buildModel.findTarget(targetName) : null; } } return null; } | findTarget |
6,605 | List<BuildFileProperty> (@NotNull Artifact artifact) { final List<BuildFileProperty> properties = new ArrayList<>(); properties.add(new BuildFileProperty(JpsAntArtifactExtensionImpl.ARTIFACT_OUTPUT_PATH_PROPERTY, artifact.getOutputPath())); properties.addAll(myExtensionProperties.myUserProperties); return properties; } | getAllProperties |
6,606 | boolean (@NonNls String propertyName) { return JpsAntArtifactExtensionImpl.ARTIFACT_OUTPUT_PATH_PROPERTY.equals(propertyName); } | isPredefinedProperty |
6,607 | String () { return AntBundle.message("ant.create.target.intention.description", myCanonicalText); } | getName |
6,608 | String () { return AntBundle.message("ant.intention.create.target.family.name"); } | getFamilyName |
6,609 | void (@NotNull Project project, @NotNull ProblemDescriptor descriptor) { final PsiElement psiElement = descriptor.getPsiElement(); final PsiFile containingFile = psiElement.getContainingFile(); Navigatable result = null; if (containingFile instanceof XmlFile xmlFile) { final XmlTag rootTag = xmlFile.getRootTag(); if (rootTag != null) { final XmlTag propTag = rootTag.createChildTag(TAG_NAME, rootTag.getNamespace(), "", false); propTag.setAttribute(NAME_ATTR, myCanonicalText); final DomElement contextElement = DomUtil.getDomElement(descriptor.getPsiElement()); PsiElement generated; if (contextElement == null) { generated = rootTag.addSubTag(propTag, true); } else { final AntDomTarget containingTarget = contextElement.getParentOfType(AntDomTarget.class, false); final DomElement anchor = containingTarget != null ? containingTarget : contextElement; final XmlTag tag = anchor.getXmlTag(); if (!rootTag.equals(tag)) { generated = tag.getParent().addBefore(propTag, tag); } else { generated = rootTag.addSubTag(propTag, true); } } if (generated instanceof XmlTag) { result = PsiNavigationSupport.getInstance().createNavigatable(project, containingFile.getVirtualFile(), ((XmlTag)generated).getValue().getTextRange() .getEndOffset()); } if (result == null && generated instanceof Navigatable) { result = (Navigatable)generated; } } } if (result != null) { result.navigate(true); } } | applyFix |
6,610 | String () { return AntBundle.message("intention.configure.highlighting.text"); } | getName |
6,611 | String () { return AntBundle.message("intention.configure.highlighting.family.name"); } | getFamilyName |
6,612 | void (@NotNull Project project, @NotNull ProblemDescriptor descriptor) { final PsiElement psiElement = descriptor.getPsiElement(); final PsiFile containingFile = psiElement.getContainingFile(); if (containingFile == null) { return; } final Editor editor = FileEditorManager.getInstance(project).getSelectedTextEditor(); if (editor == null) { return; } final HectorComponent component = project.getService(HectorComponentFactory.class).create(containingFile.getOriginalFile()); component.showComponent(JBPopupFactory.getInstance().guessBestPopupLocation(editor)); } | applyFix |
6,613 | void (@NotNull PsiReference ref, @NotNull QuickFixActionRegistrar registrar) { if (ref instanceof TagNameReference || ref instanceof AntDomReference) { registrar.register(new AntChangeContextFix()); } } | registerFixes |
6,614 | Class<PsiReference> () { return PsiReference.class; } | getReferenceClass |
6,615 | String () { return AntBundle.message("intention.configure.highlighting.family.name"); } | getFamilyName |
6,616 | boolean (@NotNull final Project project, final Editor editor, final PsiFile file) { //if (!(file instanceof XmlFile)) { // return false; //} //final XmlTag xmlTag = PsiTreeUtil.getParentOfType(file.findElementAt(editor.getCaretModel().getOffset()), XmlTag.class); //if (xmlTag == null) { // return false; //} //final AntDomElement antDomElement = AntSupport.getAntDomElement(xmlTag); //if (antDomElement == null) { // return false; //} return true; } | isAvailable |
6,617 | boolean () { return false; } | startInWriteAction |
6,618 | String () { if (myPropFile != null) { return AntBundle.message("create.property.in.file.quickfix.name", myCanonicalText, myPropFile.getName()); } return AntBundle.message("create.property.quickfix.name", myCanonicalText); } | getName |
6,619 | String () { return AntBundle.message("ant.intention.create.property.family.name"); } | getFamilyName |
6,620 | boolean () { return false; } | startInWriteAction |
6,621 | void (@NotNull Project project, @NotNull ProblemDescriptor descriptor) { final PsiElement psiElement = descriptor.getPsiElement(); final PsiFile containingFile = psiElement.getContainingFile(); final FileModificationService modificationService = FileModificationService.getInstance(); Navigatable result = null; if (myPropFile != null) { final VirtualFile vFile = myPropFile.getVirtualFile(); if (myPropFile instanceof PsiFile) { if (!modificationService.prepareFileForWrite((PsiFile)myPropFile)) { return; } } else if (vFile != null) { if (!modificationService.prepareVirtualFilesForWrite(project, Collections.singleton(vFile))) { return; } } result = WriteAction.compute(() -> { final IProperty generatedProperty = myPropFile.addProperty(myCanonicalText, ""); return vFile != null ? PsiNavigationSupport.getInstance().createNavigatable(project, vFile, generatedProperty.getPsiElement().getTextRange() .getEndOffset()) : generatedProperty; }); } else { if (containingFile instanceof XmlFile xmlFile) { final XmlTag rootTag = xmlFile.getRootTag(); if (!modificationService.prepareFileForWrite(xmlFile)) { return; } if (rootTag != null) { result = WriteAction.compute(() -> { final XmlTag propTag = rootTag.createChildTag(PROPERTY, rootTag.getNamespace(), null, false); propTag.setAttribute(NAME_ATTR, myCanonicalText); propTag.setAttribute(VALUE_ATTR, ""); final DomElement contextElement = DomUtil.getDomElement(descriptor.getPsiElement()); PsiElement generated; if (contextElement == null) { generated = rootTag.addSubTag(propTag, true); } else { final AntDomTarget containingTarget = contextElement.getParentOfType(AntDomTarget.class, false); final DomElement anchor = containingTarget != null ? containingTarget : contextElement; final XmlTag tag = anchor.getXmlTag(); if (!rootTag.equals(tag)) { generated = tag.getParent().addBefore(propTag, tag); } else { generated = rootTag.addSubTag(propTag, true); } } Navigatable navigatable = null; if (generated instanceof XmlTag) { final XmlAttribute valueAttrib = ((XmlTag)generated).getAttribute(VALUE_ATTR); if (valueAttrib != null) { final XmlAttributeValue valueElement = valueAttrib.getValueElement(); if (valueElement instanceof Navigatable) { navigatable = (Navigatable)valueElement; } } } if (navigatable == null && generated instanceof Navigatable) { navigatable = (Navigatable)generated; } return navigatable; }); } } } if (result != null) { result.navigate(true); } } | applyFix |
6,622 | String (PsiElement elem) { final VirtualFile helpFile = getHelpFile(elem); if (helpFile != null) { try { return VfsUtilCore.loadText(helpFile); } catch (IOException ignored) { } } return null; } | getMainDocumentation |
6,623 | String (PsiElement elem) { final XmlTag xmlTag = PsiTreeUtil.getParentOfType(elem, XmlTag.class); if (xmlTag == null) { return null; } final AntDomElement antElement = AntSupport.getAntDomElement(xmlTag); if (antElement instanceof AntFilesProvider) { final List<File> list = ((AntFilesProvider)antElement).getFiles(new HashSet<>()); if (list.size() > 0) { final @NonNls StringBuilder builder = new StringBuilder(); final XmlTag tag = antElement.getXmlTag(); if (tag != null) { builder.append("<b>"); builder.append(tag.getName()); builder.append(":</b>"); } for (File file : list) { if (builder.length() > 0) { builder.append("<br>"); } builder.append(file.getPath()); } return builder.toString(); } } return null; } | getAdditionalDocumentation |
6,624 | VirtualFile (final PsiElement element) { final XmlTag xmlTag = PsiTreeUtil.getParentOfType(element, XmlTag.class); if (xmlTag == null) { return null; } final AntDomElement antElement = AntSupport.getAntDomElement(xmlTag); if (antElement == null) { return null; } final AntDomProject antProject = antElement.getAntProject(); if (antProject == null) { return null; } final AntInstallation installation = antProject.getAntInstallation(); if (installation == null) { return null; // not configured properly and bundled installation missing } final String antHomeDir = AntInstallation.HOME_DIR.get(installation.getProperties()); if (antHomeDir == null) { return null; } @NonNls String path = antHomeDir + "/docs/manual"; String url; if (new File(path).exists()) { url = VirtualFileManager.constructUrl(LocalFileSystem.PROTOCOL, FileUtil.toSystemIndependentName(path)); } else { path = antHomeDir + "/docs.zip"; if (new File(path).exists()) { url = VirtualFileManager.constructUrl(JarFileSystem.PROTOCOL, FileUtil.toSystemIndependentName(path) + JarFileSystem.JAR_SEPARATOR + "docs/manual"); } else { return null; } } final VirtualFile documentationRoot = VirtualFileManager.getInstance().findFileByUrl(url); if (documentationRoot == null) { return null; } return getHelpFile(antElement, documentationRoot); } | getHelpFile |
6,625 | VirtualFile (AntDomElement antElement, final VirtualFile documentationRoot) { final XmlTag xmlTag = antElement.getXmlTag(); if (xmlTag == null) { return null; } @NonNls final String helpFileShortName = "/" + xmlTag.getName() + ".html"; for (String folderName : DOC_FOLDER_NAMES) { final VirtualFile candidateHelpFile = documentationRoot.findFileByRelativePath(folderName + helpFileShortName); if (candidateHelpFile != null) { return candidateHelpFile; } } if(antElement instanceof AntDomTarget|| antElement instanceof AntDomProject) { final VirtualFile candidateHelpFile = documentationRoot.findFileByRelativePath("using.html"); if (candidateHelpFile != null) { return candidateHelpFile; } } return null; } | getHelpFile |
6,626 | List<String> (PsiElement element, PsiElement originalElement) { final VirtualFile helpFile = getHelpFile(originalElement); if (helpFile == null || !(helpFile.getFileSystem() instanceof LocalFileSystem)) { return null; } return Collections.singletonList(helpFile.getUrl()); } | getUrlFor |
6,627 | boolean (@NotNull final DataContext dataContext) { final PsiElement[] elements = getElements(dataContext); return elements != null && elements.length > 1; } | isAvailableOnDataContext |
6,628 | void (@NotNull final Project project, final Editor editor, final PsiFile file, @NotNull final DataContext dataContext) { final PsiElement[] elements = getElements(dataContext); if (elements != null && elements.length > 0) { invoke(project, new PsiElement[]{elements[0]}, dataContext); } } | invoke |
6,629 | String () { return SHORT_NAME; } | getShortName |
6,630 | void (@NotNull DomElement element, @NotNull DomElementAnnotationHolder holder, @NotNull DomHighlightingHelper helper) { if (element instanceof AntDomProperty property) { final GenericAttributeValue<PsiFileSystemItem> fileValue = property.getFile(); final String fileName = fileValue.getStringValue(); if (fileName != null) { final PropertiesFile propertiesFile = property.getPropertiesFile(); if (propertiesFile == null) { final PsiFileSystemItem file = fileValue.getValue(); if (file instanceof XmlFile) { holder.createProblem(fileValue, AntBundle.message("file.type.xml.not.supported", fileName)); } else if (file instanceof PsiFile) { holder.createProblem(fileValue, AntBundle.message("file.type.not.supported", fileName)); } else { holder.createProblem(fileValue, AntBundle.message("file.doesnt.exist", fileName)); } } } } } | checkDomElement |
6,631 | boolean () { return !myCombo.isPopupVisible(); } | canClose |
6,632 | JComponent () { final JPanel panel = new JPanel(new GridBagLayout()); panel.setBackground(UIUtil.getToolTipActionBackground()); panel.setBorder(IdeBorderFactory.createTitledBorder(AntBundle.message("configurable.hector.border.title.file.context"), false)); myCombo = new ComboBox<>(); myCombo.putClientProperty(CONTEXTS_COMBO_KEY, Boolean.TRUE); GridBagConstraints constraints = new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.NONE, JBInsets.create(5, 0), 0, 0); panel.add(new JLabel(AntBundle.message("configurable.hector.included.into")), constraints); panel.add( myCombo, new GridBagConstraints(1, 0, 1, 1, 1.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, JBUI.insets(5, 5, 5, 0), 0, 0)); final PsiManager psiManager = PsiManager.getInstance(myProject); final FileBasedIndex fbi = FileBasedIndex.getInstance(); final Collection<VirtualFile> antFiles = fbi.getContainingFiles(AntImportsIndex.INDEX_NAME, AntImportsIndex.ANT_FILES_WITH_IMPORTS_KEY, myFileFilter); for (VirtualFile file : antFiles) { final PsiFile psiFile = psiManager.findFile(file); if (!(psiFile instanceof XmlFile xmlFile)) { continue; } if (!xmlFile.equals(myFile) && AntDomFileDescription.isAntFile(xmlFile)) { final String path = PathUtil.getLocalPath(file); final XmlFile previous = myPathToFileMap.put(path, xmlFile); assert previous == null; } } final List<String> paths = new ArrayList<>(myPathToFileMap.keySet()); paths.sort(Comparator.naturalOrder()); myCombo.addItem(myNoneText); for (@NlsSafe String path : paths) { myCombo.addItem(path); } final AntConfigurationBase antConfig = AntConfigurationBase.getInstance(myProject); final XmlFile currentContext = antConfig.getContextFile(myFile); if (currentContext != null) { final VirtualFile vFile = currentContext.getVirtualFile(); assert vFile != null; final String path = PathUtil.getLocalPath(vFile); if (!FileUtil.pathsEqual(path, myLocalPath)) { myOriginalContext = path; } } myCombo.setSelectedItem(myOriginalContext); return panel; } | createComponent |
6,633 | boolean () { return !FileUtil.pathsEqual(myOriginalContext, (String)myCombo.getSelectedItem()); } | isModified |
6,634 | void () { applyItem((String)myCombo.getSelectedItem()); } | apply |
6,635 | void () { applyItem(myOriginalContext); } | reset |
6,636 | void (@NlsSafe final String contextStr) { XmlFile context = null; if (!myNoneText.equals(contextStr)) { context = myPathToFileMap.get(contextStr); assert context != null; } AntConfigurationBase.getInstance(myProject).setContextFile(myFile, context); } | applyItem |
6,637 | void () { myPathToFileMap.clear(); } | disposeUIResources |
6,638 | HectorComponentPanel (@NotNull final PsiFile file) { if (file instanceof XmlFile && AntDomFileDescription.isAntFile(((XmlFile)file))) { return new AntHectorConfigurable(((XmlFile)file)); } return null; } | createConfigurable |
6,639 | String () { return AntBundle.message("ant.inspections.display.name"); } | getGroupDisplayName |
6,640 | boolean (ExternalAnnotator annotator, PsiFile file) { return annotator instanceof XMLExternalAnnotator && file instanceof XmlFile && ReadAction.compute(() -> AntDomFileDescription.isAntFile((XmlFile)file)); } | isProhibited |
6,641 | void (DomElement element, final DomElementAnnotationHolder holder) { element.accept(new AntDomRecursiveVisitor() { @Override public void visitTypeDef(AntDomTypeDef typedef) { final List<String> errors = typedef.getErrorDescriptions(); if (!errors.isEmpty()) { @Nls final StringBuilder builder = new StringBuilder(); builder.append(AntBundle.message("failed.to.load.types")).append(":"); for (String error : errors) { builder.append("\n").append(error); } createAnnotationOnTag(typedef, builder.toString(), holder); } super.visitTypeDef(typedef); } @Override public void visitAntDomCustomElement(AntDomCustomElement custom) { if (custom.getDefinitionClass() == null) { final AntDomNamedElement declaringElement = custom.getDeclaringElement(); if (declaringElement instanceof AntDomTypeDef) { String failedMessage = AntBundle.message("using.definition.which.type.failed.to.load"); final String error = custom.getLoadError(); if (error != null) { failedMessage = failedMessage + ": " + error; } createAnnotationOnTag(custom, failedMessage, holder); } } super.visitAntDomCustomElement(custom); } }); } | annotate |
6,642 | void (AntDomTypeDef typedef) { final List<String> errors = typedef.getErrorDescriptions(); if (!errors.isEmpty()) { @Nls final StringBuilder builder = new StringBuilder(); builder.append(AntBundle.message("failed.to.load.types")).append(":"); for (String error : errors) { builder.append("\n").append(error); } createAnnotationOnTag(typedef, builder.toString(), holder); } super.visitTypeDef(typedef); } | visitTypeDef |
6,643 | void (AntDomCustomElement custom) { if (custom.getDefinitionClass() == null) { final AntDomNamedElement declaringElement = custom.getDeclaringElement(); if (declaringElement instanceof AntDomTypeDef) { String failedMessage = AntBundle.message("using.definition.which.type.failed.to.load"); final String error = custom.getLoadError(); if (error != null) { failedMessage = failedMessage + ": " + error; } createAnnotationOnTag(custom, failedMessage, holder); } } super.visitAntDomCustomElement(custom); } | visitAntDomCustomElement |
6,644 | void (AntDomElement custom, @InspectionMessage String failedMessage, DomElementAnnotationHolder holder) { final XmlTag tag = custom.getXmlTag(); if (tag == null) { return; } final String name = custom.getXmlElementName(); final TextRange absoluteRange = new TextRange(0, name.length()).shiftRight(tag.getTextRange().getStartOffset() + 1); holder.createProblem(custom, failedMessage); //holder.createErrorAnnotation(absoluteRange, failedMessage); } | createAnnotationOnTag |
6,645 | String () { return SHORT_NAME; } | getShortName |
6,646 | void (@NotNull DomElement element, final @NotNull DomElementAnnotationHolder holder, @NotNull DomHighlightingHelper helper) { if (element instanceof AntDomProject project) { TargetResolver.validateDuplicateTargets(project.getContextAntProject(), new TargetResolver.TargetSink() { @Override public void duplicateTargetDetected(AntDomTarget existingTarget, AntDomTarget duplicatingTarget, String targetEffectiveName) { final AntDomProject existingTargetProj = existingTarget.getAntProject(); final AntDomProject duplucatingTargetProj = duplicatingTarget.getAntProject(); final boolean isFromDifferentFiles = !Comparing.equal(existingTargetProj, duplucatingTargetProj); if (project.equals(existingTargetProj)) { final String duplicatedMessage = isFromDifferentFiles? AntBundle.message("target.is.duplicated.in.imported.file", targetEffectiveName, duplucatingTargetProj != null? duplucatingTargetProj.getName() : "") : AntBundle.message("target.is.duplicated", targetEffectiveName); holder.createProblem(existingTarget.getName(), duplicatedMessage); } if (project.equals(duplucatingTargetProj)) { final String duplicatedMessage = isFromDifferentFiles? AntBundle.message("target.is.duplicated.in.imported.file", targetEffectiveName, existingTargetProj != null? existingTargetProj.getName() : "") : AntBundle.message("target.is.duplicated", targetEffectiveName); holder.createProblem(duplicatingTarget.getName(), duplicatedMessage); } } }); } } | checkDomElement |
6,647 | void (AntDomTarget existingTarget, AntDomTarget duplicatingTarget, String targetEffectiveName) { final AntDomProject existingTargetProj = existingTarget.getAntProject(); final AntDomProject duplucatingTargetProj = duplicatingTarget.getAntProject(); final boolean isFromDifferentFiles = !Comparing.equal(existingTargetProj, duplucatingTargetProj); if (project.equals(existingTargetProj)) { final String duplicatedMessage = isFromDifferentFiles? AntBundle.message("target.is.duplicated.in.imported.file", targetEffectiveName, duplucatingTargetProj != null? duplucatingTargetProj.getName() : "") : AntBundle.message("target.is.duplicated", targetEffectiveName); holder.createProblem(existingTarget.getName(), duplicatedMessage); } if (project.equals(duplucatingTargetProj)) { final String duplicatedMessage = isFromDifferentFiles? AntBundle.message("target.is.duplicated.in.imported.file", targetEffectiveName, existingTargetProj != null? existingTargetProj.getName() : "") : AntBundle.message("target.is.duplicated", targetEffectiveName); holder.createProblem(duplicatingTarget.getName(), duplicatedMessage); } } | duplicateTargetDetected |
6,648 | Icon (@NotNull String path, int cacheKey, int flags) { return IconManager.getInstance().loadRasterizedIcon(path, AntIcons.class.getClassLoader(), cacheKey, flags); } | load |
6,649 | Icon (@NotNull String path, int cacheKey, int flags) { return IconManager.getInstance().loadRasterizedIcon(path, TomlIcons.class.getClassLoader(), cacheKey, flags); } | load |
6,650 | ASTNode (IElementType t, PsiBuilder b) { parseLight(t, b); return b.getTreeBuilt(); } | parse |
6,651 | void (IElementType t, PsiBuilder b) { boolean r; b = adapt_builder_(t, b, this, null); Marker m = enter_section_(b, 0, _COLLAPSE_, null); r = parse_root_(t, b); exit_section_(b, 0, m, t, r, true, TRUE_CONDITION); } | parseLight |
6,652 | boolean (IElementType t, PsiBuilder b) { return parse_root_(t, b, 0); } | parse_root_ |
6,653 | boolean (IElementType t, PsiBuilder b, int l) { return File(b, l + 1); } | parse_root_ |
6,654 | boolean (PsiBuilder b, int l) { if (!recursion_guard_(b, l, "Array")) return false; if (!nextTokenIs(b, L_BRACKET)) return false; boolean r, p; Marker m = enter_section_(b, l, _NONE_, ARRAY, null); r = consumeToken(b, L_BRACKET); p = r; // pin = 1 r = r && report_error_(b, Array_1(b, l + 1)); r = p && consumeToken(b, R_BRACKET) && r; exit_section_(b, l, m, r, p, null); return r || p; } | Array |
6,655 | boolean (PsiBuilder b, int l) { if (!recursion_guard_(b, l, "Array_1")) return false; while (true) { int c = current_position_(b); if (!ArrayElement(b, l + 1)) break; if (!empty_element_parsed_guard_(b, "Array_1", c)) break; } return true; } | Array_1 |
6,656 | boolean (PsiBuilder b, int l) { if (!recursion_guard_(b, l, "ArrayElement")) return false; boolean r, p; Marker m = enter_section_(b, l, _NONE_); r = ArrayElement_0(b, l + 1); p = r; // pin = 1 r = r && report_error_(b, Value(b, l + 1)); r = p && ArrayElement_2(b, l + 1) && r; exit_section_(b, l, m, r, p, TomlParser::ArrayElement_recover); return r || p; } | ArrayElement |
6,657 | boolean (PsiBuilder b, int l) { if (!recursion_guard_(b, l, "ArrayElement_0")) return false; boolean r; Marker m = enter_section_(b, l, _NOT_); r = !consumeToken(b, R_BRACKET); exit_section_(b, l, m, r, false, null); return r; } | ArrayElement_0 |
6,658 | boolean (PsiBuilder b, int l) { if (!recursion_guard_(b, l, "ArrayElement_2")) return false; boolean r; Marker m = enter_section_(b); r = consumeToken(b, COMMA); if (!r) r = ArrayElement_2_1(b, l + 1); exit_section_(b, m, null, r); return r; } | ArrayElement_2 |
6,659 | boolean (PsiBuilder b, int l) { if (!recursion_guard_(b, l, "ArrayElement_2_1")) return false; boolean r; Marker m = enter_section_(b, l, _AND_); r = consumeToken(b, R_BRACKET); exit_section_(b, l, m, r, false, null); return r; } | ArrayElement_2_1 |
6,660 | boolean (PsiBuilder b, int l) { if (!recursion_guard_(b, l, "ArrayElement_recover")) return false; boolean r; Marker m = enter_section_(b, l, _NOT_); r = !ArrayElement_recover_0(b, l + 1); exit_section_(b, l, m, r, false, null); return r; } | ArrayElement_recover |
6,661 | boolean (PsiBuilder b, int l) { if (!recursion_guard_(b, l, "ArrayElement_recover_0")) return false; boolean r; r = consumeTokenFast(b, R_BRACKET); if (!r) r = Value_first(b, l + 1); return r; } | ArrayElement_recover_0 |
6,662 | boolean (PsiBuilder b, int l) { if (!recursion_guard_(b, l, "ArrayTable")) return false; if (!nextTokenIs(b, L_BRACKET)) return false; boolean r; Marker m = enter_section_(b); r = ArrayTableHeader(b, l + 1); r = r && ArrayTable_1(b, l + 1); exit_section_(b, m, ARRAY_TABLE, r); return r; } | ArrayTable |
6,663 | boolean (PsiBuilder b, int l) { if (!recursion_guard_(b, l, "ArrayTable_1")) return false; while (true) { int c = current_position_(b); if (!NewLineKeyValue(b, l + 1)) break; if (!empty_element_parsed_guard_(b, "ArrayTable_1", c)) break; } return true; } | ArrayTable_1 |
6,664 | boolean (PsiBuilder b, int l) { if (!recursion_guard_(b, l, "ArrayTableHeader")) return false; boolean r, p; Marker m = enter_section_(b, l, _NONE_, TABLE_HEADER, "<array table header>"); r = consumeTokens(b, 2, L_BRACKET, L_BRACKET); p = r; // pin = 2 r = r && report_error_(b, Key(b, l + 1)); r = p && report_error_(b, consumeTokens(b, -1, R_BRACKET, R_BRACKET)) && r; exit_section_(b, l, m, r, p, TomlParser::EatUntilNextLine_recover); return r || p; } | ArrayTableHeader |
6,665 | boolean (PsiBuilder b, int l) { if (!recursion_guard_(b, l, "BareKey")) return false; boolean r; Marker m = enter_section_(b); r = consumeToken(b, BARE_KEY); if (!r) r = remap(b, l + 1, BARE_KEY_OR_NUMBER, BARE_KEY); if (!r) r = remap(b, l + 1, BARE_KEY_OR_DATE, BARE_KEY); exit_section_(b, m, null, r); return r; } | BareKey |
6,666 | boolean (PsiBuilder b, int l) { if (!recursion_guard_(b, l, "Date")) return false; boolean r; Marker m = enter_section_(b); r = remap(b, l + 1, BARE_KEY_OR_DATE, DATE_TIME); if (!r) r = consumeToken(b, DATE_TIME); exit_section_(b, m, null, r); return r; } | Date |
6,667 | boolean (PsiBuilder b, int l) { if (!recursion_guard_(b, l, "EatUntilNextLine_recover")) return false; boolean r; Marker m = enter_section_(b, l, _NOT_); r = !atNewLine(b, l + 1, EatUntilNextLine_recover_0_0_parser_); exit_section_(b, l, m, r, false, null); return r; } | EatUntilNextLine_recover |
6,668 | boolean (PsiBuilder b, int l) { if (!recursion_guard_(b, l, "File")) return false; while (true) { int c = current_position_(b); if (!FileForm(b, l + 1)) break; if (!empty_element_parsed_guard_(b, "File", c)) break; } return true; } | File |
6,669 | boolean (PsiBuilder b, int l) { if (!recursion_guard_(b, l, "FileForm")) return false; boolean r; Marker m = enter_section_(b, l, _NONE_); r = NewLineKeyValue(b, l + 1); if (!r) r = ArrayTable(b, l + 1); if (!r) r = Table(b, l + 1); exit_section_(b, l, m, r, false, TomlParser::FileForm_recover); return r; } | FileForm |
6,670 | boolean (PsiBuilder b, int l) { if (!recursion_guard_(b, l, "FileForm_recover")) return false; boolean r; Marker m = enter_section_(b, l, _NOT_); r = !atNewLine(b, l + 1, TomlParser::FileForm_recover_0_0); exit_section_(b, l, m, r, false, null); return r; } | FileForm_recover |
6,671 | boolean (PsiBuilder b, int l) { if (!recursion_guard_(b, l, "FileForm_recover_0_0")) return false; boolean r; r = consumeToken(b, BARE_KEY); if (!r) r = consumeToken(b, BARE_KEY_OR_NUMBER); if (!r) r = consumeToken(b, BARE_KEY_OR_DATE); if (!r) r = consumeToken(b, BASIC_STRING); if (!r) r = consumeToken(b, LITERAL_STRING); if (!r) r = consumeToken(b, L_BRACKET); return r; } | FileForm_recover_0_0 |
6,672 | boolean (PsiBuilder b, int l) { if (!recursion_guard_(b, l, "InlineTable")) return false; if (!nextTokenIs(b, L_CURLY)) return false; boolean r, p; Marker m = enter_section_(b, l, _NONE_, INLINE_TABLE, null); r = consumeToken(b, L_CURLY); p = r; // pin = 1 r = r && report_error_(b, InlineTable_1(b, l + 1)); r = p && consumeToken(b, R_CURLY) && r; exit_section_(b, l, m, r, p, null); return r || p; } | InlineTable |
6,673 | boolean (PsiBuilder b, int l) { if (!recursion_guard_(b, l, "InlineTable_1")) return false; while (true) { int c = current_position_(b); if (!InlineTableElement(b, l + 1)) break; if (!empty_element_parsed_guard_(b, "InlineTable_1", c)) break; } return true; } | InlineTable_1 |
6,674 | boolean (PsiBuilder b, int l) { if (!recursion_guard_(b, l, "InlineTableElement")) return false; boolean r, p; Marker m = enter_section_(b, l, _NONE_); r = KeyValue(b, l + 1); p = r; // pin = 1 r = r && InlineTableElement_1(b, l + 1); exit_section_(b, l, m, r, p, null); return r || p; } | InlineTableElement |
6,675 | boolean (PsiBuilder b, int l) { if (!recursion_guard_(b, l, "InlineTableElement_1")) return false; boolean r; Marker m = enter_section_(b); r = consumeToken(b, COMMA); if (!r) r = InlineTableElement_1_1(b, l + 1); exit_section_(b, m, null, r); return r; } | InlineTableElement_1 |
6,676 | boolean (PsiBuilder b, int l) { if (!recursion_guard_(b, l, "InlineTableElement_1_1")) return false; boolean r; Marker m = enter_section_(b, l, _AND_); r = consumeToken(b, R_CURLY); exit_section_(b, l, m, r, false, null); return r; } | InlineTableElement_1_1 |
6,677 | boolean (PsiBuilder b, int l) { if (!recursion_guard_(b, l, "Key")) return false; boolean r; Marker m = enter_section_(b, l, _NONE_, KEY, "<key>"); r = KeySegment(b, l + 1); r = r && Key_1(b, l + 1); exit_section_(b, l, m, r, false, null); return r; } | Key |
6,678 | boolean (PsiBuilder b, int l) { if (!recursion_guard_(b, l, "Key_1")) return false; while (true) { int c = current_position_(b); if (!Key_1_0(b, l + 1)) break; if (!empty_element_parsed_guard_(b, "Key_1", c)) break; } return true; } | Key_1 |
6,679 | boolean (PsiBuilder b, int l) { if (!recursion_guard_(b, l, "Key_1_0")) return false; boolean r; Marker m = enter_section_(b); r = consumeToken(b, DOT); r = r && KeySegment(b, l + 1); exit_section_(b, m, null, r); return r; } | Key_1_0 |
6,680 | boolean (PsiBuilder b, int l) { if (!recursion_guard_(b, l, "KeySegment")) return false; boolean r; Marker m = enter_section_(b, l, _NONE_, KEY_SEGMENT, "<key segment>"); r = BareKey(b, l + 1); if (!r) r = consumeToken(b, BASIC_STRING); if (!r) r = consumeToken(b, LITERAL_STRING); exit_section_(b, l, m, r, false, null); return r; } | KeySegment |
6,681 | boolean (PsiBuilder b, int l) { if (!recursion_guard_(b, l, "KeyValue")) return false; boolean r, p; Marker m = enter_section_(b, l, _NONE_, KEY_VALUE, "<key value>"); r = Key(b, l + 1); p = r; // pin = 1 r = r && report_error_(b, consumeToken(b, EQ)); r = p && atSameLine(b, l + 1, TomlParser::Value) && r; exit_section_(b, l, m, r, p, null); return r || p; } | KeyValue |
6,682 | boolean (PsiBuilder b, int l) { if (!recursion_guard_(b, l, "Literal")) return false; boolean r; Marker m = enter_section_(b, l, _NONE_, LITERAL, "<literal>"); r = Number(b, l + 1); if (!r) r = Date(b, l + 1); if (!r) r = consumeToken(b, BOOLEAN); if (!r) r = consumeToken(b, BASIC_STRING); if (!r) r = consumeToken(b, LITERAL_STRING); if (!r) r = consumeToken(b, MULTILINE_BASIC_STRING); if (!r) r = consumeToken(b, MULTILINE_LITERAL_STRING); exit_section_(b, l, m, r, false, null); return r; } | Literal |
6,683 | boolean (PsiBuilder b, int l) { if (!recursion_guard_(b, l, "NewLineKeyValue")) return false; boolean r; Marker m = enter_section_(b, l, _COLLAPSE_, KEY_VALUE, "<new line key value>"); r = atNewLine(b, l + 1, TomlParser::KeyValue); exit_section_(b, l, m, r, false, TomlParser::EatUntilNextLine_recover); return r; } | NewLineKeyValue |
6,684 | boolean (PsiBuilder b, int l) { if (!recursion_guard_(b, l, "Number")) return false; boolean r; Marker m = enter_section_(b); r = remap(b, l + 1, BARE_KEY_OR_NUMBER, NUMBER); if (!r) r = consumeToken(b, NUMBER); exit_section_(b, m, null, r); return r; } | Number |
6,685 | boolean (PsiBuilder b, int l) { if (!recursion_guard_(b, l, "Table")) return false; if (!nextTokenIs(b, L_BRACKET)) return false; boolean r; Marker m = enter_section_(b); r = TableHeader(b, l + 1); r = r && Table_1(b, l + 1); exit_section_(b, m, TABLE, r); return r; } | Table |
6,686 | boolean (PsiBuilder b, int l) { if (!recursion_guard_(b, l, "Table_1")) return false; while (true) { int c = current_position_(b); if (!NewLineKeyValue(b, l + 1)) break; if (!empty_element_parsed_guard_(b, "Table_1", c)) break; } return true; } | Table_1 |
6,687 | boolean (PsiBuilder b, int l) { if (!recursion_guard_(b, l, "TableHeader")) return false; boolean r, p; Marker m = enter_section_(b, l, _NONE_, TABLE_HEADER, "<table header>"); r = consumeToken(b, L_BRACKET); p = r; // pin = 1 r = r && report_error_(b, Key(b, l + 1)); r = p && consumeToken(b, R_BRACKET) && r; exit_section_(b, l, m, r, p, TomlParser::EatUntilNextLine_recover); return r || p; } | TableHeader |
6,688 | boolean (PsiBuilder b, int l) { if (!recursion_guard_(b, l, "Value")) return false; boolean r; r = Literal(b, l + 1); if (!r) r = Array(b, l + 1); if (!r) r = InlineTable(b, l + 1); return r; } | Value |
6,689 | boolean (PsiBuilder b, int l) { if (!recursion_guard_(b, l, "Value_first")) return false; boolean r; r = consumeToken(b, BARE_KEY_OR_NUMBER); if (!r) r = consumeToken(b, NUMBER); if (!r) r = consumeToken(b, BARE_KEY_OR_DATE); if (!r) r = consumeToken(b, DATE_TIME); if (!r) r = consumeToken(b, BOOLEAN); if (!r) r = consumeToken(b, BASIC_STRING); if (!r) r = consumeToken(b, LITERAL_STRING); if (!r) r = consumeToken(b, MULTILINE_BASIC_STRING); if (!r) r = consumeToken(b, MULTILINE_LITERAL_STRING); if (!r) r = consumeToken(b, L_BRACKET); if (!r) r = consumeToken(b, L_CURLY); return r; } | Value_first |
6,690 | int (String packed, int offset, int [] result) { int i = 0; /* index in packed string */ int j = offset; /* index in unpacked array */ int l = packed.length(); while (i < l) { int count = packed.charAt(i++); int value = packed.charAt(i++); do result[j++] = value; while (--count > 0); } return j; } | zzUnpackcmap_top |
6,691 | int (String packed, int offset, int [] result) { int i = 0; /* index in packed string */ int j = offset; /* index in unpacked array */ int l = packed.length(); while (i < l) { int count = packed.charAt(i++); int value = packed.charAt(i++); do result[j++] = value; while (--count > 0); } return j; } | zzUnpackcmap_blocks |
6,692 | int (String packed, int offset, int [] result) { int i = 0; /* index in packed string */ int j = offset; /* index in unpacked array */ int l = packed.length(); while (i < l) { int count = packed.charAt(i++); int value = packed.charAt(i++); do result[j++] = value; while (--count > 0); } return j; } | zzUnpackAction |
6,693 | int (String packed, int offset, int [] result) { int i = 0; /* index in packed string */ int j = offset; /* index in unpacked array */ int l = packed.length() - 1; while (i < l) { int high = packed.charAt(i++) << 16; result[j++] = high | packed.charAt(i++); } return j; } | zzUnpackRowMap |
6,694 | int (String packed, int offset, int [] result) { int i = 0; /* index in packed string */ int j = offset; /* index in unpacked array */ int l = packed.length(); while (i < l) { int count = packed.charAt(i++); int value = packed.charAt(i++); value--; do result[j++] = value; while (--count > 0); } return j; } | zzUnpacktrans |
6,695 | int (String packed, int offset, int [] result) { int i = 0; /* index in packed string */ int j = offset; /* index in unpacked array */ int l = packed.length(); while (i < l) { int count = packed.charAt(i++); int value = packed.charAt(i++); do result[j++] = value; while (--count > 0); } return j; } | zzUnpackAttribute |
6,696 | int () { return Integer.MAX_VALUE; } | zzMaxBufferLen |
6,697 | boolean () { return true; } | zzCanGrow |
6,698 | int (int input) { int offset = input & 255; return offset == input ? ZZ_CMAP_BLOCKS[offset] : ZZ_CMAP_BLOCKS[ZZ_CMAP_TOP[input >> 8] | offset]; } | zzCMap |
6,699 | int () { return zzStartRead; } | getTokenStart |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.