refactor [eel]: Fix BuildersGeneratorTest: it now does not change files back and forth

GitOrigin-RevId: b7e8dec97288d80e7a21fedb3c3e1efec0651d3d
This commit is contained in:
Vladimir Lagunov
2026-02-06 21:00:40 +00:00
committed by intellij-monorepo-bot
parent 5291f14302
commit 7f12ee47ef
28 changed files with 76 additions and 75 deletions
+21 -16
View File
@@ -1,4 +1,4 @@
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
// Copyright 2000-2026 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.platform.eel.codegen
import com.intellij.analysis.AnalysisBundle
@@ -190,14 +190,17 @@ class BuildersGeneratorTest {
// The value is the pair of the old and the new content.
val filesContent: Map<Path, Pair<Optional<String>, Optional<String>>> = fillRequests(tempProject, newEelModule, genSrcDirName)
for ((path, contentPair) in filesContent) {
if (contentPair.first.isPresent) {
val virtualFile = VfsUtil.findFile(path, true)!!
prettifyFile(tempProject, virtualFile)
// For some unclear reason, one call of prettification is not enouigh. On the second call, something can change in files.
repeat(2) {
for ((path, contentPair) in filesContent) {
if (contentPair.first.isPresent) {
val virtualFile = VfsUtil.findFile(path, true)!!
prettifyFile(tempProject, virtualFile)
}
}
}
synchronizeVariousCaches(tempProject)
synchronizeVariousCaches(tempProject)
}
val oldPrettifiedFiles = mutableMapOf<Path, String>()
@@ -233,17 +236,19 @@ class BuildersGeneratorTest {
}
}
}
for ((path, contentPair) in filesContent) {
if (contentPair.second.isEmpty) continue
val virtualFile = VfsUtil.findFile(path, true) ?: error("Failed to find the VFS file for $path")
val (_, newContent) = contentPair
if (newContent.isPresent) {
prettifyFile(tempProject, virtualFile)
// For some unclear reason, one call of prettification is not enouigh. On the second call, something can change in files.
repeat(2) {
for ((path, contentPair) in filesContent) {
if (contentPair.second.isEmpty) continue
val virtualFile = VfsUtil.findFile(path, true) ?: error("Failed to find the VFS file for $path")
val (_, newContent) = contentPair
if (newContent.isPresent) {
prettifyFile(tempProject, virtualFile)
}
}
}
synchronizeVariousCaches(tempProject)
synchronizeVariousCaches(tempProject)
}
if (unimportantChanges.isNotEmpty()) {
logger<BuildersGeneratorTest>().warn(
@@ -1,11 +1,11 @@
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
// Copyright 2000-2026 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
/**
* This file is generated by [com.intellij.platform.eel.codegen.BuildersGeneratorTest].
*/
package com.intellij.platform.eel
import com.intellij.platform.eel.*
import com.intellij.platform.eel.EelExecApi.ExecuteProcessOptions
import com.intellij.platform.eel.EelExecApi.ExternalCliEntrypoint
import com.intellij.platform.eel.path.EelPath
import kotlinx.coroutines.CoroutineScope
import org.jetbrains.annotations.ApiStatus
@@ -334,7 +334,7 @@ object EelExecApiHelpers {
@ApiStatus.Internal
class CreateExternalCli(
private val owner: EelExecApi,
) : OwnedBuilder<EelExecApi.ExternalCliEntrypoint> {
) : OwnedBuilder<ExternalCliEntrypoint> {
private var envVariablesToCapture: List<String> = emptyList()
private var filePrefix: String = ""
@@ -376,7 +376,7 @@ object EelExecApiHelpers {
* with an instance of [com.intellij.platform.eel.EelExecApi.ExternalCliOptions].
*/
@CheckReturnValue
override suspend fun eelIt(): EelExecApi.ExternalCliEntrypoint =
override suspend fun eelIt(): ExternalCliEntrypoint =
owner.createExternalCli(
ExternalCliOptionsImpl(
envVariablesToCapture = envVariablesToCapture,
@@ -1,10 +1,9 @@
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
// Copyright 2000-2026 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
/**
* This file is generated by [com.intellij.platform.eel.codegen.BuildersGeneratorTest].
*/
package com.intellij.platform.eel
import com.intellij.platform.eel.*
import com.intellij.platform.eel.EelExecApi.ExecuteProcessOptions
import com.intellij.platform.eel.EelExecPosixApi.PosixEnvironmentVariablesOptions
import com.intellij.platform.eel.channels.EelDelicateApi
@@ -1,10 +1,9 @@
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
// Copyright 2000-2026 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
/**
* This file is generated by [com.intellij.platform.eel.codegen.BuildersGeneratorTest].
*/
package com.intellij.platform.eel
import com.intellij.platform.eel.*
import com.intellij.platform.eel.EelExecApi.ExecuteProcessOptions
import com.intellij.platform.eel.path.EelPath
import kotlinx.coroutines.CoroutineScope
@@ -1,11 +1,12 @@
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
// Copyright 2000-2026 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
/**
* This file is generated by [com.intellij.platform.eel.codegen.BuildersGeneratorTest].
*/
package com.intellij.platform.eel
import com.intellij.platform.eel.*
import com.intellij.platform.eel.EelTunnelsApi.Connection
import com.intellij.platform.eel.EelTunnelsApi.ConnectionAcceptor
import com.intellij.platform.eel.EelTunnelsApi.RemoteNetworkException
import com.intellij.platform.eel.path.EelPath
import kotlinx.coroutines.channels.SendChannel
import org.jetbrains.annotations.ApiStatus
@@ -93,7 +94,7 @@ object EelTunnelsApiHelpers {
@ApiStatus.Internal
class GetAcceptorForRemotePort(
private val owner: EelTunnelsApi,
) : OwnedBuilder<EelTunnelsApi.ConnectionAcceptor> {
) : OwnedBuilder<ConnectionAcceptor> {
private var configureServerSocket: ConfigurableSocket.() -> Unit = {}
private var hostname: String = "localhost"
@@ -149,7 +150,7 @@ object EelTunnelsApiHelpers {
*/
@Throws(EelConnectionError::class)
@ThrowsChecked(EelConnectionError::class)
override suspend fun eelIt(): EelTunnelsApi.ConnectionAcceptor =
override suspend fun eelIt(): ConnectionAcceptor =
owner.getAcceptorForRemotePort(
GetAcceptorForRemotePortImpl(
configureServerSocket = configureServerSocket,
@@ -1,4 +1,4 @@
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
// Copyright 2000-2026 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
/**
* This file is generated by [com.intellij.platform.eel.codegen.BuildersGeneratorTest].
*/
@@ -1,4 +1,4 @@
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
// Copyright 2000-2026 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
/**
* This file is generated by [com.intellij.platform.eel.codegen.BuildersGeneratorTest].
*/
@@ -1,4 +1,4 @@
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
// Copyright 2000-2026 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
/**
* This file is generated by [com.intellij.platform.eel.codegen.BuildersGeneratorTest].
*/
@@ -1,4 +1,4 @@
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
// Copyright 2000-2026 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
/**
* This file is generated by [com.intellij.platform.eel.codegen.BuildersGeneratorTest].
*/
@@ -1,4 +1,4 @@
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
// Copyright 2000-2026 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
/**
* This file is generated by [com.intellij.platform.eel.codegen.BuildersGeneratorTest].
*/
@@ -1,4 +1,4 @@
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
// Copyright 2000-2026 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
/**
* This file is generated by [com.intellij.platform.eel.codegen.BuildersGeneratorTest].
*/
@@ -1,4 +1,4 @@
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
// Copyright 2000-2026 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
/**
* This file is generated by [com.intellij.platform.eel.codegen.BuildersGeneratorTest].
*/
@@ -1,4 +1,4 @@
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
// Copyright 2000-2026 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
/**
* This file is generated by [com.intellij.platform.eel.codegen.BuildersGeneratorTest].
*/
@@ -1,10 +1,9 @@
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
// Copyright 2000-2026 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
/**
* This file is generated by [com.intellij.platform.eel.codegen.BuildersGeneratorTest].
*/
package com.intellij.platform.eel
import com.intellij.platform.eel.*
import com.intellij.platform.eel.EelTunnelsApi.Connection
import com.intellij.platform.eel.channels.EelDelicateApi
import org.jetbrains.annotations.ApiStatus
@@ -1,4 +1,4 @@
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
// Copyright 2000-2026 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
/**
* This file is generated by [com.intellij.platform.eel.codegen.BuildersGeneratorTest].
*/
@@ -1,4 +1,4 @@
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
// Copyright 2000-2026 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
/**
* This file is generated by [com.intellij.platform.eel.codegen.BuildersGeneratorTest].
*/
@@ -1,4 +1,4 @@
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
// Copyright 2000-2026 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
/**
* This file is generated by [com.intellij.platform.eel.codegen.BuildersGeneratorTest].
*/
@@ -1,4 +1,4 @@
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
// Copyright 2000-2026 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
/**
* This file is generated by [com.intellij.platform.eel.codegen.BuildersGeneratorTest].
*/
@@ -6,8 +6,8 @@ package com.intellij.platform.eel.fs
import com.intellij.platform.eel.EelResult
import com.intellij.platform.eel.GeneratedBuilder
import com.intellij.platform.eel.OwnedBuilder
import com.intellij.platform.eel.channels.EelDelicateApi
import com.intellij.platform.eel.fs.EelFileSystemApi.ReadFileResult
import com.intellij.platform.eel.fs.EelFileSystemApi.StatError
import com.intellij.platform.eel.fs.EelFileSystemApi.UnwatchOptions
import com.intellij.platform.eel.fs.EelFileSystemApi.WalkDirectoryOptions
@@ -222,7 +222,7 @@ object EelFileSystemApiHelpers {
class ChangeAttributes(
private val owner: EelFileSystemApi,
private var path: EelPath,
) : OwnedBuilder<EelResult<Unit, EelFileSystemApi.ChangeAttributesError>> {
) : com.intellij.platform.eel.OwnedBuilder<EelResult<Unit, EelFileSystemApi.ChangeAttributesError>> {
private var accessTime: EelFileSystemApi.TimeSinceEpoch? = null
private var modificationTime: EelFileSystemApi.TimeSinceEpoch? = null
@@ -270,7 +270,7 @@ object EelFileSystemApiHelpers {
private val owner: EelFileSystemApi,
private var source: EelPath,
private var target: EelPath,
) : OwnedBuilder<EelResult<Unit, EelFileSystemApi.CopyError>> {
) : com.intellij.platform.eel.OwnedBuilder<EelResult<Unit, EelFileSystemApi.CopyError>> {
private var copyRecursively: Boolean = false
private var followLinks: Boolean = false
@@ -335,7 +335,7 @@ object EelFileSystemApiHelpers {
@ApiStatus.Internal
class CreateTemporaryDirectory(
private val owner: EelFileSystemApi,
) : OwnedBuilder<EelResult<EelPath, EelFileSystemApi.CreateTemporaryEntryError>> {
) : com.intellij.platform.eel.OwnedBuilder<EelResult<EelPath, EelFileSystemApi.CreateTemporaryEntryError>> {
private var deleteOnExit: Boolean = false
private var parentDirectory: EelPath? = null
@@ -383,7 +383,7 @@ object EelFileSystemApiHelpers {
@ApiStatus.Internal
class CreateTemporaryFile(
private val owner: EelFileSystemApi,
) : OwnedBuilder<EelResult<EelPath, EelFileSystemApi.CreateTemporaryEntryError>> {
) : com.intellij.platform.eel.OwnedBuilder<EelResult<EelPath, EelFileSystemApi.CreateTemporaryEntryError>> {
private var deleteOnExit: Boolean = false
private var parentDirectory: EelPath? = null
@@ -432,7 +432,7 @@ object EelFileSystemApiHelpers {
class ListDirectoryWithAttrs(
private val owner: EelFileSystemApi,
private var path: EelPath,
) : OwnedBuilder<EelResult<Collection<Pair<String, EelFileInfo>>, EelFileSystemApi.ListDirectoryError>> {
) : com.intellij.platform.eel.OwnedBuilder<EelResult<Collection<Pair<String, EelFileInfo>>, EelFileSystemApi.ListDirectoryError>> {
private var symlinkPolicy: EelFileSystemApi.SymlinkPolicy = EelFileSystemApi.SymlinkPolicy.DO_NOT_RESOLVE
fun path(arg: EelPath): ListDirectoryWithAttrs = apply {
@@ -486,7 +486,7 @@ object EelFileSystemApiHelpers {
private val owner: EelFileSystemApi,
private var source: EelPath,
private var target: EelPath,
) : OwnedBuilder<EelResult<Unit, EelFileSystemApi.MoveError>> {
) : com.intellij.platform.eel.OwnedBuilder<EelResult<Unit, EelFileSystemApi.MoveError>> {
private var followLinks: Boolean = false
private var replaceExisting: EelFileSystemApi.ReplaceExistingDuringMove = EelFileSystemApi.ReplaceExistingDuringMove.REPLACE_EVERYTHING
@@ -541,7 +541,7 @@ object EelFileSystemApiHelpers {
class OpenForReading(
private val owner: EelFileSystemApi,
private var path: EelPath,
) : OwnedBuilder<EelResult<EelOpenedFile.Reader, EelFileSystemApi.FileReaderError>> {
) : com.intellij.platform.eel.OwnedBuilder<EelResult<EelOpenedFile.Reader, EelFileSystemApi.FileReaderError>> {
private var autoCloseAfterLastChunk: Boolean = false
private var closeImmediatelyIfFileBiggerThan: Long? = null
@@ -615,7 +615,7 @@ object EelFileSystemApiHelpers {
class ReadFile(
private val owner: EelFileSystemApi,
private var path: EelPath,
) : OwnedBuilder<EelResult<EelFileSystemApi.ReadFileResult, EelFileSystemApi.FileReaderError>> {
) : com.intellij.platform.eel.OwnedBuilder<EelResult<ReadFileResult, EelFileSystemApi.FileReaderError>> {
private var buffer: ByteBuffer? = null
private var failFastIfBeyondLimit: Boolean = false
@@ -671,7 +671,7 @@ object EelFileSystemApiHelpers {
* Complete the builder and call [com.intellij.platform.eel.fs.EelFileSystemApi.readFile]
* with an instance of [com.intellij.platform.eel.fs.EelFileSystemApi.ReadFileArgs].
*/
override suspend fun eelIt(): EelResult<EelFileSystemApi.ReadFileResult, EelFileSystemApi.FileReaderError> =
override suspend fun eelIt(): EelResult<ReadFileResult, EelFileSystemApi.FileReaderError> =
owner.readFile(
ReadFileArgsImpl(
buffer = buffer,
@@ -691,7 +691,7 @@ object EelFileSystemApiHelpers {
class Stat(
private val owner: EelFileSystemApi,
private var path: EelPath,
) : OwnedBuilder<EelResult<EelFileInfo, StatError>> {
) : com.intellij.platform.eel.OwnedBuilder<EelResult<EelFileInfo, StatError>> {
private var symlinkPolicy: EelFileSystemApi.SymlinkPolicy = EelFileSystemApi.SymlinkPolicy.DO_NOT_RESOLVE
fun path(arg: EelPath): Stat = apply {
@@ -744,7 +744,7 @@ object EelFileSystemApiHelpers {
class Unwatch(
private val owner: EelFileSystemApi,
private var path: EelPath,
) : OwnedBuilder<Boolean> {
) : com.intellij.platform.eel.OwnedBuilder<Boolean> {
fun path(arg: EelPath): Unwatch = apply {
@@ -772,7 +772,7 @@ object EelFileSystemApiHelpers {
class WalkDirectory(
private val owner: EelFileSystemApi,
private var path: EelPath,
) : OwnedBuilder<Flow<WalkDirectoryEntryResult>> {
) : com.intellij.platform.eel.OwnedBuilder<Flow<WalkDirectoryEntryResult>> {
private var entryOrder: WalkDirectoryOptions.WalkDirectoryEntryOrder = WalkDirectoryOptions.WalkDirectoryEntryOrder.RANDOM
private var fileContentsHash: Boolean = false
@@ -849,7 +849,7 @@ object EelFileSystemApiHelpers {
}
/**
* Yield permissions and timestamps. Default is false.
* Yield permissions, timestamps, and attributes. Default is false.
*/
fun readMetadata(arg: Boolean): WalkDirectory = apply {
this.readMetadata = arg
@@ -962,7 +962,7 @@ object EelFileSystemApiHelpers {
@ApiStatus.Internal
class AddWatchRoots(
private val owner: EelFileSystemApi,
) : OwnedBuilder<Boolean> {
) : com.intellij.platform.eel.OwnedBuilder<Boolean> {
private var changeTypes: Set<EelFileSystemApi.FileChangeType> = emptySet()
private var paths: Set<EelFileSystemApi.WatchedPath> = emptySet()
@@ -997,7 +997,7 @@ object EelFileSystemApiHelpers {
class OpenForReadingAndWriting(
private val owner: EelFileSystemApi,
private var path: EelPath,
) : OwnedBuilder<EelResult<EelOpenedFile.ReaderWriter, EelFileSystemApi.FileWriterError>> {
) : com.intellij.platform.eel.OwnedBuilder<EelResult<EelOpenedFile.ReaderWriter, EelFileSystemApi.FileWriterError>> {
private var append: Boolean = false
private var creationMode: EelFileSystemApi.FileWriterCreationMode = EelFileSystemApi.FileWriterCreationMode.ALLOW_CREATE
@@ -1053,7 +1053,7 @@ object EelFileSystemApiHelpers {
class OpenForWriting(
private val owner: EelFileSystemApi,
private var path: EelPath,
) : OwnedBuilder<EelResult<EelOpenedFile.Writer, EelFileSystemApi.FileWriterError>> {
) : com.intellij.platform.eel.OwnedBuilder<EelResult<EelOpenedFile.Writer, EelFileSystemApi.FileWriterError>> {
private var append: Boolean = false
private var creationMode: EelFileSystemApi.FileWriterCreationMode = EelFileSystemApi.FileWriterCreationMode.ALLOW_CREATE
@@ -1,4 +1,4 @@
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
// Copyright 2000-2026 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
/**
* This file is generated by [com.intellij.platform.eel.codegen.BuildersGeneratorTest].
*/
@@ -6,7 +6,6 @@ package com.intellij.platform.eel.fs
import com.intellij.platform.eel.EelResult
import com.intellij.platform.eel.GeneratedBuilder
import com.intellij.platform.eel.OwnedBuilder
import com.intellij.platform.eel.fs.EelFileSystemApi.StatError
import com.intellij.platform.eel.path.EelPath
import org.jetbrains.annotations.ApiStatus
@@ -43,7 +42,7 @@ object EelFileSystemPosixApiHelpers {
class ListDirectoryWithAttrs(
private val owner: EelFileSystemPosixApi,
private var path: EelPath,
) : OwnedBuilder<EelResult<Collection<Pair<String, EelPosixFileInfo>>, EelFileSystemApi.ListDirectoryError>> {
) : com.intellij.platform.eel.OwnedBuilder<EelResult<Collection<Pair<String, EelPosixFileInfo>>, EelFileSystemApi.ListDirectoryError>> {
private var symlinkPolicy: EelFileSystemApi.SymlinkPolicy = EelFileSystemApi.SymlinkPolicy.DO_NOT_RESOLVE
fun path(arg: EelPath): ListDirectoryWithAttrs = apply {
@@ -96,7 +95,7 @@ object EelFileSystemPosixApiHelpers {
class Stat(
private val owner: EelFileSystemPosixApi,
private var path: EelPath,
) : OwnedBuilder<EelResult<EelPosixFileInfo, StatError>> {
) : com.intellij.platform.eel.OwnedBuilder<EelResult<EelPosixFileInfo, StatError>> {
private var symlinkPolicy: EelFileSystemApi.SymlinkPolicy = EelFileSystemApi.SymlinkPolicy.DO_NOT_RESOLVE
fun path(arg: EelPath): Stat = apply {
@@ -1,4 +1,4 @@
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
// Copyright 2000-2026 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
/**
* This file is generated by [com.intellij.platform.eel.codegen.BuildersGeneratorTest].
*/
@@ -6,7 +6,6 @@ package com.intellij.platform.eel.fs
import com.intellij.platform.eel.EelResult
import com.intellij.platform.eel.GeneratedBuilder
import com.intellij.platform.eel.OwnedBuilder
import com.intellij.platform.eel.fs.EelFileSystemApi.StatError
import com.intellij.platform.eel.path.EelPath
import org.jetbrains.annotations.ApiStatus
@@ -43,7 +42,7 @@ object EelFileSystemWindowsApiHelpers {
class ListDirectoryWithAttrs(
private val owner: EelFileSystemWindowsApi,
private var path: EelPath,
) : OwnedBuilder<EelResult<Collection<Pair<String, EelWindowsFileInfo>>, EelFileSystemApi.ListDirectoryError>> {
) : com.intellij.platform.eel.OwnedBuilder<EelResult<Collection<Pair<String, EelWindowsFileInfo>>, EelFileSystemApi.ListDirectoryError>> {
private var symlinkPolicy: EelFileSystemApi.SymlinkPolicy = EelFileSystemApi.SymlinkPolicy.DO_NOT_RESOLVE
fun path(arg: EelPath): ListDirectoryWithAttrs = apply {
@@ -96,7 +95,7 @@ object EelFileSystemWindowsApiHelpers {
class Stat(
private val owner: EelFileSystemWindowsApi,
private var path: EelPath,
) : OwnedBuilder<EelResult<EelWindowsFileInfo, StatError>> {
) : com.intellij.platform.eel.OwnedBuilder<EelResult<EelWindowsFileInfo, StatError>> {
private var symlinkPolicy: EelFileSystemApi.SymlinkPolicy = EelFileSystemApi.SymlinkPolicy.DO_NOT_RESOLVE
fun path(arg: EelPath): Stat = apply {
@@ -1,4 +1,4 @@
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
// Copyright 2000-2026 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
/**
* This file is generated by [com.intellij.platform.eel.codegen.BuildersGeneratorTest].
*/
@@ -1,4 +1,4 @@
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
// Copyright 2000-2026 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
/**
* This file is generated by [com.intellij.platform.eel.codegen.BuildersGeneratorTest].
*/
@@ -1,4 +1,4 @@
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
// Copyright 2000-2026 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
/**
* This file is generated by [com.intellij.platform.eel.codegen.BuildersGeneratorTest].
*/
@@ -1,4 +1,4 @@
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
// Copyright 2000-2026 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
/**
* This file is generated by [com.intellij.platform.eel.codegen.BuildersGeneratorTest].
*/
@@ -1,4 +1,4 @@
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
// Copyright 2000-2026 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
/**
* This file is generated by [com.intellij.platform.eel.codegen.BuildersGeneratorTest].
*/
@@ -1,4 +1,4 @@
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
// Copyright 2000-2026 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
/**
* This file is generated by [com.intellij.platform.eel.codegen.BuildersGeneratorTest].
*/
@@ -1,4 +1,4 @@
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
// Copyright 2000-2026 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
/**
* This file is generated by [com.intellij.platform.eel.codegen.BuildersGeneratorTest].
*/
@@ -1,4 +1,4 @@
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
// Copyright 2000-2026 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
/**
* This file is generated by [com.intellij.platform.eel.codegen.BuildersGeneratorTest].
*/