Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ public final class DartAnalysisServerService implements Disposable {

private final DartServerRootsHandler myRootsHandler;
private final Map<String, Long> myFilePathWithOverlaidContentToTimestamp = Collections.synchronizedMap(new HashMap<>());
private final List<String> myVisibleFileUris = new ArrayList<>();
private final List<String> myVisibleFileUris = new SmartList<>();
private final Set<Document> myChangedDocuments = new HashSet<>();
private final Alarm myUpdateFilesAlarm;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.jetbrains.lang.dart.ide.index;

import com.intellij.util.SmartList;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

Expand All @@ -10,12 +11,12 @@
import java.util.Map;

public final class DartFileIndexData {
private final List<String> myClassNames = new ArrayList<>();
private final List<DartImportOrExportInfo> myImportAndExportInfos = new ArrayList<>();
private final List<String> myClassNames = new SmartList<>();
private final List<DartImportOrExportInfo> myImportAndExportInfos = new SmartList<>();
private final Map<String, DartComponentInfo> myComponentInfoMap = new HashMap<>();
private @Nullable String myLibraryName;
private final List<String> myPartUris = new ArrayList<>();
private final List<String> mySymbols = new ArrayList<>();
private final List<String> myPartUris = new SmartList<>();
private final List<String> mySymbols = new SmartList<>();
private boolean myIsPart;

public List<String> getClassNames() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.jetbrains.lang.dart.ide.runner.server.vmService;

import com.intellij.util.SmartList;
import com.intellij.xdebugger.breakpoints.XBreakpointHandler;
import com.intellij.xdebugger.breakpoints.XBreakpointProperties;
import com.intellij.xdebugger.breakpoints.XLineBreakpoint;
Expand Down Expand Up @@ -103,7 +104,7 @@ public XLineBreakpoint<XBreakpointProperties> getXBreakpoint(final @NotNull Brea
class IsolateBreakpointInfo {
private final String myIsolateId;
private final DartVmServiceDebugProcess myDebugProcess;
private final List<String> myTemporaryVmBreakpointIds = new ArrayList<>();
private final List<String> myTemporaryVmBreakpointIds = new SmartList<>();
private final Map<XLineBreakpoint<XBreakpointProperties>, Set<String>> myXBreakpointToVmBreakpointIdsMap = new HashMap<>();

IsolateBreakpointInfo(@NotNull String isolateId, @NotNull DartVmServiceDebugProcess debugProcess) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import com.intellij.psi.PsiWhiteSpace;
import com.intellij.psi.ResolveState;
import com.intellij.psi.util.PsiTreeUtil;
import com.intellij.util.SmartList;
import com.intellij.util.containers.ContainerUtil;
import com.jetbrains.lang.dart.DartComponentType;
import com.jetbrains.lang.dart.DartTokenTypes;
Expand Down Expand Up @@ -49,7 +50,7 @@ public static Set<DartComponentName> collectUsedComponents(PsiElement context) {
if (context == null) {
return Collections.emptyList();
}
final List<PsiElement> occurrences = new ArrayList<>();
final List<PsiElement> occurrences = new SmartList<>();
context.acceptChildren(new DartRecursiveVisitor() {
@Override
public void visitElement(final @NotNull PsiElement element) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public static void configureDartSdk(@NotNull final Module module, @NotNull final
public static List<CaretPositionInfo> extractPositionMarkers(@NotNull final Project project, @NotNull final Document document) {
final Pattern caretPattern = Pattern.compile(
"<caret(?: expected='([^']*)')?(?: completionEquals='([^']*)')?(?: completionIncludes='([^']*)')?(?: completionExcludes='([^']*)')?>");
final List<CaretPositionInfo> result = new ArrayList<>();
final List<CaretPositionInfo> result = new SmartList<>();

WriteCommandAction.runWriteCommandAction(null, () -> {
while (true) {
Expand Down
Loading