Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
251,200 | HighlightInfo (final @NotNull PsiElement context, final @NotNull PsiElement rainbowElement, final @NotNull String name, final @Nullable TextAttributesKey colorKey) { int colorIndex = UsedColors.getOrAddColorIndex((UserDataHolderEx)context, name, getHighlighter().getColorsCount()); return getHighlighter().getInfo(colorI... | getInfo |
251,201 | void (@NotNull Annotator annotator, @NotNull Annotation annotation) { DaemonCodeAnalyzer.DaemonListener.AnnotatorStatistics stat = myAnnotatorStats.computeIfAbsent(annotator, __ -> new DaemonCodeAnalyzer.DaemonListener.AnnotatorStatistics(annotator)); if (stat.firstAnnotation == null) { // ignore race condition - it's ... | reportAnnotationProduced |
251,202 | void (@NotNull Project project, @NotNull AnnotationSession session, @NotNull PsiFile file) { for (DaemonCodeAnalyzer.DaemonListener.AnnotatorStatistics stat : myAnnotatorStats.values()) { stat.annotatorFinishStamp = System.nanoTime(); } project.getMessageBus().syncPublisher(DaemonCodeAnalyzer.DAEMON_EVENT_TOPIC).daemon... | reportAnalysisFinished |
251,203 | void (@NotNull Annotator annotator) { DaemonCodeAnalyzer.DaemonListener.AnnotatorStatistics stat = myAnnotatorStats.computeIfAbsent(annotator, __ -> new DaemonCodeAnalyzer.DaemonListener.AnnotatorStatistics(annotator)); stat.annotatorStartStamp = System.nanoTime(); } | reportNewAnnotatorCreated |
251,204 | boolean () { return true; } | isApplicableToInspections |
251,205 | HighlightSeverity (@Nullable PsiElement psiElement) { return mySeverity; } | getSeverity |
251,206 | TextAttributesKey () { return attributeKey; } | getAttributesKey |
251,207 | String () { return "HighlightInfoTypeImpl[severity=" + mySeverity + ", key=" + attributeKey + "]"; } | toString |
251,208 | void (Element element) { try { mySeverity.writeExternal(element); } catch (WriteExternalException e) { throw new RuntimeException(e); } attributeKey.writeExternal(element); } | writeExternal |
251,209 | boolean (Object o) { if (this == o) return true; if (!(o instanceof HighlightInfoTypeImpl that)) return false; if (!Comparing.equal(attributeKey, that.attributeKey)) return false; if (!mySeverity.equals(that.mySeverity)) return false; return true; } | equals |
251,210 | int () { int result = mySeverity.hashCode(); result = 29 * result + attributeKey.hashCode(); return result; } | hashCode |
251,211 | boolean () { return needUpdateOnTyping; } | needsUpdateOnTyping |
251,212 | HighlightSeverity (PsiElement psiElement) { InspectionProfile profile = psiElement == null ? InspectionProfileManager.getInstance().getCurrentProfile() : InspectionProjectProfileManager.getInstance(psiElement.getProject()).getCurrentProfile(); return profile.getErrorLevel(myToolKey, psiElement).getSeverity(); } | getSeverity |
251,213 | TextAttributesKey () { return attributeKey; } | getAttributesKey |
251,214 | String () { return "HighlightInfoTypeSeverityByKey[severity=" + myToolKey + ", key=" + attributeKey + "]"; } | toString |
251,215 | HighlightDisplayKey () { return myToolKey; } | getSeverityKey |
251,216 | OptPane () { return OptPane.pane( checkbox("highlightErrorElements", InspectionsBundle.message("inspection.annotator.option.highlight.syntax")), checkbox("runAnnotators", InspectionsBundle.message("inspection.annotator.option.run.annotators")), checkbox("runVisitors", InspectionsBundle.message("inspection.annotator.opt... | getOptionsPane |
251,217 | HighlightVisitorBasedInspection (boolean value) { highlightErrorElements = value; return this; } | setHighlightErrorElements |
251,218 | HighlightVisitorBasedInspection (boolean value) { runAnnotators = value; return this; } | setRunAnnotators |
251,219 | HighlightVisitorBasedInspection (boolean value) { runVisitors = value; return this; } | setRunVisitors |
251,220 | String () { return SHORT_NAME; } | getShortName |
251,221 | HighlightDisplayLevel () { return HighlightDisplayLevel.ERROR; } | getDefaultLevel |
251,222 | void (@NotNull PsiFile psiFile, @NotNull InspectionManager manager, @NotNull ProblemsHolder problemsHolder, @NotNull GlobalInspectionContext globalContext, @NotNull ProblemDescriptionsProcessor problemDescriptionsProcessor) { for (HighlightInfo info : runAnnotatorsInGeneralHighlighting(psiFile, highlightErrorElements, ... | checkFile |
251,223 | List<HighlightInfo> (@NotNull PsiFile file, boolean highlightErrorElements, boolean runAnnotators, boolean runVisitors) { ApplicationManager.getApplication().assertIsNonDispatchThread(); ApplicationManager.getApplication().assertReadAccessAllowed(); Project project = file.getProject(); Document document = PsiDocumentMa... | runAnnotatorsInGeneralHighlighting |
251,224 | void () { boolean cancelled = false; synchronized (getLock()) { super.stop(); if (tryCancel()) { cancelled = true; } } if (cancelled) { onStop(); } } | stop |
251,225 | boolean () { synchronized (getLock()) { if (!isCanceled()) { myTraceableDisposable.kill("Daemon Progress Canceled"); super.cancel(); return true; } } return false; } | tryCancel |
251,226 | void (@NotNull String reason) { } | onCancelled |
251,227 | void () { } | onStop |
251,228 | void () { cancel("daemon progress cancelled with no specified reason"); } | cancel |
251,229 | void (@NotNull String reason) { doCancel(null, reason); } | cancel |
251,230 | void (@NotNull Throwable cause, @NotNull String reason) { doCancel(cause, reason); } | cancel |
251,231 | void (@Nullable Throwable cause, @NotNull String reason) { if (tryCancel()) { myCancellationCause = cause; if (cause != null) { myTraceableDisposable.killExceptionally(cause); } ProgressManager.getInstance().executeNonCancelableSection(() -> onCancelled(reason)); } } | doCancel |
251,232 | boolean () { return super.isCanceled(); } | isCanceled |
251,233 | void () { super.checkCanceled(); } | checkCanceled |
251,234 | void () { checkCanceled(); assert !isRunning() : "running"; mySpan = myTraceManager.spanBuilder("run daemon").startSpan(); super.start(); } | start |
251,235 | void (boolean debug) { DaemonProgressIndicator.debug = debug; } | setDebug |
251,236 | boolean (Object obj) { return super.equals(obj); } | equals |
251,237 | int () { return super.hashCode(); } | hashCode |
251,238 | String () { return super.toString() + (debug ? "; "+myTraceableDisposable.getStackTrace()+"\n;" : ""); } | toString |
251,239 | boolean () { // to avoid silly exceptions "this progress is indeterminate" on storing/restoring wrapper states in JobLauncher return false; } | isIndeterminate |
251,240 | boolean () { return myBatchMode; } | isBatchMode |
251,241 | Annotation (@NotNull PsiElement elt, @NlsContexts.DetailedDescription String message) { assertMyFile(elt); Class<?> callerClass = ReflectionUtilRt.findCallerClass(2); return doCreateAnnotation(HighlightSeverity.ERROR, elt.getTextRange(), message, wrapXml(message), callerClass, "createErrorAnnotation"); } | createErrorAnnotation |
251,242 | Annotation (@NotNull ASTNode node, @NlsContexts.DetailedDescription String message) { assertMyFile(node.getPsi()); Class<?> callerClass = ReflectionUtilRt.findCallerClass(2); return doCreateAnnotation(HighlightSeverity.ERROR, node.getTextRange(), message, wrapXml(message), callerClass, "createErrorAnnotation"); } | createErrorAnnotation |
251,243 | Annotation (@NotNull TextRange range, @NlsContexts.DetailedDescription String message) { Class<?> callerClass = ReflectionUtilRt.findCallerClass(2); return doCreateAnnotation(HighlightSeverity.ERROR, range, message, wrapXml(message), callerClass, "createErrorAnnotation"); } | createErrorAnnotation |
251,244 | Annotation (@NotNull PsiElement elt, @NlsContexts.DetailedDescription String message) { assertMyFile(elt); Class<?> callerClass = ReflectionUtilRt.findCallerClass(2); return doCreateAnnotation(HighlightSeverity.WARNING, elt.getTextRange(), message, wrapXml(message), callerClass, "createWarningAnnotation"); } | createWarningAnnotation |
251,245 | Annotation (@NotNull ASTNode node, @NlsContexts.DetailedDescription String message) { assertMyFile(node.getPsi()); Class<?> callerClass = ReflectionUtilRt.findCallerClass(2); return doCreateAnnotation(HighlightSeverity.WARNING, node.getTextRange(), message, wrapXml(message), callerClass, "createWarningAnnotation"); } | createWarningAnnotation |
251,246 | Annotation (@NotNull TextRange range, @NlsContexts.DetailedDescription String message) { Class<?> callerClass = ReflectionUtilRt.findCallerClass(2); return doCreateAnnotation(HighlightSeverity.WARNING, range, message, wrapXml(message), callerClass, "createWarningAnnotation"); } | createWarningAnnotation |
251,247 | Annotation (@NotNull PsiElement elt, @NlsContexts.DetailedDescription @Nullable String message) { assertMyFile(elt); Class<?> callerClass = ReflectionUtilRt.findCallerClass(2); return doCreateAnnotation(HighlightSeverity.WEAK_WARNING, elt.getTextRange(), message, wrapXml(message), callerClass, "createWeakWarningAnnotat... | createWeakWarningAnnotation |
251,248 | Annotation (@NotNull TextRange range, @NlsContexts.DetailedDescription String message) { Class<?> callerClass = ReflectionUtilRt.findCallerClass(2); return doCreateAnnotation(HighlightSeverity.WEAK_WARNING, range, message, wrapXml(message), callerClass, "createWeakWarningAnnotation"); } | createWeakWarningAnnotation |
251,249 | Annotation (@NotNull PsiElement elt, @NlsContexts.DetailedDescription String message) { assertMyFile(elt); Class<?> callerClass = ReflectionUtilRt.findCallerClass(2); return doCreateAnnotation(HighlightSeverity.INFORMATION, elt.getTextRange(), message, wrapXml(message), callerClass, "createInfoAnnotation"); } | createInfoAnnotation |
251,250 | Annotation (@NotNull ASTNode node, @NlsContexts.DetailedDescription String message) { assertMyFile(node.getPsi()); Class<?> callerClass = ReflectionUtilRt.findCallerClass(2); return doCreateAnnotation(HighlightSeverity.INFORMATION, node.getTextRange(), message, wrapXml(message), callerClass, "createInfoAnnotation"); } | createInfoAnnotation |
251,251 | void (PsiElement node) { if (node == null) return; PsiFile myFile = myAnnotationSession.getFile(); PsiFile containingFile = node.getContainingFile(); LOG.assertTrue(containingFile != null, node); VirtualFile containingVFile = containingFile.getVirtualFile(); VirtualFile myVFile = myFile.getVirtualFile(); if (!Comparing... | assertMyFile |
251,252 | Annotation (@NotNull TextRange range, @NlsContexts.DetailedDescription String message) { Class<?> callerClass = ReflectionUtilRt.findCallerClass(2); return doCreateAnnotation(HighlightSeverity.INFORMATION, range, message, wrapXml(message), callerClass, "createInfoAnnotation"); } | createInfoAnnotation |
251,253 | Annotation (@NotNull HighlightSeverity severity, @NotNull TextRange range, @Nullable @NlsContexts.DetailedDescription String message) { Class<?> callerClass = ReflectionUtilRt.findCallerClass(2); return doCreateAnnotation(severity, range, message, wrapXml(message), callerClass, "createAnnotation"); } | createAnnotation |
251,254 | Annotation (@NotNull HighlightSeverity severity, @NotNull TextRange range, @NlsContexts.DetailedDescription @Nullable String message, @Nullable @NlsContexts.Tooltip String tooltip) { Class<?> callerClass = ReflectionUtilRt.findCallerClass(2); return doCreateAnnotation(severity, range, message, tooltip, callerClass, "cr... | createAnnotation |
251,255 | Annotation (@NotNull HighlightSeverity severity, @NotNull TextRange range, @NlsContexts.DetailedDescription @Nullable String message, @NlsContexts.Tooltip @Nullable String tooltip, @Nullable Class<?> callerClass, @NotNull String methodName) { Annotation annotation = new Annotation(range.getStartOffset(), range.getEndOf... | doCreateAnnotation |
251,256 | boolean () { return !isEmpty(); } | hasAnnotations |
251,257 | AnnotationSession () { return myAnnotationSession; } | getCurrentAnnotationSession |
251,258 | AnnotationBuilder (@NotNull HighlightSeverity severity, @NotNull @Nls String message) { return new B(this, severity, message, myCurrentElement, ObjectUtils.chooseNotNull(myCurrentAnnotator, myExternalAnnotator)); } | newAnnotation |
251,259 | AnnotationBuilder (@NotNull HighlightSeverity severity) { return new B(this, severity, null, myCurrentElement, ObjectUtils.chooseNotNull(myCurrentAnnotator, myExternalAnnotator)); } | newSilentAnnotation |
251,260 | void (@NotNull PsiElement element, @NotNull Annotator annotator) { myCurrentAnnotator = annotator; myCurrentElement = element; annotator.annotate(element, this); myCurrentElement = null; myCurrentAnnotator = null; } | runAnnotatorWithContext |
251,261 | void () { synchronized (myCreatedAnnotationBuilders) { try { for (B builder : myCreatedAnnotationBuilders) { builder.assertAnnotationCreated(); } } finally { myCreatedAnnotationBuilders.clear(); } } } | assertAllAnnotationsCreated |
251,262 | PsiFile () { return myFile; } | getFile |
251,263 | void () { HIGHLIGHTING_PERFORMANCE_ASSERT.assertPassNotRunning(); } | assertHighlightingPassNotRunning |
251,264 | List<HighlightVisitor> () { int oldCount = incVisitorUsageCount(1); List<HighlightVisitor> highlightVisitors = HighlightVisitor.EP_HIGHLIGHT_VISITOR.getExtensionList(myProject); if (oldCount != 0) { HighlightVisitor[] clones = new HighlightVisitor[highlightVisitors.size()]; for (int i = 0; i < highlightVisitors.size();... | cloneHighlightVisitors |
251,265 | void (@NotNull ProgressIndicator progress) { ApplicationManager.getApplication().assertIsNonDispatchThread(); List<HighlightInfo> outsideResult = new ArrayList<>(100); List<HighlightInfo> insideResult = new ArrayList<>(100); DaemonCodeAnalyzerEx daemonCodeAnalyzer = DaemonCodeAnalyzerEx.getInstanceEx(myProject); Highli... | collectInformationWithProgress |
251,266 | boolean () { return myUpdateAll && myRestrictRange.equalsToRange(0, getDocument().getTextLength()); } | isWholeFileHighlighting |
251,267 | void () { ((HighlightingSessionImpl)myHighlightingSession).applyFileLevelHighlightsRequests(); getFile().putUserData(HAS_ERROR_ELEMENT, myHasErrorElement); } | applyInformationWithProgress |
251,268 | List<HighlightInfo> () { return new ArrayList<>(myHighlights); } | getInfos |
251,269 | boolean (@NotNull List<? extends PsiElement> elements1, @NotNull LongList ranges1, @NotNull List<? extends PsiElement> elements2, @NotNull LongList ranges2, HighlightVisitor @NotNull [] visitors, @NotNull List<HighlightInfo> insideResult, @NotNull List<? super HighlightInfo> outsideResult, boolean forceHighlightParents... | collectHighlights |
251,270 | boolean (HighlightVisitor @NotNull [] visitors, @NotNull HighlightInfoHolder holder, int i, @NotNull Runnable action) { boolean[] success = {true}; if (i == visitors.length) { action.run(); } else { if (!visitors[i].analyze(getFile(), myUpdateAll, holder, () -> success[0] = analyzeByVisitors(visitors, holder, i + 1, ac... | analyzeByVisitors |
251,271 | void (@NotNull List<? extends PsiElement> elements, @NotNull LongList ranges, int chunkSize, @NotNull Set<? super PsiElement> skipParentsSet, @NotNull HighlightInfoHolder holder, @NotNull List<? super HighlightInfo> insideResult, @NotNull List<? super HighlightInfo> outsideResult, boolean forceHighlightParents, Highlig... | runVisitors |
251,272 | boolean (@NotNull PsiElement parent, @NotNull PsiElement element) { return element.getStartOffsetInParent() == 0 && element.getTextLength() == parent.getTextLength(); } | hasSameRangeAsParent |
251,273 | boolean () { return RESTART_REQUESTS.get() > 0; } | isRestartPending |
251,274 | boolean () { boolean forceHighlightParents = false; for(HighlightRangeExtension extension: HighlightRangeExtension.EP_NAME.getExtensionList()) { if (extension.isForceHighlightParents(getFile())) { forceHighlightParents = true; break; } } return forceHighlightParents; } | forceHighlightParents |
251,275 | HighlightInfoHolder (@NotNull PsiFile file) { List<HighlightInfoFilter> filters = HighlightInfoFilter.EXTENSION_POINT_NAME.getExtensionList(); EditorColorsScheme actualScheme = getColorsScheme() == null ? EditorColorsManager.getInstance().getGlobalScheme() : getColorsScheme(); HighlightInfoHolder infoHolder = new Highl... | createInfoHolder |
251,276 | TextAttributesScheme () { return actualScheme; } | getColorsScheme |
251,277 | boolean (@Nullable HighlightInfo info) { boolean added = super.add(info); if (info != null && added) { queueInfoToUpdateIncrementally(info, info.getGroup() == 0 ? Pass.UPDATE_ALL : info.getGroup()); } return added; } | add |
251,278 | void (@NotNull PsiFile file, @NotNull CharSequence text, int startOffset, int endOffset, @NotNull ProperTextRange priorityRange, @NotNull Collection<? super HighlightInfo> insideResult, @NotNull Collection<? super HighlightInfo> outsideResult) { PsiTodoSearchHelper helper = PsiTodoSearchHelper.getInstance(file.getProje... | highlightTodos |
251,279 | void (int restrictStartOffset, int restrictEndOffset, @NotNull ProperTextRange priorityRange, @NotNull Collection<? super HighlightInfo> insideResult, @NotNull Collection<? super HighlightInfo> outsideResult, @NotNull TextAttributes attributes, @NotNull @NlsContexts.DetailedDescription String description, @NotNull @Nls... | addTodoItem |
251,280 | boolean (@NotNull PsiTodoSearchHelper helper, @NotNull PsiFile file) { return helper instanceof PsiTodoSearchHelperImpl && ((PsiTodoSearchHelperImpl)helper).shouldHighlightInEditor(file); } | shouldHighlightTodos |
251,281 | void (boolean hasErrors) { ApplicationManager.getApplication().assertIsNonDispatchThread(); if (!getFile().getViewProvider().isPhysical()) return; // e.g. errors in evaluate expression Project project = getFile().getProject(); if (!PsiManager.getInstance(project).isInProject(getFile())) return; // do not report problem... | reportErrorsToWolf |
251,282 | List<Problem> (@NotNull Collection<? extends HighlightInfo> infos, @NotNull VirtualFile file, boolean hasErrorElement) { List<Problem> problems = new SmartList<>(); for (HighlightInfo info : infos) { if (info.getSeverity() == HighlightSeverity.ERROR) { Problem problem = new ProblemImpl(file, info, hasErrorElement); pro... | convertToProblems |
251,283 | String () { return super.toString() + " updateAll="+myUpdateAll+" range="+myRestrictRange; } | toString |
251,284 | void (@NotNull HighlightInfoType highlightInfoType, @NotNull HighlightSeverity highlightSeverity) { STANDARD_SEVERITIES.put(highlightSeverity.getName(), highlightInfoType); ApplicationManager.getApplication().getMessageBus().syncPublisher(STANDARD_SEVERITIES_CHANGED_TOPIC).run(); } | registerStandard |
251,285 | void (@NotNull Map<String, ? extends HighlightInfoType> map) { STANDARD_SEVERITIES.putAll(map); ApplicationManager.getApplication().getMessageBus().syncPublisher(STANDARD_SEVERITIES_CHANGED_TOPIC).run(); } | registerStandard |
251,286 | SeverityRegistrar (@Nullable Project project) { return project == null ? InspectionProfileManager.getInstance().getSeverityRegistrar() : InspectionProfileManager.getInstance(project).getCurrentProfile().getProfileManager().getSeverityRegistrar(); } | getSeverityRegistrar |
251,287 | long () { return myModificationTracker.getModificationCount(); } | getModificationCount |
251,288 | void (@NotNull SeverityBasedTextAttributes info, @Nullable Color renderColor) { HighlightSeverity severity = info.getType().getSeverity(null); myMap.put(severity.getName(), info); if (renderColor != null) { myRendererColors.put(severity.getName(), renderColor); } orderMap.set(null); HighlightDisplayLevel.registerSeveri... | registerSeverity |
251,289 | void () { myModificationTracker.incModificationCount(); myMessageBus.syncPublisher(SEVERITIES_CHANGED_TOPIC).run(); } | severitiesChanged |
251,290 | SeverityBasedTextAttributes (@NotNull HighlightSeverity severity) { severitiesChanged(); return myMap.remove(severity.getName()); } | unregisterSeverity |
251,291 | SeverityBasedTextAttributes (@NotNull HighlightSeverity severity) { return myMap.get(severity.getName()); } | getAttributesBySeverity |
251,292 | void (@NotNull Element element) { myMap.clear(); myRendererColors.clear(); for (Element infoElement : element.getChildren(INFO_TAG)) { SeverityBasedTextAttributes highlightInfo = new SeverityBasedTextAttributes(infoElement); String colorStr = infoElement.getAttributeValue(COLOR_ATTRIBUTE); @SuppressWarnings("UseJBColor... | readExternal |
251,293 | Object2IntMap<HighlightSeverity> (@NotNull List<? extends HighlightSeverity> read, @NotNull List<HighlightSeverity> knownSeverities) { Object2IntMap<HighlightSeverity> orderMap = fromList(read); if (orderMap.isEmpty()) { return fromList(knownSeverities); } // enforce include all known List<HighlightSeverity> list = get... | ensureAllStandardIncluded |
251,294 | void (@NotNull Element element) { List<HighlightSeverity> list = getAllSeverities(); for (HighlightSeverity severity : list) { Element info = new Element(INFO_TAG); String severityName = severity.getName(); SeverityBasedTextAttributes infoType = getAttributesBySeverity(severity); if (infoType != null) { infoType.writeE... | writeExternal |
251,295 | List<HighlightSeverity> () { return getSortedSeverities(getOrderMap()); } | getAllSeverities |
251,296 | List<HighlightSeverity> (@NotNull Object2IntMap<HighlightSeverity> map) { List<HighlightSeverity> list = new ArrayList<>(map.keySet()); list.sort((o1, o2) -> compare(o1, o2, map)); return list; } | getSortedSeverities |
251,297 | boolean (@NotNull String severityName) { return STANDARD_SEVERITIES.containsKey(severityName) || myMap.containsKey(severityName); } | isSeverityValid |
251,298 | int (@NotNull HighlightSeverity s1, @NotNull HighlightSeverity s2) { return compare(s1, s2, getOrderMap()); } | compare |
251,299 | int (@NotNull HighlightSeverity s1, @NotNull HighlightSeverity s2, @NotNull Object2IntMap<HighlightSeverity> orderMap) { return orderMap.getInt(s1) - orderMap.getInt(s2); } | compare |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.