summaryrefslogtreecommitdiff
path: root/plugins/kotlin/performance-tests/test/org/jetbrains/kotlin/idea/perf/common/ProjectAction.kt
blob: 22e096388498945edbf9d14b087dc064f4cd0389 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.kotlin.idea.perf.common

sealed class ProjectAction {
    abstract val id: String
    abstract val filePath: String
}

data class HighlightFile(override val filePath: String) : ProjectAction() {
    override val id: String = "highlighting"
}

data class TypeAndAutocompleteInFile(
    override val filePath: String,
    val typeAfter: String,
    val textToType: String,
    val expectedLookupElements: List<String>,
    val note: String? = null
) : ProjectAction() {
    override val id: String = "completion"
}