Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
250,600 | InsertionContext (InsertionContext oldContext, LookupElement forElement) { final Editor editor = oldContext.getEditor(); return new InsertionContext(new OffsetMap(editor.getDocument()), Lookup.AUTO_INSERT_SELECT_CHAR, new LookupElement[]{forElement}, oldContext.getFile(), editor, oldContext.shouldAddCompletionChar()); ... | newContext |
250,601 | InsertionContext (InsertionContext oldContext, LookupElement forElement, int startOffset, int tailOffset) { final InsertionContext context = newContext(oldContext, forElement); setOffsets(context, startOffset, tailOffset); return context; } | newContext |
250,602 | void (LookupElement item, int offset, InsertionContext context) { setOffsets(context, offset, offset); final Editor editor = context.getEditor(); final Document document = editor.getDocument(); final String lookupString = item.getLookupString(); document.insertString(offset, lookupString); editor.getCaretModel().moveTo... | emulateInsertion |
250,603 | void (InsertionContext context, int offset, final int tailOffset) { final OffsetMap offsetMap = context.getOffsetMap(); offsetMap.addOffset(CompletionInitializationContext.START_OFFSET, offset); offsetMap.addOffset(CompletionInitializationContext.IDENTIFIER_END_OFFSET, tailOffset); offsetMap.addOffset(CompletionInitial... | setOffsets |
250,604 | Iterable<String> (final @NotNull LookupElement element) { return new Iterable<>() { @Override public @NotNull Iterator<String> iterator() { final Iterator<String> original = element.getAllLookupStrings().iterator(); return new UnmodifiableIterator<>(original) { @Override public boolean hasNext() { try { return super.ha... | iterateLookupStrings |
250,605 | Iterator<String> () { final Iterator<String> original = element.getAllLookupStrings().iterator(); return new UnmodifiableIterator<>(original) { @Override public boolean hasNext() { try { return super.hasNext(); } catch (ConcurrentModificationException e) { throw handleCME(e); } } @Override public String next() { try { ... | iterator |
250,606 | boolean () { try { return super.hasNext(); } catch (ConcurrentModificationException e) { throw handleCME(e); } } | hasNext |
250,607 | String () { try { return super.next(); } catch (ConcurrentModificationException e) { throw handleCME(e); } } | next |
250,608 | RuntimeException (ConcurrentModificationException cme) { RuntimeExceptionWithAttachments ewa = new RuntimeExceptionWithAttachments( "Error while traversing lookup strings of " + element + " of " + element.getClass(), (String)null, new Attachment("threadDump.txt", ThreadDumper.dumpThreadsToString())); ewa.initCause(cme)... | handleCME |
250,609 | int (OffsetMap offsetMap, Editor editor, Integer initOffset) { return offsetMap.containsOffset(CompletionInitializationContext.IDENTIFIER_END_OFFSET) ? offsetMap.getOffset(CompletionInitializationContext.IDENTIFIER_END_OFFSET) : CompletionInitializationContext.calcDefaultIdentifierEnd(editor, initOffset); } | calcIdEndOffset |
250,610 | int (CompletionProcessEx indicator) { return calcIdEndOffset(indicator.getOffsetMap(), indicator.getEditor(), indicator.getCaret().getOffset()); } | calcIdEndOffset |
250,611 | Comparable (final @NotNull LookupElement item, final @NotNull CompletionLocation location) { throw new UnsupportedOperationException(); } | weigh |
250,612 | void (@NotNull LookupElement element, @NotNull ProcessingContext context) { StatisticsInfo baseInfo = getBaseStatisticsInfo(element); int weight = weigh(baseInfo); synchronized (this) { if (weight != 0) { myWeights.put(element, new StatisticsComparable(weight, baseInfo)); myStringsWithWeights.add(element.getLookupStrin... | addElement |
250,613 | Iterable<LookupElement> (@NotNull Iterable<? extends LookupElement> source, final @NotNull ProcessingContext context) { List<LookupElement> initialList; Collection<List<LookupElement>> byWeight; synchronized (this) { initialList = getInitialNoStatElements(source, context); Iterable<LookupElement> rest = withoutInitial(... | classify |
250,614 | Iterable<LookupElement> (Iterable<? extends LookupElement> allItems, List<? extends LookupElement> initial) { Set<LookupElement> initialSet = new ReferenceOpenHashSet<>(initial); return JBIterable.<LookupElement>from(allItems).filter(element -> !initialSet.contains(element)); } | withoutInitial |
250,615 | List<LookupElement> (Iterable<? extends LookupElement> source, ProcessingContext context) { List<LookupElement> initialList = new ArrayList<>(); for (LookupElement next : myNext.classify(source, context)) { if (myNoStats.contains(next)) { initialList.add(next); } else { break; } } return initialList; } | getInitialNoStatElements |
250,616 | int (List<? extends LookupElement> group) { int max = 0; //noinspection ForLoopReplaceableByForEach for (int i = 0; i < group.size(); i++) { max = Math.max(max, getScalarWeight(group.get(i))); } return max; } | getMaxWeight |
250,617 | int (LookupElement e) { StatisticsComparable comparable = myWeights.get(e); return comparable == null ? 0 : comparable.getScalar(); } | getScalarWeight |
250,618 | StatisticsComparable (LookupElement t) { StatisticsComparable w = myWeights.get(t); if (w == null) { StatisticsInfo info = getBaseStatisticsInfo(t); myWeights.put(t, w = new StatisticsComparable(weigh(info), info)); } return w; } | getWeight |
250,619 | int (final StatisticsInfo baseInfo) { if (baseInfo == StatisticsInfo.EMPTY) { return 0; } int minRecency = StatisticsManager.getInstance().getLastUseRecency(baseInfo); return minRecency == Integer.MAX_VALUE ? 0 : StatisticsManager.RECENCY_OBLIVION_THRESHOLD - minRecency; } | weigh |
250,620 | void (@NotNull LookupElement element, @NotNull ProcessingContext context) { synchronized (this) { myWeights.remove(element); myNoStats.remove(element); } super.removeElement(element, context); } | removeElement |
250,621 | StatisticsInfo (LookupElement item) { StatisticsInfo info = BASE_STATISTICS_INFO.get(item); if (info == null) { if (myLocation == null) { return StatisticsInfo.EMPTY; } BASE_STATISTICS_INFO.set(item, info = calcBaseInfo(item)); } return info; } | getBaseStatisticsInfo |
250,622 | StatisticsInfo (LookupElement item) { if (!ApplicationManager.getApplication().isUnitTestMode() && !myLocation.getCompletionParameters().isTestingMode()) { ApplicationManager.getApplication().assertIsNonDispatchThread(); } for (var serializer : mySerializers) { StatisticsInfo info = serializer.apply(item); if (info != ... | calcBaseInfo |
250,623 | void (LookupElement item) { item.putUserData(BASE_STATISTICS_INFO, null); } | clearBaseStatisticsInfo |
250,624 | StatisticsInfo (LookupElement item, @Nullable CompletionLocation location) { StatisticsInfo info = BASE_STATISTICS_INFO.get(item); if (info == null) { if (location == null) { return StatisticsInfo.EMPTY; } BASE_STATISTICS_INFO.set(item, info = calcBaseInfo(item, location)); } return info; } | getBaseStatisticsInfo |
250,625 | StatisticsInfo (LookupElement item, @NotNull CompletionLocation location) { if (!ApplicationManager.getApplication().isUnitTestMode() && !location.getCompletionParameters().isTestingMode()) { ApplicationManager.getApplication().assertIsNonDispatchThread(); } StatisticsInfo info = StatisticsManager.serialize(CompletionS... | calcBaseInfo |
250,626 | void (@NotNull InsertionContext context, @NotNull LookupElement item) { Editor editor = context.getEditor(); char completionChar = context.getCompletionChar(); if (completionChar == ' ' || StringUtil.containsChar(myIgnoreOnChars, completionChar)) return; Project project = editor.getProject(); if (project != null) { if ... | handleInsert |
250,627 | boolean (Editor editor) { return true; } | shouldOverwriteExistingSpace |
250,628 | boolean (Editor editor) { final int startOffset = editor.getCaretModel().getOffset(); final Document document = editor.getDocument(); return document.getTextLength() > startOffset && document.getCharsSequence().charAt(startOffset) == ' '; } | isCharAtSpace |
250,629 | CompletionSorterImpl (LookupElement element) { //noinspection ConstantConditions return element.getUserData(mySorterKey); } | obtainSorter |
250,630 | boolean (List<? extends Pair<LookupElement, Object>> pairs) { if (pairs.isEmpty()) return true; for (int i = 1; i < pairs.size(); i++) { if (!Comparing.equal(pairs.get(i).second, pairs.get(0).second)) { return false; } } return true; } | haveSameWeights |
250,631 | void (@NotNull LookupElement element, @NotNull CompletionSorter sorter, @NotNull PrefixMatcher prefixMatcher, @NotNull LookupElementPresentation presentation) { registerMatcher(element, prefixMatcher); associateSorter(element, (CompletionSorterImpl)sorter); addElement(element, presentation); } | addElement |
250,632 | void (@NotNull CompletionResult result) { LookupElementPresentation presentation = new LookupElementPresentation(); result.getLookupElement().renderElement(presentation); addElement(result.getLookupElement(), result.getSorter(), result.getPrefixMatcher(), presentation); } | addElement |
250,633 | void (LookupElement element, LookupElementPresentation presentation) { boolean shouldSkip = shouldSkip(element); presentation.freeze(); element.putUserData(DEFAULT_PRESENTATION, presentation); CompletionSorterImpl sorter = obtainSorter(element); ProcessingContext context = createContext(); Classifier<LookupElement> cla... | addElement |
250,634 | void (Runnable runnable) { if (Boolean.TRUE.equals(isInBatchUpdate.get())) { runnable.run(); } else { isInBatchUpdate.set(true); try { runnable.run(); } finally { isInBatchUpdate.remove(); } if (!batchItems.isEmpty()) { flushBatch(); } } } | batchUpdate |
250,635 | void () { synchronized (this) { for (Pair<LookupElement, LookupElementPresentation> pair: batchItems) { super.addElement(pair.first, pair.second); } batchItems.clear(); } trimToLimit(createContext()); } | flushBatch |
250,636 | void (@Nullable LookupElement lookupItem, char completionChar) { myProcess.itemSelected(lookupItem, completionChar); } | itemSelected |
250,637 | void (ProcessingContext context) { List<LookupElement> removed; synchronized (this) { if (myItems.size() < myLimit) return; List<LookupElement> items = getMatchingItems(); Iterator<LookupElement> iterator = sortByRelevance(groupItemsBySorter(items)).iterator(); Set<LookupElement> retainedSet = new ReferenceOpenHashSet<... | trimToLimit |
250,638 | void () { System.err.println("Your test might miss some lookup items, because only " + (myLimit / 2) + " most relevant items are guaranteed to be shown in the lookup. You can:"); System.err.println("1. Make the prefix used for completion longer, so that there are less suggestions."); System.err.println("2. Increase 'id... | printTestWarning |
250,639 | void (LookupElement element, ProcessingContext context) { CompletionSorterImpl sorter = obtainSorter(element); Classifier<LookupElement> classifier = myClassifiers.get(sorter); if (classifier != null) classifier.removeElement(element, context); } | removeItem |
250,640 | List<LookupElement> (Iterable<? extends LookupElement> source) { List<LookupElement> startMatches = new ArrayList<>(); List<LookupElement> middleMatches = new ArrayList<>(); for (LookupElement element : source) { (itemMatcher(element).isStartMatch(element) ? startMatches : middleMatches).add(element); } ContainerUtil.s... | sortByPresentation |
250,641 | boolean () { return false; } | isAlphaSorted |
250,642 | String () { return ""; } | getAdditionalPrefix |
250,643 | LookupElement () { return null; } | getCurrentItem |
250,644 | LookupElement () { return null; } | getCurrentItemOrEmpty |
250,645 | boolean () { return false; } | isSelectionTouched |
250,646 | int () { return 0; } | getSelectedIndex |
250,647 | int () { return 0; } | getLastVisibleIndex |
250,648 | LookupFocusDegree () { return LookupFocusDegree.FOCUSED; } | getLookupFocusDegree |
250,649 | boolean () { return true; } | isShown |
250,650 | List<LookupElement> (LookupElementListPresenter lookup, Set<? extends LookupElement> items, Iterable<? extends LookupElement> sortedElements, @Nullable LookupElement relevantSelection) { Iterator<? extends LookupElement> byRelevance = sortedElements.iterator(); final LinkedHashSet<LookupElement> model = new LinkedHashS... | fillModelByRelevance |
250,651 | void (Set<? extends LookupElement> items, LinkedHashSet<? super LookupElement> model, Iterator<? extends LookupElement> byRelevance, final @Nullable LookupElement item) { if (item != null && items.contains(item) && !model.contains(item)) { addSomeItems(model, byRelevance, lastAdded -> lastAdded == item); } } | ensureItemAdded |
250,652 | void (LookupElementListPresenter lookup, LinkedHashSet<? extends LookupElement> model) { myFrozenItems.clear(); if (lookup.isShown()) { myFrozenItems.addAll(model); } } | freezeTopItems |
250,653 | void (Set<? extends LookupElement> items, LinkedHashSet<? super LookupElement> model) { myFrozenItems.removeIf(element -> !element.isValid() || !items.contains(element)); model.addAll(myFrozenItems); } | addFrozenItems |
250,654 | void (LinkedHashSet<? super LookupElement> model) { ContainerUtil.addAll(model, sortByRelevance(groupItemsBySorter(getPrefixItems(true)))); ContainerUtil.addAll(model, sortByRelevance(groupItemsBySorter(getPrefixItems(false)))); } | addPrefixItems |
250,655 | void (LookupElementListPresenter lookup, Set<? extends LookupElement> items, LinkedHashSet<? super LookupElement> model) { if (!lookup.isSelectionTouched()) { LookupElement lastSelection = lookup.getCurrentItem(); if (items.contains(lastSelection)) { model.add(lastSelection); } } } | addCurrentlySelectedItemToTop |
250,656 | void (Set<? super LookupElement> model, Iterator<? extends LookupElement> iterator, Predicate<? super LookupElement> stopWhen) { while (iterator.hasNext()) { LookupElement item = iterator.next(); model.add(item); if (stopWhen.test(item)) { break; } } } | addSomeItems |
250,657 | Iterable<LookupElement> (MultiMap<CompletionSorterImpl, LookupElement> inputBySorter) { if (inputBySorter.isEmpty()) return Collections.emptyList(); List<Map.Entry<CompletionSorterImpl, Classifier<LookupElement>>> entries = new ArrayList<>(myClassifiers.entrySet()); return EntryStream.of(entries.iterator()) .mapKeyValu... | sortByRelevance |
250,658 | ProcessingContext () { ProcessingContext context = new ProcessingContext(); context.put(PREFIX_CHANGES, myPrefixChanges); context.put(WEIGHING_CONTEXT, this); return context; } | createContext |
250,659 | String () { return myLastLookupPrefix; } | getLastLookupPrefix |
250,660 | LookupArranger () { return new BaseCompletionLookupArranger(myProcess); } | createEmptyCopy |
250,661 | int (LookupElementListPresenter lookup, List<? extends LookupElement> items, boolean onExplicitAction, @Nullable LookupElement mostRelevant) { if (items.isEmpty() || lookup.getLookupFocusDegree() == LookupFocusDegree.UNFOCUSED) { return 0; } if (lookup.isSelectionTouched() || !onExplicitAction) { final LookupElement la... | getItemToSelect |
250,662 | LookupElementPresentation (@NotNull LookupElement item) { return item.getUserData(DEFAULT_PRESENTATION); } | getDefaultPresentation |
250,663 | List<LookupElement> (List<? extends LookupElement> items) { Editor editor = myProcess.getParameters().getEditor(); if (editor instanceof EditorWindow) { editor = ((EditorWindow)editor).getDelegate(); } String selectedText = editor.getSelectionModel().getSelectedText(); List<LookupElement> exactMatches = new SmartList<>... | getExactMatches |
250,664 | boolean (LookupElement element) { CompletionLocation location = getLocation(); for (CompletionPreselectSkipper skipper : mySkippers) { if (skipper.skipElement(element, location)) { if (LOG.isDebugEnabled()) { LOG.debug("Skipped element " + element + " by " + skipper); } return true; } } return false; } | shouldSkip |
250,665 | CompletionLocation () { if (myLocation == null) { synchronized (this) { if (myLocation == null) { myLocation = new CompletionLocation(Objects.requireNonNull(myProcess.getParameters())); } } } return myLocation; } | getLocation |
250,666 | void (@NotNull LookupEx lookup, int hideOffset) { if (hideOffset < lookup.getEditor().getCaretModel().getOffset()) { myProcess.scheduleRestart(); return; } myProcess.prefixUpdated(); lookup.hideLookup(false); } | prefixTruncated |
250,667 | boolean () { return true; } | isCompletion |
250,668 | Iterable<LookupElement> (@NotNull Iterable<? extends LookupElement> source, @NotNull ProcessingContext context) { //noinspection unchecked return (Iterable<LookupElement>)source; } | classify |
250,669 | CompletionInitializationContextImpl (@NotNull Project project, @NotNull Editor editor, @NotNull Caret caret, int invocationCount, CompletionType completionType) { return WriteAction.compute(() -> { PsiDocumentManager.getInstance(project).commitAllDocuments(); CompletionAssertions.checkEditorValid(editor); final PsiFile... | createCompletionInitializationContext |
250,670 | CompletionInitializationContextImpl (Editor editor, PsiFile psiFile, int invocationCount, @NotNull Caret caret, CompletionType completionType) { final Ref<CompletionContributor> current = Ref.create(null); CompletionInitializationContextImpl context = new CompletionInitializationContextImpl(editor, caret, psiFile, comp... | runContributorsBeforeCompletion |
250,671 | void (@NotNull String dummyIdentifier) { super.setDummyIdentifier(dummyIdentifier); if (dummyIdentifierChanger != null) { LOG.error("Changing the dummy identifier twice, already changed by " + dummyIdentifierChanger); } dummyIdentifierChanger = current.get(); } | setDummyIdentifier |
250,672 | CompletionParameters (CompletionInitializationContext initContext, CompletionProcess indicator, OffsetsInFile finalOffsets) { int offset = finalOffsets.getOffsets().getOffset(CompletionInitializationContext.START_OFFSET); PsiFile fileCopy = finalOffsets.getFile(); PsiFile originalFile = fileCopy.getOriginalFile(); PsiE... | createCompletionParameters |
250,673 | OffsetsInFile (PsiFile originalFile, OffsetsInFile hostCopyOffsets) { CompletionAssertions.assertHostInfo(hostCopyOffsets.getFile(), hostCopyOffsets.getOffsets()); int hostStartOffset = hostCopyOffsets.getOffsets().getOffset(CompletionInitializationContext.START_OFFSET); OffsetsInFile translatedOffsets = hostCopyOffset... | toInjectedIfAny |
250,674 | void (PsiFileImpl copy, PsiFile origin) { checkInjectionConsistency(copy); PsiFile currentOrigin = copy.getOriginalFile(); if (currentOrigin == copy) { copy.setOriginalFile(origin); } else if (currentOrigin != origin) { PsiUtilCore.ensureValid(currentOrigin); checkInjectionConsistency(origin); checkInjectionConsistency... | setOriginalFile |
250,675 | void (PsiFile hostFile) { ApplicationManager.getApplication().invokeLater(() -> FileContentUtilCore.reparseFiles(hostFile.getViewProvider().getVirtualFile())); } | recoverFromBrokenInjection |
250,676 | void (PsiFile injectedFile) { PsiElement host = injectedFile.getContext(); if (host instanceof PsiLanguageInjectionHost) { DocumentWindow document = (DocumentWindow)injectedFile.getViewProvider().getDocument(); assert document != null; TextRange hostRange = host.getTextRange(); LiteralTextEscaper<? extends PsiLanguageI... | checkInjectionConsistency |
250,677 | PsiElement (OffsetsInFile offsets, int offset, PsiFile originalFile) { PsiElement insertedElement = offsets.getFile().findElementAt(offset); if (insertedElement == null && offsets.getFile().getTextLength() == offset) { insertedElement = PsiTreeUtil.getDeepestLast(offsets.getFile()); } CompletionAssertions.assertComplet... | findCompletionPositionLeaf |
250,678 | PsiFile (PsiFile file, boolean forbidCaching) { final VirtualFile virtualFile = file.getVirtualFile(); boolean mayCacheCopy = !forbidCaching && file.isPhysical() && // we don't want to cache code fragment copies even if they appear to be physical virtualFile != null && virtualFile.isInLocalFileSystem(); if (mayCacheCop... | obtainFileCopy |
250,679 | boolean (Document document, @NotNull PsiFile copyFile, @NotNull PsiFile originalFile) { if (!copyFile.getClass().equals(originalFile.getClass()) || !copyFile.isValid() || !copyFile.getName().equals(originalFile.getName())) { return false; } // the psi file cache might have been cleared by some external activity, // in ... | isCopyUpToDate |
250,680 | void (Document originalDocument, Document documentCopy) { if (!(originalDocument instanceof DocumentImpl) || !(documentCopy instanceof DocumentImpl)) { return; } ((DocumentImpl)documentCopy).setAcceptSlashR(((DocumentImpl)originalDocument).acceptsSlashR()); } | syncAcceptSlashR |
250,681 | int () { return myScalar; } | getScalar |
250,682 | StatisticsInfo () { return myStatisticsInfo; } | getStatisticsInfo |
250,683 | String () { return String.valueOf(myScalar); } | toString |
250,684 | int (StatisticsComparable o) { return Integer.compare(myScalar, o.myScalar); } | compareTo |
250,685 | void (Editor editor, PsiFile psiFile) { Document document = editor.getDocument(); int docLength = document.getTextLength(); int psiLength = psiFile.getTextLength(); PsiDocumentManager manager = PsiDocumentManager.getInstance(psiFile.getProject()); boolean committed = !manager.isUncommited(document); if (docLength == ps... | assertCommitSuccessful |
250,686 | void (Editor editor) { if (!isEditorValid(editor)) { throw new AssertionError(); } } | checkEditorValid |
250,687 | boolean (Editor editor) { return !(editor instanceof EditorWindow) || ((EditorWindow)editor).isValid(); } | isEditorValid |
250,688 | Attachment (PsiFile fileCopy, final PsiFile originalFile) { return new Attachment(originalFile.getViewProvider().getVirtualFile().getPath() + " syntactic tree.txt", DebugUtil.psiToString(fileCopy, true, true)); } | createAstAttachment |
250,689 | Attachment (PsiFile fileCopy, final PsiFile originalFile) { return new Attachment(originalFile.getViewProvider().getVirtualFile().getPath(), fileCopy.getText()); } | createFileTextAttachment |
250,690 | void (int hostStartOffset, PsiFile injected, DocumentWindow documentWindow) { assert documentWindow != null : "no DocumentWindow for an injected fragment"; InjectedLanguageManager injectedLanguageManager = InjectedLanguageManager.getInstance(injected.getProject()); TextRange injectedRange = injected.getTextRange(); int... | assertInjectedOffsets |
250,691 | void (PsiFile hostCopy, OffsetMap hostMap) { PsiUtilCore.ensureValid(hostCopy); if (hostMap.getOffset(CompletionInitializationContext.START_OFFSET) > hostCopy.getTextLength()) { throw new AssertionError("startOffset outside the host file: " + hostMap.getOffset(CompletionInitializationContext.START_OFFSET) + "; " + host... | assertHostInfo |
250,692 | void (OffsetsInFile offsets, int offset, PsiFile originalFile, PsiElement insertedElement) { PsiFile fileCopy = offsets.getFile(); if (insertedElement == null) { throw new RuntimeExceptionWithAttachments( "No element at insertion offset", "offset=" + offset, createFileTextAttachment(fileCopy, originalFile), createAstAt... | assertCompletionPositionPsiConsistent |
250,693 | boolean (CharSequence left, CharSequence right) { if (left == right) return true; if (left instanceof ImmutableCharSequence && right instanceof ImmutableCharSequence) { return left.equals(right); } return left.toString().equals(right.toString()); } | isEquals |
250,694 | void (@NonNls String prefix, PsiFile file, PsiFile copy) { if (copy.getOriginalFile() != file) { throw new AssertionError(prefix + " copied file doesn't have correct original: noOriginal=" + (copy.getOriginalFile() == copy) + "\n file " + fileInfo(file) + "\n copy " + fileInfo(copy)); } } | assertCorrectOriginalFile |
250,695 | void (int offset) { super.setTailOffset(offset); watchTail(offset); } | setTailOffset |
250,696 | void (int offset) { stopWatching(); tailWatcher = (RangeMarkerEx)getDocument().createRangeMarker(offset, offset); if (!tailWatcher.isValid()) { throw new AssertionError(getDocument() + "; offset=" + offset); } tailWatcher.setGreedyToRight(true); spy = new RangeMarkerSpy(this, tailWatcher); getDocument().addDocumentList... | watchTail |
250,697 | int () { if (!getOffsetMap().containsOffset(TAIL_OFFSET) && invalidateTrace != null) { throw new RuntimeExceptionWithAttachments("Tail offset invalid", new Attachment("invalidated", invalidateTrace)); } int offset = super.getTailOffset(); if (tailWatcher.getStartOffset() != tailWatcher.getEndOffset() && offset > 0) { w... | getTailOffset |
250,698 | void () { stopWatching(); // used by Fleet as ad-hoc memory leak fix } | dispose |
250,699 | void (@NotNull DocumentEvent e) { WatchingInsertionContext context = myContextRef.get(); if (context != null && context.invalidateTrace == null) { context.invalidateTrace = new Throwable(); context.killer = e; } } | invalidated |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.