From be4bc81b1b07aa91912ee6e874ef8658332a3ce8 Mon Sep 17 00:00:00 2001 From: Dmitrii Gridin Date: Wed, 22 Nov 2023 17:46:36 +0100 Subject: [PATCH] [FIR] FirFileSymbol: add stable toString It will be used in tests in the next commit ^KT-63042 --- .../org/jetbrains/kotlin/fir/symbols/impl/FirFileSymbol.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/compiler/fir/tree/src/org/jetbrains/kotlin/fir/symbols/impl/FirFileSymbol.kt b/compiler/fir/tree/src/org/jetbrains/kotlin/fir/symbols/impl/FirFileSymbol.kt index 95e09778066..567c80b9361 100644 --- a/compiler/fir/tree/src/org/jetbrains/kotlin/fir/symbols/impl/FirFileSymbol.kt +++ b/compiler/fir/tree/src/org/jetbrains/kotlin/fir/symbols/impl/FirFileSymbol.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors. + * Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ @@ -8,4 +8,6 @@ package org.jetbrains.kotlin.fir.symbols.impl import org.jetbrains.kotlin.fir.declarations.FirFile import org.jetbrains.kotlin.fir.symbols.FirBasedSymbol -class FirFileSymbol : FirBasedSymbol() +class FirFileSymbol : FirBasedSymbol() { + override fun toString(): String = "${this::class.simpleName} ${fir.name}" +}