Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
299,400 | boolean (@NotNull XmlElement element, @NotNull PsiElementProcessor<? super PsiElement> processor, boolean deepFlag) { return XmlPsiUtil.processXmlElements(element, processor, deepFlag); } | processXmlElements |
299,401 | boolean (@NotNull XmlElement element, @NotNull PsiElementProcessor<? super PsiElement> processor, boolean deepFlag, boolean wideFlag) { return XmlPsiUtil.processXmlElements(element, processor, deepFlag, wideFlag); } | processXmlElements |
299,402 | boolean (@NotNull XmlElement element, @NotNull PsiElementProcessor<? super PsiElement> processor, final boolean deepFlag, final boolean wideFlag, final PsiFile baseFile) { return XmlPsiUtil.processXmlElements(element, processor, deepFlag, wideFlag, baseFile); } | processXmlElements |
299,403 | boolean (@NotNull XmlElement element, @NotNull PsiElementProcessor<? super PsiElement> processor, final boolean deepFlag, final boolean wideFlag, final PsiFile baseFile, boolean processIncludes) { return XmlPsiUtil.processXmlElements(element, processor, deepFlag, wideFlag, baseFile, processIncludes); } | processXmlElements |
299,404 | boolean (@NotNull XmlElement element, @NotNull PsiElementProcessor<? super PsiElement> processor, final boolean deepFlag) { return XmlPsiUtil.processXmlElementChildren(element, processor, deepFlag); } | processXmlElementChildren |
299,405 | boolean (final @NotNull XmlTag tag) { final String ns = tag.getNamespace(); return nsFromTemplateFramework(ns); } | tagFromTemplateFramework |
299,406 | boolean (final String ns) { return XSLT_URI.equals(ns) || XINCLUDE_URI.equals(ns); } | nsFromTemplateFramework |
299,407 | char (@NonNls @NotNull String text) { try { if (text.charAt(1) != '#') { text = text.substring(1, text.length() - 1); char c = XmlTagUtil.getCharacterByEntityName(text); if (c == 0) { LOG.error("Unknown entity: " + text); } return c == 0 ? ' ' : c; } text = text.substring(2, text.length() - 1); } catch (StringIndexOutO... | getCharFromEntityRef |
299,408 | boolean (final @NonNls String name, final XmlTag tag) { return "jsfc".equals(name) && isJsfHtmlScheme(tag); } | attributeFromTemplateFramework |
299,409 | boolean (final PsiFile file) { if (file instanceof XmlFile xmlFile) { final XmlDocument document = xmlFile.getDocument(); if (document != null) { final XmlTag tag = document.getRootTag(); if (tag != null && "project".equals(tag.getName()) && tag.getContext() instanceof XmlDocument) { if (tag.getAttributeValue("default"... | isAntFile |
299,410 | boolean (XmlTag tag) { for (String jsfHtmlUri : JSF_HTML_URIS) { if (tag.getNSDescriptor(jsfHtmlUri, true) != null) { return true; } } return false; } | isJsfHtmlScheme |
299,411 | void (XmlTag tag) { ASTNode child = XmlChildRole.START_TAG_END_FINDER.findChild(tag.getNode()); if (child == null) { CodeStyleManager.getInstance(tag.getProject()).reformat(tag); } else { CodeStyleManager.getInstance(tag.getProject()) .reformatRange(tag, tag.getTextRange().getStartOffset(), child.getTextRange().getEndO... | reformatTagStart |
299,412 | void (@NotNull XmlTag tag) { XmlTag newTag = XmlElementFactory.getInstance(tag.getProject()).createTagFromText('<' + tag.getName() + "></" + tag.getName() + '>'); ASTNode node = tag.getNode(); if (!(node instanceof CompositeElement compositeElement)) return; final LeafElement emptyTagEnd = (LeafElement)XmlChildRole.EMP... | expandTag |
299,413 | String (Project project) { final String doctype = ExternalResourceManagerEx.getInstanceEx().getDefaultHtmlDoctype(project); return Html5SchemaProvider.getHtml5SchemaLocation().equals(doctype) ? Html5SchemaProvider.getXhtml5SchemaLocation() : doctype; } | getDefaultXhtmlNamespace |
299,414 | CharSequence (final CharSequence tagName) { int pos = StringUtil.indexOf(tagName, ':'); if (pos == -1) { return tagName; } return tagName.subSequence(pos + 1, tagName.length()); } | getLocalName |
299,415 | boolean () { return BUILDING_DOM_STUBS.get(); } | isStubBuilding |
299,416 | String (String id) { if (id.contains("XHTML")) { if (id.contains("1.1")) { if (id.contains("Basic")) { return "http://www.w3.org/TR/xhtml-basic/xhtml-basic11.dtd"; } return "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"; } else { if (id.contains("Strict")) { return "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"; }... | guessDtdByPublicId |
299,417 | void (XmlTag tag, final Map<String, List<String>> tagsMap, final Map<String, List<MyAttributeInfo>> attributesMap, final boolean processIncludes) { if (tag == null) { return; } final String tagName = tag.getName(); List<MyAttributeInfo> list = attributesMap.get(tagName); if (list == null) { list = new ArrayList<>(); fi... | computeTag |
299,418 | void (PsiElement element) { XmlTag tag = (XmlTag)element; if (!tags.contains(tag.getName())) { tags.add(tag.getName()); } computeTag(tag, tagsMap, attributesMap, processIncludes); } | add |
299,419 | void (PsiElement element) { XmlTag tag = (XmlTag)element; if (!tags.contains(tag.getName())) { tags.add(tag.getName()); } computeTag(tag, tagsMap, attributesMap); } | add |
299,420 | boolean (final XmlTag element, final HashSet<? super String> variants) { return processEnumerationValues(element, xmlTag -> { variants.add(xmlTag.getAttributeValue(VALUE_ATTR_NAME)); return true; }); } | collectEnumerationValues |
299,421 | boolean (final XmlTag element, final Processor<? super XmlTag> tagProcessor) { return processEnumerationValues(element, tagProcessor, new HashSet<>()); } | processEnumerationValues |
299,422 | boolean (XmlTag element, Processor<? super XmlTag> tagProcessor, Set<? super XmlTag> visited) { if (!visited.add(element)) return true; boolean exhaustiveEnum = true; for (final XmlTag tag : element.getSubTags()) { final @NonNls String localName = tag.getLocalName(); if (localName.equals(ENUMERATION_TAG_NAME)) { final ... | processEnumerationValues |
299,423 | XmlTag (@NotNull XmlTag xmlTag, @NotNull String localName, @Nullable String namespace, @Nullable String bodyText, boolean enforceNamespacesDeep, @NotNull Function<String, XmlTag> tagFromTextFactory) { String qname; final String prefix = xmlTag.getPrefixByNamespace(namespace); if (prefix != null && !prefix.isEmpty()) { ... | createChildTag |
299,424 | void (@NotNull XmlTag tag) { final String namespacePrefix = tag.getNamespacePrefix(); if (namespacePrefix.isEmpty()) { String qname; if (prefix != null && !prefix.isEmpty()) { qname = prefix + ":" + tag.getLocalName(); } else { qname = tag.getLocalName(); } try { tag.setName(qname); } catch (IncorrectOperationException... | visitXmlTag |
299,425 | boolean (final @NotNull String unquotedValue, final PsiElement context) { for (int i = 0; i < unquotedValue.length(); ++i) { final char ch = unquotedValue.charAt(i); if (!Character.isJavaIdentifierPart(ch) && ch != ':' && ch != '-') { final XmlFile file = PsiTreeUtil.getParentOfType(context, XmlFile.class); if (file !=... | isSimpleValue |
299,426 | boolean (@NotNull String str) { for (int i = 0; i < str.length(); i++) { if (toCode(str.charAt(i))) return true; } return false; } | toCode |
299,427 | boolean (char ch) { return "<&>\u00a0".indexOf(ch) >= 0; } | toCode |
299,428 | int (final @NotNull String s) { if (s.startsWith(TAG_DIR_NS_PREFIX)) return TAG_DIR_NS_PREFIX.length(); if (s.startsWith(FILE)) return FILE.length(); if (s.startsWith(CLASSPATH)) return CLASSPATH.length(); return 0; } | getPrefixLength |
299,429 | boolean (final String s, Project project) { final boolean surelyUrl = HtmlUtil.hasHtmlPrefix(s) || s.startsWith(URN); if (surelyUrl) return true; int protocolIndex = s.indexOf(":/"); if (protocolIndex > 1 && !s.regionMatches(0, "classpath", 0, protocolIndex)) return true; return !s.equals(ExternalResourceManager.getIns... | isUrlText |
299,430 | String (XmlDocument doc, boolean full) { final Map<String, List<String>> tags = new LinkedHashMap<>(); final Map<String, List<MyAttributeInfo>> attributes = new LinkedHashMap<>(); final XmlTag rootTag = doc.getRootTag(); computeTag(rootTag, tags, attributes, full); // For supporting not well-formed XML for (PsiElement ... | generateDocumentDTD |
299,431 | String (String name, List<String> tags, List<? extends MyAttributeInfo> attributes) { if (name == null || name.isEmpty()) return ""; if (name.contains(CompletionUtilCore.DUMMY_IDENTIFIER_TRIMMED)) return ""; final @NonNls StringBuilder buffer = new StringBuilder(); buffer.append("<!ELEMENT ").append(name).append(" "); ... | generateElementDTD |
299,432 | String (MyAttributeInfo info) { if (info.myName.contains(CompletionUtilCore.DUMMY_IDENTIFIER_TRIMMED)) return ""; return info.myName + " " + "CDATA" + (info.myRequired ? " #REQUIRED" : " #IMPLIED"); } | generateAttributeDTD |
299,433 | String (final String prefix, XmlTag contextTag) { return contextTag.getNamespaceByPrefix(prefix); } | findNamespaceByPrefix |
299,434 | String (@NotNull String name) { final int prefixEnd = name.indexOf(':'); if (prefixEnd > 0) { return name.substring(0, prefixEnd); } return ""; } | findPrefixByQualifiedName |
299,435 | XmlFile (PsiElement element) { while (!(element instanceof XmlFile) && element != null) { final PsiElement context = element.getContext(); if (context == null) { //todo Dmitry Avdeev: either XmlExtension should work on any PsiFile (not just XmlFile), or you need to handle elements from JspJavaFile in some other way fin... | getContainingFile |
299,436 | String (@NotNull String text) { return StringUtil.unescapeXmlEntities(text); } | unescape |
299,437 | String (@NotNull String text) { return StringUtil.escapeXmlEntities(text); } | escape |
299,438 | boolean (char c) { return Character.isLetter(c) || Character.isDigit(c) || c == ':' || c == '_' || c == '-' || c == '.'; } | isValidTagNameChar |
299,439 | void (PsiReferenceRegistrar registrar, @NonNls String @Nullable [] attributeNames, @Nullable ElementFilter elementFilter, @NotNull PsiReferenceProvider provider) { registerXmlAttributeValueReferenceProvider(registrar, attributeNames, elementFilter, true, provider); } | registerXmlAttributeValueReferenceProvider |
299,440 | void (PsiReferenceRegistrar registrar, @NonNls String @Nullable [] attributeNames, @Nullable ElementFilter elementFilter, boolean caseSensitive, @NotNull PsiReferenceProvider provider) { registerXmlAttributeValueReferenceProvider(registrar, attributeNames, elementFilter, caseSensitive, provider, PsiReferenceRegistrar.D... | registerXmlAttributeValueReferenceProvider |
299,441 | void (PsiReferenceRegistrar registrar, @NonNls String @Nullable [] attributeNames, @Nullable ElementFilter elementFilter, boolean caseSensitive, @NotNull PsiReferenceProvider provider, double priority) { if (attributeNames == null) { registrar.registerReferenceProvider(XmlPatterns.xmlAttributeValue().and(new FilterPatt... | registerXmlAttributeValueReferenceProvider |
299,442 | void (PsiReferenceRegistrar registrar, @NonNls String[] names, @Nullable ElementFilter elementFilter, boolean caseSensitive, @NotNull PsiReferenceProvider provider) { if (names == null) { registrar.registerReferenceProvider(XmlPatterns.xmlTag().and(new FilterPattern(elementFilter)), provider, PsiReferenceRegistrar.DEFA... | registerXmlTagReferenceProvider |
299,443 | XmlFile (@NotNull XmlTag tag, @NotNull XmlFile containingFile) { final XmlElementDescriptor descriptor = tag.getDescriptor(); final XmlNSDescriptor nsDescriptor = descriptor != null ? descriptor.getNSDescriptor() : null; XmlFile descriptorFile = nsDescriptor != null ? nsDescriptor.getDescriptorFile() : containingFile.g... | findDescriptorFile |
299,444 | boolean (final @NotNull XmlTag xmlTag) { final XmlNSDescriptor nsDescriptor = xmlTag.getNSDescriptor(xmlTag.getNamespace(), false); final XmlElementDescriptor descriptor = nsDescriptor != null ? nsDescriptor.getElementDescriptor(xmlTag) : null; return descriptor != null && !(descriptor instanceof AnyXmlElementDescripto... | isTagDefinedByNamespace |
299,445 | boolean (@NotNull XmlAttribute attribute, int offset) { InjectedLanguageManager manager = InjectedLanguageManager.getInstance(attribute.getProject()); PsiElement host = manager.getInjectionHost(attribute); if (host == null) return false; Document doc = PsiDocumentManager.getInstance(attribute.getProject()).getDocument(... | hasNonEditableInjectionFragmentAt |
299,446 | boolean (@NotNull PsiFile file) { if (InjectedLanguageManager.getInstance(file.getProject()).getInjectionHost(file) == null) return true; var language = file.getLanguage(); return language instanceof HTMLLanguage && language != HTMLLanguage.INSTANCE; } | isNotInjectedOrCustomHtmlFile |
299,447 | int (Object o) { if (o instanceof MyAttributeInfo) { return myName.compareTo(((MyAttributeInfo)o).myName); } else if (o instanceof XmlAttribute) { return myName.compareTo(((XmlAttribute)o).getName()); } return -1; } | compareTo |
299,448 | boolean (PsiElement element) { if (element instanceof XmlTag xmlTag) { if (xmlTag.getParent() instanceof XmlDocument) return false; if (xmlTag.getLocalName().equals(INCLUDE_TAG_NAME) && xmlTag.getAttributeValue("href") != null) { if (xmlTag.getNamespace().equals(XmlPsiUtil.XINCLUDE_URI)) { return true; } } } return fal... | isXInclude |
299,449 | String (String baseId) { return myExternalResourcesMap.get(baseId); } | getPathByPublicId |
299,450 | String[] () { return ArrayUtilRt.toStringArray(myExternalResourcesMap.values()); } | getResourcePaths |
299,451 | PsiFile (String baseSystemId) { PsiFile baseFile = resolve(null, baseSystemId); if (baseFile != null) return baseFile; // Find relative to myFile File workingFile = new File(""); String workingDir = workingFile.getAbsoluteFile().getAbsolutePath().replace(File.separatorChar, '/'); VirtualFile parent = myFile.getVirtualF... | getBaseFile |
299,452 | XMLInputSource (XMLResourceIdentifier xmlResourceIdentifier, String publicId, String defaultText) { try { myErrorReporter.processError( new SAXParseException(XmlPsiBundle.message("xml.inspections.validate.external.resource.is.not.registered", publicId), publicId, null, 0, 0), ValidateXmlActionHandler.ProblemType.ERROR)... | reportUnresolvedUrl |
299,453 | boolean (@NotNull String url) { try { String protocol = new URL(url).getProtocol(); return protocol.equals("http") || protocol.equals("https"); } catch (MalformedURLException e) { return false; } } | isHttpUrl |
299,454 | PsiFile (PsiFile baseFile, String location) { if (baseFile instanceof XmlFile) { XmlTag tag = ((XmlFile)baseFile).getRootTag(); if (tag != null) { XmlAttribute attribute = tag.getAttribute("schemaLocation", XmlUtil.XML_SCHEMA_INSTANCE_URI); if (attribute != null) { XmlAttributeValue element = attribute.getValueElement(... | resolveByLocation |
299,455 | void (final boolean stopOnUnDeclaredResource) { myStopOnUnDeclaredResource = stopOnUnDeclaredResource; } | setStopOnUnDeclaredResource |
299,456 | void (XmlNSDescriptor descriptor) { sequence.add(descriptor); } | add |
299,457 | XmlElementDescriptor (@NotNull XmlTag tag) { for (XmlNSDescriptor descriptor : sequence) { final XmlElementDescriptor elementDescriptor = descriptor.getElementDescriptor(tag); if (elementDescriptor != null) return elementDescriptor; } return null; } | getElementDescriptor |
299,458 | XmlFile () { for (XmlNSDescriptor descriptor : sequence) { final XmlFile file = descriptor.getDescriptorFile(); if (file != null) return file; } return null; } | getDescriptorFile |
299,459 | List<XmlNSDescriptor> () { return sequence; } | getSequence |
299,460 | PsiElement () { for (XmlNSDescriptor descriptor : sequence) { final PsiElement declaration = descriptor.getDeclaration(); if (declaration != null) return declaration; } return null; } | getDeclaration |
299,461 | String (PsiElement context) { for (XmlNSDescriptor descriptor : sequence) { final String name = descriptor.getName(context); if (name != null) return name; } return null; } | getName |
299,462 | String () { for (XmlNSDescriptor descriptor : sequence) { final String name = descriptor.getName(); if (name != null) return name; } return null; } | getName |
299,463 | void (PsiElement element) { for (XmlNSDescriptor descriptor : sequence) { descriptor.init(element); } } | init |
299,464 | XmlElement () { return getOriginal().getNameElement(); } | getNameElement |
299,465 | XmlTag () { return (XmlTag)super.getParent(); } | getParent |
299,466 | String () { return getOriginal().getValue(); } | getValue |
299,467 | String () { return getOriginal().getDisplayValue(); } | getDisplayValue |
299,468 | int (int offset) { return getOriginal().physicalToDisplay(offset); } | physicalToDisplay |
299,469 | int (int offset) { return getOriginal().displayToPhysical(offset); } | displayToPhysical |
299,470 | TextRange () { return getOriginal().getValueTextRange(); } | getValueTextRange |
299,471 | boolean () { return getOriginal().isNamespaceDeclaration(); } | isNamespaceDeclaration |
299,472 | boolean (@NotNull XmlTag tag, boolean toLowerCase) { final String name = tag.getName(); boolean result = EMPTY_TAGS_MAP.contains(!toLowerCase || tag.isCaseSensitive() ? name : StringUtil.toLowerCase(name)); return result && !XmlCustomElementDescriptor.isCustomElement(tag); } | isSingleHtmlTag |
299,473 | boolean (String tagName, boolean caseSensitive) { return EMPTY_TAGS_MAP.contains(caseSensitive ? tagName : StringUtil.toLowerCase(tagName)); } | isSingleHtmlTag |
299,474 | boolean (String tagName) { return isSingleHtmlTag(tagName, false); } | isSingleHtmlTag |
299,475 | boolean (@NotNull String tagName, boolean caseSensitive) { return OPTIONAL_END_TAGS_MAP.contains(caseSensitive ? tagName : StringUtil.toLowerCase(tagName)); } | isTagWithOptionalEnd |
299,476 | ThreeState (@NotNull String tagToClose, @NotNull String openingTag, boolean caseSensitive) { var normalizedTagToClose = caseSensitive ? tagToClose : StringUtil.toLowerCase(tagToClose); var normalizedOpeningTag = caseSensitive ? openingTag : StringUtil.toLowerCase(openingTag); if (!isTagWithOptionalEnd(normalizedTagToCl... | canOpeningTagAutoClose |
299,477 | boolean (@NotNull String tagToClose, @NotNull String closingTag, boolean caseSensitive) { var normalizedTagToClose = caseSensitive ? tagToClose : StringUtil.toLowerCase(tagToClose); var normalizedClosingTag = caseSensitive ? closingTag : StringUtil.toLowerCase(closingTag); if (!isTagWithOptionalEnd(normalizedTagToClose... | canClosingTagAutoClose |
299,478 | boolean (String tagName, boolean caseSensitive) { return BLOCK_TAGS_MAP.contains(caseSensitive ? tagName : StringUtil.toLowerCase(tagName)); } | isHtmlBlockTag |
299,479 | boolean (String tagName) { return isHtmlBlockTag(tagName, false); } | isHtmlBlockTag |
299,480 | boolean (@NotNull String tagName) { return POSSIBLY_INLINE_TAGS_MAP.contains(tagName); } | isPossiblyInlineTag |
299,481 | boolean (String tagName, boolean caseSensitive) { return INLINE_ELEMENTS_CONTAINER_MAP.contains(caseSensitive ? tagName : StringUtil.toLowerCase(tagName)); } | isInlineTagContainer |
299,482 | void (final XmlElementDescriptor descriptor, final XmlTag element, final List<? super XmlElementDescriptor> variants) { // add html block completions for tags with optional ends! String name = descriptor.getName(element); if (name != null && isTagWithOptionalEnd(name, false)) { PsiElement parent = element.getParent(); ... | addHtmlSpecificCompletions |
299,483 | boolean () { return Registry.is("html.prefer.short.notation.of.boolean.attributes", true); } | isShortNotationOfBooleanAttributePreferred |
299,484 | void (boolean value, Disposable parent) { final boolean oldValue = isShortNotationOfBooleanAttributePreferred(); final RegistryValue registryValue = Registry.get("html.prefer.short.notation.of.boolean.attributes"); registryValue.setValue(value); Disposer.register(parent, new Disposable() { @Override public void dispose... | setShortNotationOfBooleanAttributeIsPreferred |
299,485 | void () { registryValue.setValue(oldValue); } | dispose |
299,486 | boolean (@NotNull XmlAttributeDescriptor descriptor, @Nullable PsiElement context) { if (descriptor.isEnumerated()) { final String[] values = descriptor.getEnumeratedValues(); if (values == null) { return false; } if (values.length == 2) { return values[0].isEmpty() && values[1].equals(descriptor.getName()) || values[1... | isBooleanAttribute |
299,487 | boolean (@NotNull String attributeName, @NotNull PsiElement context) { final String entitiesString = getEntitiesString(context, XmlEntitiesInspection.BOOLEAN_ATTRIBUTE_SHORT_NAME); if (entitiesString != null) { StringTokenizer tokenizer = new StringTokenizer(entitiesString, ","); while (tokenizer.hasMoreElements()) { i... | isCustomBooleanAttribute |
299,488 | XmlAttributeDescriptor[] (PsiElement context) { String entitiesString = getEntitiesString(context, XmlEntitiesInspection.ATTRIBUTE_SHORT_NAME); if (entitiesString == null) return XmlAttributeDescriptor.EMPTY; StringTokenizer tokenizer = new StringTokenizer(entitiesString, ","); XmlAttributeDescriptor[] descriptors = ne... | getCustomAttributeDescriptors |
299,489 | String (PsiElement context) { return customName; } | getName |
299,490 | String () { return customName; } | getName |
299,491 | XmlElementDescriptor[] (@Nullable PsiElement context) { String entitiesString = getEntitiesString(context, XmlEntitiesInspection.TAG_SHORT_NAME); if (entitiesString == null) return XmlElementDescriptor.EMPTY_ARRAY; StringTokenizer tokenizer = new StringTokenizer(entitiesString, ","); XmlElementDescriptor[] descriptors ... | getCustomTagDescriptors |
299,492 | XmlAttributeDescriptor[] (final XmlTag declarationTag, XmlAttributeDescriptor[] descriptors, final XmlAttribute context) { if (declarationTag instanceof HtmlTag) { descriptors = ArrayUtil.mergeArrays( descriptors, getCustomAttributeDescriptors(context) ); return descriptors; } boolean isJsfHtmlNamespace = false; for (S... | appendHtmlSpecificAttributeCompletions |
299,493 | String (PsiElement context) { return JSFC; } | getName |
299,494 | String () { return JSFC; } | getName |
299,495 | boolean (XmlDocument doc) { if (doc == null) { return false; } XmlProlog prolog = doc.getProlog(); XmlDoctype doctype = prolog != null ? prolog.getDoctype() : null; final PsiFile htmlFile = doc.getContainingFile(); final String htmlFileFullName; if (htmlFile != null) { final VirtualFile vFile = htmlFile.getVirtualFile(... | isHtml5Document |
299,496 | boolean (XmlDoctype doctype) { return doctype.getDtdUri() == null && doctype.getPublicId() == null && doctype.getMarkupDecl() == null; } | isHtml5Doctype |
299,497 | boolean (XmlElement context) { XmlDocument doc = PsiTreeUtil.getParentOfType(context, XmlDocument.class); if (doc == null && context != null) { return Html5SchemaProvider.getHtml5SchemaLocation() .equals(ExternalResourceManagerEx.getInstanceEx().getDefaultHtmlDoctype(context.getProject())); } return isHtml5Document(doc... | isHtml5Context |
299,498 | boolean (@NotNull XmlTag tag) { if (!tag.getLanguage().isKindOf(HTMLLanguage.INSTANCE)) return false; XmlDocument doc = PsiTreeUtil.getParentOfType(tag, XmlDocument.class); String doctype = null; if (doc != null) { doctype = XmlUtil.getDtdUri(doc); } doctype = doctype == null ? ExternalResourceManagerEx.getInstanceEx()... | isHtmlTag |
299,499 | boolean (XmlElement context) { XmlDocument doc = PsiTreeUtil.getParentOfType(context, XmlDocument.class); if (doc == null) { return false; } XmlProlog prolog = doc.getProlog(); XmlDoctype doctype = prolog != null ? prolog.getDoctype() : null; return doctype != null && !isHtml5Doctype(doctype); } | hasNonHtml5Doctype |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.