Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
硅谷海盗
kotlin
提交
c38a7933
K
kotlin
项目概览
硅谷海盗
/
kotlin
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
kotlin
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
c38a7933
编写于
3月 22, 2021
作者:
I
Ilya Kirillov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
FIR IDE: replace custom KtSymbolVisibility with compiler common Visibility
上级
31542341
变更
45
展开全部
隐藏空白更改
内联
并排
Showing
45 changed file
with
268 addition
and
282 deletion
+268
-282
idea/idea-frontend-api/src/org/jetbrains/kotlin/idea/frontend/api/symbols/markers/KtSymbolWithVisibility.kt
...ea/frontend/api/symbols/markers/KtSymbolWithVisibility.kt
+6
-12
idea/idea-frontend-fir/src/org/jetbrains/kotlin/idea/asJava/classes/FirLightClassForSymbol.kt
...ains/kotlin/idea/asJava/classes/FirLightClassForSymbol.kt
+2
-2
idea/idea-frontend-fir/src/org/jetbrains/kotlin/idea/asJava/firLightUtils.kt
...fir/src/org/jetbrains/kotlin/idea/asJava/firLightUtils.kt
+6
-4
idea/idea-frontend-fir/src/org/jetbrains/kotlin/idea/asJava/methods/FirLightMethod.kt
...rg/jetbrains/kotlin/idea/asJava/methods/FirLightMethod.kt
+3
-3
idea/idea-frontend-fir/src/org/jetbrains/kotlin/idea/frontend/api/fir/symbols/KtFirConstructorSymbol.kt
...n/idea/frontend/api/fir/symbols/KtFirConstructorSymbol.kt
+2
-2
idea/idea-frontend-fir/src/org/jetbrains/kotlin/idea/frontend/api/fir/symbols/KtFirFunctionSymbol.kt
...tlin/idea/frontend/api/fir/symbols/KtFirFunctionSymbol.kt
+2
-1
idea/idea-frontend-fir/src/org/jetbrains/kotlin/idea/frontend/api/fir/symbols/KtFirJavaFieldSymbol.kt
...lin/idea/frontend/api/fir/symbols/KtFirJavaFieldSymbol.kt
+2
-2
idea/idea-frontend-fir/src/org/jetbrains/kotlin/idea/frontend/api/fir/symbols/KtFirKotlinPropertySymbol.kt
...dea/frontend/api/fir/symbols/KtFirKotlinPropertySymbol.kt
+2
-1
idea/idea-frontend-fir/src/org/jetbrains/kotlin/idea/frontend/api/fir/symbols/KtFirNamedClassOrObjectSymbol.kt
...frontend/api/fir/symbols/KtFirNamedClassOrObjectSymbol.kt
+2
-1
idea/idea-frontend-fir/src/org/jetbrains/kotlin/idea/frontend/api/fir/symbols/KtFirPropertyGetterSymbol.kt
...dea/frontend/api/fir/symbols/KtFirPropertyGetterSymbol.kt
+2
-2
idea/idea-frontend-fir/src/org/jetbrains/kotlin/idea/frontend/api/fir/symbols/KtFirPropertySetterSymbol.kt
...dea/frontend/api/fir/symbols/KtFirPropertySetterSymbol.kt
+2
-1
idea/idea-frontend-fir/src/org/jetbrains/kotlin/idea/frontend/api/fir/symbols/KtFirSyntheticJavaPropertySymbol.kt
...ntend/api/fir/symbols/KtFirSyntheticJavaPropertySymbol.kt
+2
-1
idea/idea-frontend-fir/src/org/jetbrains/kotlin/idea/frontend/api/fir/symbols/firSymbolUtils.kt
...ns/kotlin/idea/frontend/api/fir/symbols/firSymbolUtils.kt
+3
-18
idea/idea-frontend-fir/testData/fileScopeTest/simpleFileScope.kt.result
...tend-fir/testData/fileScopeTest/simpleFileScope.kt.result
+4
-4
idea/idea-frontend-fir/testData/memberScopeByFqName/Int.kt
idea/idea-frontend-fir/testData/memberScopeByFqName/Int.kt
+63
-63
idea/idea-frontend-fir/testData/memberScopeByFqName/MutableList.kt
...-frontend-fir/testData/memberScopeByFqName/MutableList.kt
+24
-24
idea/idea-frontend-fir/testData/memberScopeByFqName/java.lang.String.kt
...tend-fir/testData/memberScopeByFqName/java.lang.String.kt
+78
-78
idea/idea-frontend-fir/testData/memberScopeByFqName/kotlin.Function2.kt
...tend-fir/testData/memberScopeByFqName/kotlin.Function2.kt
+4
-4
idea/idea-frontend-fir/testData/symbols/symbolByFqName/class.kt
...dea-frontend-fir/testData/symbols/symbolByFqName/class.kt
+1
-1
idea/idea-frontend-fir/testData/symbols/symbolByFqName/classFromJdk.kt
...ntend-fir/testData/symbols/symbolByFqName/classFromJdk.kt
+1
-1
idea/idea-frontend-fir/testData/symbols/symbolByFqName/fileWalkDirectionEnum.kt
.../testData/symbols/symbolByFqName/fileWalkDirectionEnum.kt
+3
-3
idea/idea-frontend-fir/testData/symbols/symbolByFqName/iterator.kt
...-frontend-fir/testData/symbols/symbolByFqName/iterator.kt
+1
-1
idea/idea-frontend-fir/testData/symbols/symbolByFqName/listOf.kt
...ea-frontend-fir/testData/symbols/symbolByFqName/listOf.kt
+1
-1
idea/idea-frontend-fir/testData/symbols/symbolByFqName/memberFunction.kt
...end-fir/testData/symbols/symbolByFqName/memberFunction.kt
+1
-1
idea/idea-frontend-fir/testData/symbols/symbolByFqName/memberFunctionWithOverloads.kt
...ata/symbols/symbolByFqName/memberFunctionWithOverloads.kt
+2
-2
idea/idea-frontend-fir/testData/symbols/symbolByFqName/nestedClass.kt
...ontend-fir/testData/symbols/symbolByFqName/nestedClass.kt
+1
-1
idea/idea-frontend-fir/testData/symbols/symbolByPsi/annotations.kt
...-frontend-fir/testData/symbols/symbolByPsi/annotations.kt
+4
-4
idea/idea-frontend-fir/testData/symbols/symbolByPsi/anonymousObject.kt
...ntend-fir/testData/symbols/symbolByPsi/anonymousObject.kt
+4
-4
idea/idea-frontend-fir/testData/symbols/symbolByPsi/class.kt
idea/idea-frontend-fir/testData/symbols/symbolByPsi/class.kt
+1
-1
idea/idea-frontend-fir/testData/symbols/symbolByPsi/classMembes.kt
...-frontend-fir/testData/symbols/symbolByPsi/classMembes.kt
+3
-3
idea/idea-frontend-fir/testData/symbols/symbolByPsi/classPrimaryConstructor.kt
...r/testData/symbols/symbolByPsi/classPrimaryConstructor.kt
+2
-2
idea/idea-frontend-fir/testData/symbols/symbolByPsi/classSecondaryConstructors.kt
...estData/symbols/symbolByPsi/classSecondaryConstructors.kt
+4
-4
idea/idea-frontend-fir/testData/symbols/symbolByPsi/classWithTypeParams.kt
...d-fir/testData/symbols/symbolByPsi/classWithTypeParams.kt
+1
-1
idea/idea-frontend-fir/testData/symbols/symbolByPsi/enum.kt
idea/idea-frontend-fir/testData/symbols/symbolByPsi/enum.kt
+1
-1
idea/idea-frontend-fir/testData/symbols/symbolByPsi/extensionFunction.kt
...end-fir/testData/symbols/symbolByPsi/extensionFunction.kt
+1
-1
idea/idea-frontend-fir/testData/symbols/symbolByPsi/function.kt
...dea-frontend-fir/testData/symbols/symbolByPsi/function.kt
+1
-1
idea/idea-frontend-fir/testData/symbols/symbolByPsi/functionWithTypeParams.kt
...ir/testData/symbols/symbolByPsi/functionWithTypeParams.kt
+1
-1
idea/idea-frontend-fir/testData/symbols/symbolByPsi/implicitReturn.kt
...ontend-fir/testData/symbols/symbolByPsi/implicitReturn.kt
+1
-1
idea/idea-frontend-fir/testData/symbols/symbolByPsi/localDeclarations.kt
...end-fir/testData/symbols/symbolByPsi/localDeclarations.kt
+3
-3
idea/idea-frontend-fir/testData/symbols/symbolByPsi/memberFunctions.kt
...ntend-fir/testData/symbols/symbolByPsi/memberFunctions.kt
+3
-3
idea/idea-frontend-fir/testData/symbols/symbolByPsi/memberProperties.kt
...tend-fir/testData/symbols/symbolByPsi/memberProperties.kt
+4
-4
idea/idea-frontend-fir/testData/symbols/symbolByPsi/topLevelFunctions.kt
...end-fir/testData/symbols/symbolByPsi/topLevelFunctions.kt
+2
-2
idea/idea-frontend-fir/testData/symbols/symbolByPsi/topLevelProperties.kt
...nd-fir/testData/symbols/symbolByPsi/topLevelProperties.kt
+3
-3
idea/idea-frontend-fir/testData/symbols/symbolByPsi/typeAnnotations.kt
...ntend-fir/testData/symbols/symbolByPsi/typeAnnotations.kt
+8
-8
idea/idea-frontend-fir/testData/symbols/symbolByReference/constructorViaTypeAlias.kt
...Data/symbols/symbolByReference/constructorViaTypeAlias.kt
+1
-1
未找到文件。
idea/idea-frontend-api/src/org/jetbrains/kotlin/idea/frontend/api/symbols/markers/KtSymbolWithVisibility.kt
浏览文件 @
c38a7933
...
...
@@ -5,19 +5,13 @@
package
org.jetbrains.kotlin.idea.frontend.api.symbols.markers
import
org.jetbrains.kotlin.descriptors.Visibilities
import
org.jetbrains.kotlin.descriptors.Visibility
interface
KtSymbolWithVisibility
{
val
visibility
:
KtSymbol
Visibility
val
visibility
:
Visibility
}
sealed
class
KtSymbolVisibility
{
object
PUBLIC
:
KtSymbolVisibility
()
object
PRIVATE
:
KtSymbolVisibility
()
object
PRIVATE_TO_THIS
:
KtSymbolVisibility
()
object
PROTECTED
:
KtSymbolVisibility
()
object
INTERNAL
:
KtSymbolVisibility
()
object
UNKNOWN
:
KtSymbolVisibility
()
object
LOCAL
:
KtSymbolVisibility
()
}
fun
KtSymbolVisibility
.
isPrivateOrPrivateToThis
():
Boolean
=
this
==
KtSymbolVisibility
.
PRIVATE
||
this
==
KtSymbolVisibility
.
PRIVATE_TO_THIS
\ No newline at end of file
fun
Visibility
.
isPrivateOrPrivateToThis
():
Boolean
=
this
==
Visibilities
.
Private
||
this
==
Visibilities
.
PrivateToThis
\ No newline at end of file
idea/idea-frontend-fir/src/org/jetbrains/kotlin/idea/asJava/classes/FirLightClassForSymbol.kt
浏览文件 @
c38a7933
...
...
@@ -9,12 +9,12 @@ import com.intellij.psi.*
import
org.jetbrains.kotlin.asJava.classes.lazyPub
import
org.jetbrains.kotlin.asJava.elements.KtLightField
import
org.jetbrains.kotlin.asJava.elements.KtLightMethod
import
org.jetbrains.kotlin.descriptors.Visibility
import
org.jetbrains.kotlin.idea.asJava.classes.*
import
org.jetbrains.kotlin.idea.frontend.api.fir.analyzeWithSymbolAsContext
import
org.jetbrains.kotlin.idea.frontend.api.isValid
import
org.jetbrains.kotlin.idea.frontend.api.symbols.*
import
org.jetbrains.kotlin.idea.frontend.api.symbols.markers.KtSymbolKind
import
org.jetbrains.kotlin.idea.frontend.api.symbols.markers.KtSymbolVisibility
import
org.jetbrains.kotlin.idea.frontend.api.symbols.markers.KtSymbolWithVisibility
import
org.jetbrains.kotlin.load.java.JvmAbi
...
...
@@ -27,7 +27,7 @@ internal class FirLightClassForSymbol(
require
(
classOrObjectSymbol
.
classKind
!=
KtClassKind
.
INTERFACE
&&
classOrObjectSymbol
.
classKind
!=
KtClassKind
.
ANNOTATION_CLASS
)
}
internal
fun
tryGetEffectiveVisibility
(
symbol
:
KtCallableSymbol
):
KtSymbol
Visibility
?
{
internal
fun
tryGetEffectiveVisibility
(
symbol
:
KtCallableSymbol
):
Visibility
?
{
if
(
symbol
!
is
KtPropertySymbol
&&
symbol
!
is
KtFunctionSymbol
)
return
null
...
...
idea/idea-frontend-fir/src/org/jetbrains/kotlin/idea/asJava/firLightUtils.kt
浏览文件 @
c38a7933
...
...
@@ -16,6 +16,8 @@ import org.jetbrains.kotlin.asJava.elements.KtLightMember
import
org.jetbrains.kotlin.codegen.signature.BothSignatureWriter
import
org.jetbrains.kotlin.descriptors.ClassKind
import
org.jetbrains.kotlin.descriptors.Modality
import
org.jetbrains.kotlin.descriptors.Visibilities
import
org.jetbrains.kotlin.descriptors.Visibility
import
org.jetbrains.kotlin.fir.FirSession
import
org.jetbrains.kotlin.fir.backend.jvm.jvmTypeMapper
import
org.jetbrains.kotlin.fir.declarations.*
...
...
@@ -236,15 +238,15 @@ internal fun KtSymbolWithVisibility.toPsiVisibilityForMember(isTopLevel: Boolean
internal
fun
KtSymbolWithVisibility
.
toPsiVisibilityForClass
(
isTopLevel
:
Boolean
):
String
=
visibility
.
toPsiVisibility
(
isTopLevel
,
forClass
=
true
)
internal
fun
KtSymbol
Visibility
.
toPsiVisibilityForMember
(
isTopLevel
:
Boolean
):
String
=
internal
fun
Visibility
.
toPsiVisibilityForMember
(
isTopLevel
:
Boolean
):
String
=
toPsiVisibility
(
isTopLevel
,
forClass
=
false
)
private
fun
KtSymbol
Visibility
.
toPsiVisibility
(
isTopLevel
:
Boolean
,
forClass
:
Boolean
):
String
=
when
(
this
)
{
private
fun
Visibility
.
toPsiVisibility
(
isTopLevel
:
Boolean
,
forClass
:
Boolean
):
String
=
when
(
this
)
{
// Top-level private class has PACKAGE_LOCAL visibility in Java
// Nested private class has PRIVATE visibility
KtSymbolVisibility
.
PRIVATE
,
KtSymbolVisibility
.
PRIVATE_TO_THIS
->
Visibilities
.
Private
,
Visibilities
.
PrivateToThis
->
if
(
forClass
&&
isTopLevel
)
PsiModifier
.
PACKAGE_LOCAL
else
PsiModifier
.
PRIVATE
KtSymbolVisibility
.
PROTECTED
->
PsiModifier
.
PROTECTED
Visibilities
.
Protected
->
PsiModifier
.
PROTECTED
else
->
PsiModifier
.
PUBLIC
}
...
...
idea/idea-frontend-fir/src/org/jetbrains/kotlin/idea/asJava/methods/FirLightMethod.kt
浏览文件 @
c38a7933
...
...
@@ -16,11 +16,11 @@ import org.jetbrains.kotlin.asJava.classes.KtLightClass
import
org.jetbrains.kotlin.asJava.classes.cannotModify
import
org.jetbrains.kotlin.asJava.elements.KtLightMethod
import
org.jetbrains.kotlin.codegen.state.KotlinTypeMapper
import
org.jetbrains.kotlin.descriptors.Visibilities
import
org.jetbrains.kotlin.descriptors.annotations.AnnotationUseSiteTarget
import
org.jetbrains.kotlin.idea.frontend.api.isValid
import
org.jetbrains.kotlin.idea.frontend.api.symbols.KtCallableSymbol
import
org.jetbrains.kotlin.idea.frontend.api.symbols.markers.KtAnnotatedSymbol
import
org.jetbrains.kotlin.idea.frontend.api.symbols.markers.KtSymbolVisibility
import
org.jetbrains.kotlin.idea.frontend.api.symbols.markers.KtSymbolWithVisibility
import
org.jetbrains.kotlin.idea.util.ifTrue
import
org.jetbrains.kotlin.idea.util.module
...
...
@@ -89,11 +89,11 @@ internal abstract class FirLightMethod(
):
String
where
T
:
KtAnnotatedSymbol
,
T
:
KtSymbolWithVisibility
,
T
:
KtCallableSymbol
{
getJvmNameFromAnnotation
(
annotationUseSiteTarget
)
?.
let
{
return
it
}
val
effectiveVisibilityIfNotInternal
=
(
visibility
!=
KtSymbolVisibility
.
INTERNAL
).
ifTrue
{
val
effectiveVisibilityIfNotInternal
=
(
visibility
!=
Visibilities
.
Internal
).
ifTrue
{
(
containingClass
as
?
FirLightClassForSymbol
)
?.
tryGetEffectiveVisibility
(
this
)
}
?:
this
.
visibility
if
(
effectiveVisibilityIfNotInternal
!=
KtSymbolVisibility
.
INTERNAL
)
return
defaultName
if
(
effectiveVisibilityIfNotInternal
!=
Visibilities
.
Internal
)
return
defaultName
val
moduleName
=
module
?.
name
?:
return
defaultName
...
...
idea/idea-frontend-fir/src/org/jetbrains/kotlin/idea/frontend/api/fir/symbols/KtFirConstructorSymbol.kt
浏览文件 @
c38a7933
...
...
@@ -6,6 +6,7 @@
package
org.jetbrains.kotlin.idea.frontend.api.fir.symbols
import
com.intellij.psi.PsiElement
import
org.jetbrains.kotlin.descriptors.Visibility
import
org.jetbrains.kotlin.fir.containingClass
import
org.jetbrains.kotlin.fir.declarations.FirConstructor
import
org.jetbrains.kotlin.fir.declarations.FirResolvePhase
...
...
@@ -25,7 +26,6 @@ import org.jetbrains.kotlin.idea.frontend.api.symbols.KtConstructorSymbol
import
org.jetbrains.kotlin.idea.frontend.api.symbols.KtValueParameterSymbol
import
org.jetbrains.kotlin.idea.frontend.api.symbols.markers.KtAnnotationCall
import
org.jetbrains.kotlin.idea.frontend.api.symbols.markers.KtSymbolKind
import
org.jetbrains.kotlin.idea.frontend.api.symbols.markers.KtSymbolVisibility
import
org.jetbrains.kotlin.idea.frontend.api.symbols.markers.KtTypeAndAnnotations
import
org.jetbrains.kotlin.idea.frontend.api.symbols.pointers.CanNotCreateSymbolPointerForLocalLibraryDeclarationException
import
org.jetbrains.kotlin.idea.frontend.api.symbols.pointers.KtPsiBasedSymbolPointer
...
...
@@ -54,7 +54,7 @@ internal class KtFirConstructorSymbol(
}
}
override
val
visibility
:
KtSymbol
Visibility
get
()
=
getVisibility
()
override
val
visibility
:
Visibility
get
()
=
getVisibility
()
override
val
annotations
:
List
<
KtAnnotationCall
>
by
cached
{
firRef
.
toAnnotationsList
()
}
override
fun
containsAnnotation
(
classId
:
ClassId
):
Boolean
=
firRef
.
containsAnnotation
(
classId
)
...
...
idea/idea-frontend-fir/src/org/jetbrains/kotlin/idea/frontend/api/fir/symbols/KtFirFunctionSymbol.kt
浏览文件 @
c38a7933
...
...
@@ -6,6 +6,7 @@
package
org.jetbrains.kotlin.idea.frontend.api.fir.symbols
import
com.intellij.psi.PsiElement
import
org.jetbrains.kotlin.descriptors.Visibility
import
org.jetbrains.kotlin.fir.containingClass
import
org.jetbrains.kotlin.fir.declarations.*
import
org.jetbrains.kotlin.idea.fir.findPsi
...
...
@@ -91,7 +92,7 @@ internal class KtFirFunctionSymbol(
}
override
val
modality
:
KtCommonSymbolModality
get
()
=
getModality
()
override
val
visibility
:
KtSymbol
Visibility
get
()
=
getVisibility
()
override
val
visibility
:
Visibility
get
()
=
getVisibility
()
override
fun
createPointer
():
KtSymbolPointer
<
KtFunctionSymbol
>
{
KtPsiBasedSymbolPointer
.
createForSymbolFromSource
(
this
)
?.
let
{
return
it
}
...
...
idea/idea-frontend-fir/src/org/jetbrains/kotlin/idea/frontend/api/fir/symbols/KtFirJavaFieldSymbol.kt
浏览文件 @
c38a7933
...
...
@@ -6,6 +6,7 @@
package
org.jetbrains.kotlin.idea.frontend.api.fir.symbols
import
com.intellij.psi.PsiElement
import
org.jetbrains.kotlin.descriptors.Visibility
import
org.jetbrains.kotlin.fir.declarations.FirField
import
org.jetbrains.kotlin.fir.declarations.FirResolvePhase
import
org.jetbrains.kotlin.idea.fir.findPsi
...
...
@@ -18,7 +19,6 @@ import org.jetbrains.kotlin.idea.frontend.api.fir.utils.firRef
import
org.jetbrains.kotlin.idea.frontend.api.fir.utils.weakRef
import
org.jetbrains.kotlin.idea.frontend.api.symbols.KtJavaFieldSymbol
import
org.jetbrains.kotlin.idea.frontend.api.symbols.markers.KtCommonSymbolModality
import
org.jetbrains.kotlin.idea.frontend.api.symbols.markers.KtSymbolVisibility
import
org.jetbrains.kotlin.idea.frontend.api.symbols.markers.KtTypeAndAnnotations
import
org.jetbrains.kotlin.idea.frontend.api.symbols.pointers.KtSymbolPointer
import
org.jetbrains.kotlin.name.FqName
...
...
@@ -47,7 +47,7 @@ internal class KtFirJavaFieldSymbol(
override
val
modality
:
KtCommonSymbolModality
get
()
=
getModality
()
override
val
visibility
:
KtSymbol
Visibility
get
()
=
getVisibility
()
override
val
visibility
:
Visibility
get
()
=
getVisibility
()
override
fun
createPointer
():
KtSymbolPointer
<
KtJavaFieldSymbol
>
{
TODO
(
"Creating pointers for java fields is not supported yet"
)
...
...
idea/idea-frontend-fir/src/org/jetbrains/kotlin/idea/frontend/api/fir/symbols/KtFirKotlinPropertySymbol.kt
浏览文件 @
c38a7933
...
...
@@ -6,6 +6,7 @@
package
org.jetbrains.kotlin.idea.frontend.api.fir.symbols
import
com.intellij.psi.PsiElement
import
org.jetbrains.kotlin.descriptors.Visibility
import
org.jetbrains.kotlin.fir.containingClass
import
org.jetbrains.kotlin.fir.declarations.*
import
org.jetbrains.kotlin.fir.declarations.synthetic.FirSyntheticProperty
...
...
@@ -76,7 +77,7 @@ internal class KtFirKotlinPropertySymbol(
}
override
val
modality
:
KtCommonSymbolModality
get
()
=
getModality
()
override
val
visibility
:
KtSymbol
Visibility
get
()
=
getVisibility
()
override
val
visibility
:
Visibility
get
()
=
getVisibility
()
override
val
annotations
:
List
<
KtAnnotationCall
>
by
cached
{
firRef
.
toAnnotationsList
()
}
override
fun
containsAnnotation
(
classId
:
ClassId
):
Boolean
=
firRef
.
containsAnnotation
(
classId
)
...
...
idea/idea-frontend-fir/src/org/jetbrains/kotlin/idea/frontend/api/fir/symbols/KtFirNamedClassOrObjectSymbol.kt
浏览文件 @
c38a7933
...
...
@@ -7,6 +7,7 @@ package org.jetbrains.kotlin.idea.frontend.api.fir.symbols
import
com.intellij.psi.PsiElement
import
org.jetbrains.kotlin.descriptors.ClassKind
import
org.jetbrains.kotlin.descriptors.Visibility
import
org.jetbrains.kotlin.fir.declarations.*
import
org.jetbrains.kotlin.idea.fir.findPsi
import
org.jetbrains.kotlin.idea.fir.low.level.api.api.FirModuleResolveState
...
...
@@ -45,7 +46,7 @@ internal class KtFirNamedClassOrObjectSymbol(
override
val
modality
:
KtSymbolModality
get
()
=
getModality
()
override
val
visibility
:
KtSymbol
Visibility
get
()
=
getVisibility
()
override
val
visibility
:
Visibility
get
()
=
getVisibility
()
override
val
annotations
:
List
<
KtAnnotationCall
>
by
cached
{
firRef
.
toAnnotationsList
()
}
override
fun
containsAnnotation
(
classId
:
ClassId
):
Boolean
=
firRef
.
containsAnnotation
(
classId
)
...
...
idea/idea-frontend-fir/src/org/jetbrains/kotlin/idea/frontend/api/fir/symbols/KtFirPropertyGetterSymbol.kt
浏览文件 @
c38a7933
...
...
@@ -6,6 +6,7 @@
package
org.jetbrains.kotlin.idea.frontend.api.fir.symbols
import
com.intellij.psi.PsiElement
import
org.jetbrains.kotlin.descriptors.Visibility
import
org.jetbrains.kotlin.fir.declarations.*
import
org.jetbrains.kotlin.fir.declarations.impl.FirDefaultPropertyAccessor
import
org.jetbrains.kotlin.idea.fir.findPsi
...
...
@@ -56,8 +57,7 @@ internal class KtFirPropertyGetterSymbol(
firRef
.
returnTypeAndAnnotations
(
FirResolvePhase
.
IMPLICIT_TYPES_BODY_RESOLVE
,
builder
)
}
override
val
modality
:
KtCommonSymbolModality
get
()
=
firRef
.
withFir
(
FirResolvePhase
.
STATUS
)
{
it
.
modality
.
getSymbolModality
()
}
override
val
visibility
:
KtSymbolVisibility
get
()
=
firRef
.
withFir
(
FirResolvePhase
.
STATUS
)
{
it
.
visibility
.
getSymbolVisibility
()
}
override
val
visibility
:
Visibility
get
()
=
getVisibility
()
override
val
annotations
:
List
<
KtAnnotationCall
>
by
cached
{
firRef
.
toAnnotationsList
()
}
override
fun
containsAnnotation
(
classId
:
ClassId
):
Boolean
=
firRef
.
containsAnnotation
(
classId
)
override
val
annotationClassIds
:
Collection
<
ClassId
>
by
cached
{
firRef
.
getAnnotationClassIds
()
}
...
...
idea/idea-frontend-fir/src/org/jetbrains/kotlin/idea/frontend/api/fir/symbols/KtFirPropertySetterSymbol.kt
浏览文件 @
c38a7933
...
...
@@ -6,6 +6,7 @@
package
org.jetbrains.kotlin.idea.frontend.api.fir.symbols
import
com.intellij.psi.PsiElement
import
org.jetbrains.kotlin.descriptors.Visibility
import
org.jetbrains.kotlin.fir.declarations.*
import
org.jetbrains.kotlin.fir.declarations.impl.FirDefaultPropertyAccessor
import
org.jetbrains.kotlin.idea.fir.findPsi
...
...
@@ -46,7 +47,7 @@ internal class KtFirPropertySetterSymbol(
override
val
hasBody
:
Boolean
get
()
=
firRef
.
withFir
{
it
.
body
!=
null
}
override
val
modality
:
KtCommonSymbolModality
get
()
=
firRef
.
withFir
(
FirResolvePhase
.
STATUS
)
{
it
.
modality
.
getSymbolModality
()
}
override
val
visibility
:
KtSymbolVisibility
get
()
=
firRef
.
withFir
(
FirResolvePhase
.
STATUS
)
{
it
.
visibility
.
getSymbolVisibility
()
}
override
val
visibility
:
Visibility
get
()
=
getVisibility
()
override
val
annotations
:
List
<
KtAnnotationCall
>
by
cached
{
firRef
.
toAnnotationsList
()
}
override
fun
containsAnnotation
(
classId
:
ClassId
):
Boolean
=
firRef
.
containsAnnotation
(
classId
)
...
...
idea/idea-frontend-fir/src/org/jetbrains/kotlin/idea/frontend/api/fir/symbols/KtFirSyntheticJavaPropertySymbol.kt
浏览文件 @
c38a7933
...
...
@@ -6,6 +6,7 @@
package
org.jetbrains.kotlin.idea.frontend.api.fir.symbols
import
com.intellij.psi.PsiElement
import
org.jetbrains.kotlin.descriptors.Visibility
import
org.jetbrains.kotlin.fir.containingClass
import
org.jetbrains.kotlin.fir.declarations.*
import
org.jetbrains.kotlin.fir.declarations.synthetic.FirSyntheticProperty
...
...
@@ -59,7 +60,7 @@ internal class KtFirSyntheticJavaPropertySymbol(
override
val
initializer
:
KtConstantValue
?
by
firRef
.
withFirAndCache
(
FirResolvePhase
.
BODY_RESOLVE
)
{
fir
->
fir
.
initializer
?.
convertConstantExpression
()
}
override
val
modality
:
KtCommonSymbolModality
get
()
=
getModality
()
override
val
visibility
:
KtSymbol
Visibility
get
()
=
getVisibility
()
override
val
visibility
:
Visibility
get
()
=
getVisibility
()
override
val
annotations
:
List
<
KtAnnotationCall
>
by
cached
{
firRef
.
toAnnotationsList
()
}
override
fun
containsAnnotation
(
classId
:
ClassId
):
Boolean
=
firRef
.
containsAnnotation
(
classId
)
...
...
idea/idea-frontend-fir/src/org/jetbrains/kotlin/idea/frontend/api/fir/symbols/firSymbolUtils.kt
浏览文件 @
c38a7933
...
...
@@ -6,9 +6,7 @@
package
org.jetbrains.kotlin.idea.frontend.api.fir.symbols
import
org.jetbrains.kotlin.descriptors.Modality
import
org.jetbrains.kotlin.descriptors.Visibilities
import
org.jetbrains.kotlin.descriptors.Visibility
import
org.jetbrains.kotlin.descriptors.java.JavaVisibilities
import
org.jetbrains.kotlin.fir.FirSession
import
org.jetbrains.kotlin.fir.declarations.FirMemberDeclaration
import
org.jetbrains.kotlin.fir.declarations.FirResolvePhase
...
...
@@ -21,7 +19,7 @@ import org.jetbrains.kotlin.fir.types.ConeClassLikeType
import
org.jetbrains.kotlin.fir.types.coneType
import
org.jetbrains.kotlin.idea.frontend.api.symbols.markers.KtCommonSymbolModality
import
org.jetbrains.kotlin.idea.frontend.api.symbols.markers.KtSymbolModality
import
org.jetbrains.kotlin.
idea.frontend.api.symbols.markers.KtSymbolVisibility
import
org.jetbrains.kotlin.
metadata.ProtoBuf
internal
inline
fun
<
reified
M
:
KtSymbolModality
>
Modality
?.
getSymbolModality
():
M
=
when
(
this
)
{
Modality
.
FINAL
->
KtCommonSymbolModality
.
FINAL
...
...
@@ -35,21 +33,8 @@ internal inline fun <F : FirMemberDeclaration, reified M : KtSymbolModality> KtF
firRef
.
withFir
(
FirResolvePhase
.
STATUS
)
{
it
.
modality
.
getSymbolModality
<
M
>()
}
internal
fun
Visibility
?.
getSymbolVisibility
():
KtSymbolVisibility
=
when
(
this
)
{
Visibilities
.
Public
->
KtSymbolVisibility
.
PUBLIC
Visibilities
.
Protected
->
KtSymbolVisibility
.
PROTECTED
Visibilities
.
Private
->
KtSymbolVisibility
.
PRIVATE
Visibilities
.
PrivateToThis
->
KtSymbolVisibility
.
PRIVATE_TO_THIS
Visibilities
.
Internal
->
KtSymbolVisibility
.
INTERNAL
Visibilities
.
Local
->
KtSymbolVisibility
.
LOCAL
Visibilities
.
Unknown
->
KtSymbolVisibility
.
UNKNOWN
JavaVisibilities
.
PackageVisibility
->
KtSymbolVisibility
.
UNKNOWN
//TODO: Add Java visibilities
null
->
error
(
"Symbol visibility should not be null, looks like the fir symbol was not properly resolved"
)
else
->
throw
NotImplementedError
(
"Unknown visibility $name"
)
}
internal
fun
<
F
:
FirMemberDeclaration
>
KtFirSymbol
<
F
>.
getVisibility
():
KtSymbolVisibility
=
firRef
.
withFir
(
FirResolvePhase
.
STATUS
)
{
it
.
visibility
.
getSymbolVisibility
()
}
internal
fun
<
F
:
FirMemberDeclaration
>
KtFirSymbol
<
F
>.
getVisibility
():
Visibility
=
firRef
.
withFir
(
FirResolvePhase
.
STATUS
)
{
fir
->
fir
.
visibility
}
internal
fun
ConeClassLikeType
.
expandTypeAliasIfNeeded
(
session
:
FirSession
):
ConeClassLikeType
{
...
...
idea/idea-frontend-fir/testData/fileScopeTest/simpleFileScope.kt.result
浏览文件 @
c38a7933
...
...
@@ -27,7 +27,7 @@ KtFirFunctionSymbol:
symbolKind: TOP_LEVEL
typeParameters: []
valueParameters: []
visibility: P
UBLIC
visibility: P
ublic
KtFirKotlinPropertySymbol:
annotatedType: [] kotlin/Int
...
...
@@ -51,7 +51,7 @@ KtFirKotlinPropertySymbol:
receiverType: null
setter: null
symbolKind: TOP_LEVEL
visibility: P
UBLIC
visibility: P
ublic
CLASSIFIER NAMES:
[C, I]
...
...
@@ -74,7 +74,7 @@ KtFirNamedClassOrObjectSymbol:
superTypes: [[] kotlin/Any]
symbolKind: TOP_LEVEL
typeParameters: []
visibility: P
UBLIC
visibility: P
ublic
KtFirNamedClassOrObjectSymbol:
annotationClassIds: []
...
...
@@ -93,4 +93,4 @@ KtFirNamedClassOrObjectSymbol:
superTypes: [[] kotlin/Any]
symbolKind: TOP_LEVEL
typeParameters: []
visibility: P
UBLIC
visibility: P
ublic
idea/idea-frontend-fir/testData/memberScopeByFqName/Int.kt
浏览文件 @
c38a7933
...
...
@@ -24,7 +24,7 @@ KtFirFunctionSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: [KtFirValueParameterSymbol(other)]
visibility: P
UBLIC
visibility: P
ublic
KtFirFunctionSymbol:
annotatedType: [] kotlin/Int
...
...
@@ -45,7 +45,7 @@ KtFirFunctionSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: [KtFirValueParameterSymbol(other)]
visibility: P
UBLIC
visibility: P
ublic
KtFirFunctionSymbol:
annotatedType: [] kotlin/Int
...
...
@@ -66,7 +66,7 @@ KtFirFunctionSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: [KtFirValueParameterSymbol(other)]
visibility: P
UBLIC
visibility: P
ublic
KtFirFunctionSymbol:
annotatedType: [] kotlin/Int
...
...
@@ -87,7 +87,7 @@ KtFirFunctionSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: [KtFirValueParameterSymbol(other)]
visibility: P
UBLIC
visibility: P
ublic
KtFirFunctionSymbol:
annotatedType: [] kotlin/Int
...
...
@@ -108,7 +108,7 @@ KtFirFunctionSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: [KtFirValueParameterSymbol(other)]
visibility: P
UBLIC
visibility: P
ublic
KtFirFunctionSymbol:
annotatedType: [] kotlin/Int
...
...
@@ -129,7 +129,7 @@ KtFirFunctionSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: [KtFirValueParameterSymbol(other)]
visibility: P
UBLIC
visibility: P
ublic
KtFirFunctionSymbol:
annotatedType: [] kotlin/Int
...
...
@@ -150,7 +150,7 @@ KtFirFunctionSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: [KtFirValueParameterSymbol(other)]
visibility: P
UBLIC
visibility: P
ublic
KtFirFunctionSymbol:
annotatedType: [] kotlin/Int
...
...
@@ -171,7 +171,7 @@ KtFirFunctionSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: []
visibility: P
UBLIC
visibility: P
ublic
KtFirFunctionSymbol:
annotatedType: [] kotlin/Int
...
...
@@ -192,7 +192,7 @@ KtFirFunctionSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: [KtFirValueParameterSymbol(other)]
visibility: P
UBLIC
visibility: P
ublic
KtFirFunctionSymbol:
annotatedType: [] kotlin/Double
...
...
@@ -213,7 +213,7 @@ KtFirFunctionSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: [KtFirValueParameterSymbol(other)]
visibility: P
UBLIC
visibility: P
ublic
KtFirFunctionSymbol:
annotatedType: [] kotlin/Float
...
...
@@ -234,7 +234,7 @@ KtFirFunctionSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: [KtFirValueParameterSymbol(other)]
visibility: P
UBLIC
visibility: P
ublic
KtFirFunctionSymbol:
annotatedType: [] kotlin/Int
...
...
@@ -255,7 +255,7 @@ KtFirFunctionSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: [KtFirValueParameterSymbol(other)]
visibility: P
UBLIC
visibility: P
ublic
KtFirFunctionSymbol:
annotatedType: [] kotlin/Long
...
...
@@ -276,7 +276,7 @@ KtFirFunctionSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: [KtFirValueParameterSymbol(other)]
visibility: P
UBLIC
visibility: P
ublic
KtFirFunctionSymbol:
annotatedType: [] kotlin/Int
...
...
@@ -297,7 +297,7 @@ KtFirFunctionSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: [KtFirValueParameterSymbol(other)]
visibility: P
UBLIC
visibility: P
ublic
KtFirFunctionSymbol:
annotatedType: [] kotlin/Int
...
...
@@ -318,7 +318,7 @@ KtFirFunctionSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: []
visibility: P
UBLIC
visibility: P
ublic
KtFirFunctionSymbol:
annotatedType: [] kotlin/Int
...
...
@@ -339,7 +339,7 @@ KtFirFunctionSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: []
visibility: P
UBLIC
visibility: P
ublic
KtFirFunctionSymbol:
annotatedType: [] kotlin/Int
...
...
@@ -360,7 +360,7 @@ KtFirFunctionSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: [KtFirValueParameterSymbol(other)]
visibility: P
UBLIC
visibility: P
ublic
KtFirFunctionSymbol:
annotatedType: [] kotlin/Double
...
...
@@ -381,7 +381,7 @@ KtFirFunctionSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: [KtFirValueParameterSymbol(other)]
visibility: P
UBLIC
visibility: P
ublic
KtFirFunctionSymbol:
annotatedType: [] kotlin/Float
...
...
@@ -402,7 +402,7 @@ KtFirFunctionSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: [KtFirValueParameterSymbol(other)]
visibility: P
UBLIC
visibility: P
ublic
KtFirFunctionSymbol:
annotatedType: [] kotlin/Int
...
...
@@ -423,7 +423,7 @@ KtFirFunctionSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: [KtFirValueParameterSymbol(other)]
visibility: P
UBLIC
visibility: P
ublic
KtFirFunctionSymbol:
annotatedType: [] kotlin/Long
...
...
@@ -444,7 +444,7 @@ KtFirFunctionSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: [KtFirValueParameterSymbol(other)]
visibility: P
UBLIC
visibility: P
ublic
KtFirFunctionSymbol:
annotatedType: [] kotlin/Int
...
...
@@ -465,7 +465,7 @@ KtFirFunctionSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: [KtFirValueParameterSymbol(other)]
visibility: P
UBLIC
visibility: P
ublic
KtFirFunctionSymbol:
annotatedType: [] kotlin/Int
...
...
@@ -486,7 +486,7 @@ KtFirFunctionSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: [KtFirValueParameterSymbol(other)]
visibility: P
UBLIC
visibility: P
ublic
KtFirFunctionSymbol:
annotatedType: [] kotlin/Int
...
...
@@ -507,7 +507,7 @@ KtFirFunctionSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: [KtFirValueParameterSymbol(other)]
visibility: P
UBLIC
visibility: P
ublic
KtFirFunctionSymbol:
annotatedType: [] kotlin/Double
...
...
@@ -528,7 +528,7 @@ KtFirFunctionSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: [KtFirValueParameterSymbol(other)]
visibility: P
UBLIC
visibility: P
ublic
KtFirFunctionSymbol:
annotatedType: [] kotlin/Float
...
...
@@ -549,7 +549,7 @@ KtFirFunctionSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: [KtFirValueParameterSymbol(other)]
visibility: P
UBLIC
visibility: P
ublic
KtFirFunctionSymbol:
annotatedType: [] kotlin/Int
...
...
@@ -570,7 +570,7 @@ KtFirFunctionSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: [KtFirValueParameterSymbol(other)]
visibility: P
UBLIC
visibility: P
ublic
KtFirFunctionSymbol:
annotatedType: [] kotlin/Long
...
...
@@ -591,7 +591,7 @@ KtFirFunctionSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: [KtFirValueParameterSymbol(other)]
visibility: P
UBLIC
visibility: P
ublic
KtFirFunctionSymbol:
annotatedType: [] kotlin/Int
...
...
@@ -612,7 +612,7 @@ KtFirFunctionSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: [KtFirValueParameterSymbol(other)]
visibility: P
UBLIC
visibility: P
ublic
KtFirFunctionSymbol:
annotatedType: [] kotlin/ranges/IntRange
...
...
@@ -633,7 +633,7 @@ KtFirFunctionSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: [KtFirValueParameterSymbol(other)]
visibility: P
UBLIC
visibility: P
ublic
KtFirFunctionSymbol:
annotatedType: [] kotlin/ranges/IntRange
...
...
@@ -654,7 +654,7 @@ KtFirFunctionSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: [KtFirValueParameterSymbol(other)]
visibility: P
UBLIC
visibility: P
ublic
KtFirFunctionSymbol:
annotatedType: [] kotlin/ranges/LongRange
...
...
@@ -675,7 +675,7 @@ KtFirFunctionSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: [KtFirValueParameterSymbol(other)]
visibility: P
UBLIC
visibility: P
ublic
KtFirFunctionSymbol:
annotatedType: [] kotlin/ranges/IntRange
...
...
@@ -696,7 +696,7 @@ KtFirFunctionSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: [KtFirValueParameterSymbol(other)]
visibility: P
UBLIC
visibility: P
ublic
KtFirFunctionSymbol:
annotatedType: [] kotlin/Int
...
...
@@ -717,7 +717,7 @@ KtFirFunctionSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: [KtFirValueParameterSymbol(other)]
visibility: P
UBLIC
visibility: P
ublic
KtFirFunctionSymbol:
annotatedType: [] kotlin/Double
...
...
@@ -738,7 +738,7 @@ KtFirFunctionSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: [KtFirValueParameterSymbol(other)]
visibility: P
UBLIC
visibility: P
ublic
KtFirFunctionSymbol:
annotatedType: [] kotlin/Float
...
...
@@ -759,7 +759,7 @@ KtFirFunctionSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: [KtFirValueParameterSymbol(other)]
visibility: P
UBLIC
visibility: P
ublic
KtFirFunctionSymbol:
annotatedType: [] kotlin/Int
...
...
@@ -780,7 +780,7 @@ KtFirFunctionSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: [KtFirValueParameterSymbol(other)]
visibility: P
UBLIC
visibility: P
ublic
KtFirFunctionSymbol:
annotatedType: [] kotlin/Long
...
...
@@ -801,7 +801,7 @@ KtFirFunctionSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: [KtFirValueParameterSymbol(other)]
visibility: P
UBLIC
visibility: P
ublic
KtFirFunctionSymbol:
annotatedType: [] kotlin/Int
...
...
@@ -822,7 +822,7 @@ KtFirFunctionSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: [KtFirValueParameterSymbol(other)]
visibility: P
UBLIC
visibility: P
ublic
KtFirFunctionSymbol:
annotatedType: [] kotlin/Int
...
...
@@ -843,7 +843,7 @@ KtFirFunctionSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: [KtFirValueParameterSymbol(bitCount)]
visibility: P
UBLIC
visibility: P
ublic
KtFirFunctionSymbol:
annotatedType: [] kotlin/Int
...
...
@@ -864,7 +864,7 @@ KtFirFunctionSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: [KtFirValueParameterSymbol(bitCount)]
visibility: P
UBLIC
visibility: P
ublic
KtFirFunctionSymbol:
annotatedType: [] kotlin/Int
...
...
@@ -885,7 +885,7 @@ KtFirFunctionSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: [KtFirValueParameterSymbol(other)]
visibility: P
UBLIC
visibility: P
ublic
KtFirFunctionSymbol:
annotatedType: [] kotlin/Double
...
...
@@ -906,7 +906,7 @@ KtFirFunctionSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: [KtFirValueParameterSymbol(other)]
visibility: P
UBLIC
visibility: P
ublic
KtFirFunctionSymbol:
annotatedType: [] kotlin/Float
...
...
@@ -927,7 +927,7 @@ KtFirFunctionSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: [KtFirValueParameterSymbol(other)]
visibility: P
UBLIC
visibility: P
ublic
KtFirFunctionSymbol:
annotatedType: [] kotlin/Int
...
...
@@ -948,7 +948,7 @@ KtFirFunctionSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: [KtFirValueParameterSymbol(other)]
visibility: P
UBLIC
visibility: P
ublic
KtFirFunctionSymbol:
annotatedType: [] kotlin/Long
...
...
@@ -969,7 +969,7 @@ KtFirFunctionSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: [KtFirValueParameterSymbol(other)]
visibility: P
UBLIC
visibility: P
ublic
KtFirFunctionSymbol:
annotatedType: [] kotlin/Int
...
...
@@ -990,7 +990,7 @@ KtFirFunctionSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: [KtFirValueParameterSymbol(other)]
visibility: P
UBLIC
visibility: P
ublic
KtFirFunctionSymbol:
annotatedType: [] kotlin/Byte
...
...
@@ -1011,7 +1011,7 @@ KtFirFunctionSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: []
visibility: P
UBLIC
visibility: P
ublic
KtFirFunctionSymbol:
annotatedType: [] kotlin/Char
...
...
@@ -1032,7 +1032,7 @@ KtFirFunctionSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: []
visibility: P
UBLIC
visibility: P
ublic
KtFirFunctionSymbol:
annotatedType: [] kotlin/Double
...
...
@@ -1053,7 +1053,7 @@ KtFirFunctionSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: []
visibility: P
UBLIC
visibility: P
ublic
KtFirFunctionSymbol:
annotatedType: [] kotlin/Float
...
...
@@ -1074,7 +1074,7 @@ KtFirFunctionSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: []
visibility: P
UBLIC
visibility: P
ublic
KtFirFunctionSymbol:
annotatedType: [] kotlin/Int
...
...
@@ -1095,7 +1095,7 @@ KtFirFunctionSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: []
visibility: P
UBLIC
visibility: P
ublic
KtFirFunctionSymbol:
annotatedType: [] kotlin/Long
...
...
@@ -1116,7 +1116,7 @@ KtFirFunctionSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: []
visibility: P
UBLIC
visibility: P
ublic
KtFirFunctionSymbol:
annotatedType: [] kotlin/Short
...
...
@@ -1137,7 +1137,7 @@ KtFirFunctionSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: []
visibility: P
UBLIC
visibility: P
ublic
KtFirFunctionSymbol:
annotatedType: [] kotlin/Int
...
...
@@ -1158,7 +1158,7 @@ KtFirFunctionSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: []
visibility: P
UBLIC
visibility: P
ublic
KtFirFunctionSymbol:
annotatedType: [] kotlin/Int
...
...
@@ -1179,7 +1179,7 @@ KtFirFunctionSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: []
visibility: P
UBLIC
visibility: P
ublic
KtFirFunctionSymbol:
annotatedType: [] kotlin/Int
...
...
@@ -1200,7 +1200,7 @@ KtFirFunctionSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: [KtFirValueParameterSymbol(bitCount)]
visibility: P
UBLIC
visibility: P
ublic
KtFirFunctionSymbol:
annotatedType: [] kotlin/Int
...
...
@@ -1221,7 +1221,7 @@ KtFirFunctionSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: [KtFirValueParameterSymbol(other)]
visibility: P
UBLIC
visibility: P
ublic
KtFirFunctionSymbol:
annotatedType: [] kotlin/Boolean
...
...
@@ -1242,7 +1242,7 @@ KtFirFunctionSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: [KtFirValueParameterSymbol(other)]
visibility: P
UBLIC
visibility: P
ublic
KtFirFunctionSymbol:
annotatedType: [] kotlin/Int
...
...
@@ -1263,7 +1263,7 @@ KtFirFunctionSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: []
visibility: P
UBLIC
visibility: P
ublic
KtFirFunctionSymbol:
annotatedType: [] kotlin/String
...
...
@@ -1284,7 +1284,7 @@ KtFirFunctionSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: []
visibility: P
UBLIC
visibility: P
ublic
KtFirNamedClassOrObjectSymbol:
annotationClassIds: []
...
...
@@ -1303,7 +1303,7 @@ KtFirNamedClassOrObjectSymbol:
superTypes: [[] kotlin/Any]
symbolKind: MEMBER
typeParameters: []
visibility: P
UBLIC
visibility: P
ublic
KtFirConstructorSymbol:
annotatedType: [] kotlin/Int
...
...
@@ -1316,5 +1316,5 @@ KtFirConstructorSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: []
visibility: P
RIVATE
visibility: P
rivate
*/
idea/idea-frontend-fir/testData/memberScopeByFqName/MutableList.kt
浏览文件 @
c38a7933
...
...
@@ -21,7 +21,7 @@ KtFirFunctionSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: [KtFirValueParameterSymbol(element)]
visibility: P
UBLIC
visibility: P
ublic
KtFirFunctionSymbol:
annotatedType: [] kotlin/Unit
...
...
@@ -42,7 +42,7 @@ KtFirFunctionSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: [KtFirValueParameterSymbol(index), KtFirValueParameterSymbol(element)]
visibility: P
UBLIC
visibility: P
ublic
KtFirFunctionSymbol:
annotatedType: [] kotlin/Boolean
...
...
@@ -63,7 +63,7 @@ KtFirFunctionSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: [KtFirValueParameterSymbol(index), KtFirValueParameterSymbol(elements)]
visibility: P
UBLIC
visibility: P
ublic
KtFirFunctionSymbol:
annotatedType: [] kotlin/Boolean
...
...
@@ -84,7 +84,7 @@ KtFirFunctionSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: [KtFirValueParameterSymbol(elements)]
visibility: P
UBLIC
visibility: P
ublic
KtFirFunctionSymbol:
annotatedType: [] kotlin/Unit
...
...
@@ -105,7 +105,7 @@ KtFirFunctionSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: []
visibility: P
UBLIC
visibility: P
ublic
KtFirFunctionSymbol:
annotatedType: [] kotlin/collections/MutableListIterator<E>
...
...
@@ -126,7 +126,7 @@ KtFirFunctionSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: []
visibility: P
UBLIC
visibility: P
ublic
KtFirFunctionSymbol:
annotatedType: [] kotlin/collections/MutableListIterator<E>
...
...
@@ -147,7 +147,7 @@ KtFirFunctionSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: [KtFirValueParameterSymbol(index)]
visibility: P
UBLIC
visibility: P
ublic
KtFirFunctionSymbol:
annotatedType: [] kotlin/Boolean
...
...
@@ -168,7 +168,7 @@ KtFirFunctionSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: [KtFirValueParameterSymbol(element)]
visibility: P
UBLIC
visibility: P
ublic
KtFirFunctionSymbol:
annotatedType: [] kotlin/Boolean
...
...
@@ -189,7 +189,7 @@ KtFirFunctionSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: [KtFirValueParameterSymbol(elements)]
visibility: P
UBLIC
visibility: P
ublic
KtFirFunctionSymbol:
annotatedType: [] E
...
...
@@ -210,7 +210,7 @@ KtFirFunctionSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: [KtFirValueParameterSymbol(index)]
visibility: P
UBLIC
visibility: P
ublic
KtFirFunctionSymbol:
annotatedType: [] kotlin/Boolean
...
...
@@ -231,7 +231,7 @@ KtFirFunctionSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: [KtFirValueParameterSymbol(elements)]
visibility: P
UBLIC
visibility: P
ublic
KtFirFunctionSymbol:
annotatedType: [] E
...
...
@@ -252,7 +252,7 @@ KtFirFunctionSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: [KtFirValueParameterSymbol(index), KtFirValueParameterSymbol(element)]
visibility: P
UBLIC
visibility: P
ublic
KtFirFunctionSymbol:
annotatedType: [] kotlin/collections/MutableList<E>
...
...
@@ -273,7 +273,7 @@ KtFirFunctionSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: [KtFirValueParameterSymbol(fromIndex), KtFirValueParameterSymbol(toIndex)]
visibility: P
UBLIC
visibility: P
ublic
KtFirFunctionSymbol:
annotatedType: [] kotlin/Boolean
...
...
@@ -294,7 +294,7 @@ KtFirFunctionSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: [KtFirValueParameterSymbol(element)]
visibility: P
UBLIC
visibility: P
ublic
KtFirFunctionSymbol:
annotatedType: [] kotlin/Boolean
...
...
@@ -315,7 +315,7 @@ KtFirFunctionSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: [KtFirValueParameterSymbol(elements)]
visibility: P
UBLIC
visibility: P
ublic
KtFirFunctionSymbol:
annotatedType: [] E
...
...
@@ -336,7 +336,7 @@ KtFirFunctionSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: [KtFirValueParameterSymbol(index)]
visibility: P
UBLIC
visibility: P
ublic
KtFirFunctionSymbol:
annotatedType: [] kotlin/Int
...
...
@@ -357,7 +357,7 @@ KtFirFunctionSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: [KtFirValueParameterSymbol(element)]
visibility: P
UBLIC
visibility: P
ublic
KtFirFunctionSymbol:
annotatedType: [] kotlin/Boolean
...
...
@@ -378,7 +378,7 @@ KtFirFunctionSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: []
visibility: P
UBLIC
visibility: P
ublic
KtFirFunctionSymbol:
annotatedType: [] kotlin/collections/MutableIterator<E>
...
...
@@ -399,7 +399,7 @@ KtFirFunctionSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: []
visibility: P
UBLIC
visibility: P
ublic
KtFirFunctionSymbol:
annotatedType: [] kotlin/Int
...
...
@@ -420,7 +420,7 @@ KtFirFunctionSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: [KtFirValueParameterSymbol(element)]
visibility: P
UBLIC
visibility: P
ublic
KtFirKotlinPropertySymbol:
annotatedType: [] kotlin/Int
...
...
@@ -444,7 +444,7 @@ KtFirKotlinPropertySymbol:
receiverType: null
setter: null
symbolKind: MEMBER
visibility: P
UBLIC
visibility: P
ublic
KtFirFunctionSymbol:
annotatedType: [] kotlin/Boolean
...
...
@@ -465,7 +465,7 @@ KtFirFunctionSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: [KtFirValueParameterSymbol(other)]
visibility: P
UBLIC
visibility: P
ublic
KtFirFunctionSymbol:
annotatedType: [] kotlin/Int
...
...
@@ -486,7 +486,7 @@ KtFirFunctionSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: []
visibility: P
UBLIC
visibility: P
ublic
KtFirFunctionSymbol:
annotatedType: [] kotlin/String
...
...
@@ -507,5 +507,5 @@ KtFirFunctionSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: []
visibility: P
UBLIC
visibility: P
ublic
*/
idea/idea-frontend-fir/testData/memberScopeByFqName/java.lang.String.kt
浏览文件 @
c38a7933
此差异已折叠。
点击以展开。
idea/idea-frontend-fir/testData/memberScopeByFqName/kotlin.Function2.kt
浏览文件 @
c38a7933
...
...
@@ -23,7 +23,7 @@ KtFirFunctionSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: [KtFirValueParameterSymbol(p1), KtFirValueParameterSymbol(p2)]
visibility: P
UBLIC
visibility: P
ublic
KtFirFunctionSymbol:
annotatedType: [] kotlin/Boolean
...
...
@@ -44,7 +44,7 @@ KtFirFunctionSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: [KtFirValueParameterSymbol(other)]
visibility: P
UBLIC
visibility: P
ublic
KtFirFunctionSymbol:
annotatedType: [] kotlin/Int
...
...
@@ -65,7 +65,7 @@ KtFirFunctionSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: []
visibility: P
UBLIC
visibility: P
ublic
KtFirFunctionSymbol:
annotatedType: [] kotlin/String
...
...
@@ -86,5 +86,5 @@ KtFirFunctionSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: []
visibility: P
UBLIC
visibility: P
ublic
*/
idea/idea-frontend-fir/testData/symbols/symbolByFqName/class.kt
浏览文件 @
c38a7933
...
...
@@ -21,5 +21,5 @@ KtFirNamedClassOrObjectSymbol:
superTypes: [[] kotlin/Any]
symbolKind: TOP_LEVEL
typeParameters: [KtFirTypeParameterSymbol(T)]
visibility: P
UBLIC
visibility: P
ublic
*/
idea/idea-frontend-fir/testData/symbols/symbolByFqName/classFromJdk.kt
浏览文件 @
c38a7933
...
...
@@ -21,5 +21,5 @@ KtFirNamedClassOrObjectSymbol:
superTypes: [[] kotlin/Any, [] java/io/Serializable, [] kotlin/Comparable<ft<kotlin/String, kotlin/String?>>, [] kotlin/CharSequence]
symbolKind: TOP_LEVEL
typeParameters: []
visibility: P
UBLIC
visibility: P
ublic
*/
idea/idea-frontend-fir/testData/symbols/symbolByFqName/fileWalkDirectionEnum.kt
浏览文件 @
c38a7933
...
...
@@ -23,7 +23,7 @@ KtFirFunctionSymbol:
symbolKind: TOP_LEVEL
typeParameters: [KtFirTypeParameterSymbol(T)]
valueParameters: [KtFirValueParameterSymbol(element)]
visibility: P
UBLIC
visibility: P
ublic
KtFirFunctionSymbol:
annotatedType: [] kotlin/collections/List<T>
...
...
@@ -44,7 +44,7 @@ KtFirFunctionSymbol:
symbolKind: TOP_LEVEL
typeParameters: [KtFirTypeParameterSymbol(T)]
valueParameters: []
visibility: P
UBLIC
visibility: P
ublic
KtFirFunctionSymbol:
annotatedType: [] kotlin/collections/List<T>
...
...
@@ -65,5 +65,5 @@ KtFirFunctionSymbol:
symbolKind: TOP_LEVEL
typeParameters: [KtFirTypeParameterSymbol(T)]
valueParameters: [KtFirValueParameterSymbol(elements)]
visibility: P
UBLIC
visibility: P
ublic
*/
idea/idea-frontend-fir/testData/symbols/symbolByFqName/iterator.kt
浏览文件 @
c38a7933
...
...
@@ -19,5 +19,5 @@ KtFirNamedClassOrObjectSymbol:
superTypes: [[] kotlin/Any]
symbolKind: TOP_LEVEL
typeParameters: [KtFirTypeParameterSymbol(T)]
visibility: P
UBLIC
visibility: P
ublic
*/
idea/idea-frontend-fir/testData/symbols/symbolByFqName/listOf.kt
浏览文件 @
c38a7933
...
...
@@ -21,5 +21,5 @@ KtFirNamedClassOrObjectSymbol:
superTypes: [[] kotlin/Enum<kotlin/io/FileWalkDirection>]
symbolKind: TOP_LEVEL
typeParameters: []
visibility: P
UBLIC
visibility: P
ublic
*/
idea/idea-frontend-fir/testData/symbols/symbolByFqName/memberFunction.kt
浏览文件 @
c38a7933
...
...
@@ -21,5 +21,5 @@ KtFirFunctionSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: [KtFirValueParameterSymbol(index)]
visibility: P
UBLIC
visibility: P
ublic
*/
idea/idea-frontend-fir/testData/symbols/symbolByFqName/memberFunctionWithOverloads.kt
浏览文件 @
c38a7933
...
...
@@ -21,7 +21,7 @@ KtFirFunctionSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: []
visibility: P
UBLIC
visibility: P
ublic
KtFirFunctionSymbol:
annotatedType: [] kotlin/collections/ListIterator<E>
...
...
@@ -42,5 +42,5 @@ KtFirFunctionSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: [KtFirValueParameterSymbol(index)]
visibility: P
UBLIC
visibility: P
ublic
*/
idea/idea-frontend-fir/testData/symbols/symbolByFqName/nestedClass.kt
浏览文件 @
c38a7933
...
...
@@ -19,5 +19,5 @@ KtFirNamedClassOrObjectSymbol:
superTypes: [[] kotlin/collections/Map.Entry<K, V>]
symbolKind: MEMBER
typeParameters: [KtFirTypeParameterSymbol(K), KtFirTypeParameterSymbol(V)]
visibility: P
UBLIC
visibility: P
ublic
*/
idea/idea-frontend-fir/testData/symbols/symbolByPsi/annotations.kt
浏览文件 @
c38a7933
...
...
@@ -41,7 +41,7 @@ KtFirConstructorSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: [KtFirValueParameterSymbol(param1), KtFirValueParameterSymbol(param2)]
visibility: P
UBLIC
visibility: P
ublic
KtFirNamedClassOrObjectSymbol:
annotationClassIds: []
...
...
@@ -60,7 +60,7 @@ KtFirNamedClassOrObjectSymbol:
superTypes: [[] kotlin/Annotation]
symbolKind: TOP_LEVEL
typeParameters: []
visibility: P
UBLIC
visibility: P
ublic
KtFirFunctionSymbol:
annotatedType: [] kotlin/Unit
...
...
@@ -81,7 +81,7 @@ KtFirFunctionSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: []
visibility: P
UBLIC
visibility: P
ublic
KtFirNamedClassOrObjectSymbol:
annotationClassIds: [Anno]
...
...
@@ -100,5 +100,5 @@ KtFirNamedClassOrObjectSymbol:
superTypes: [[] kotlin/Any]
symbolKind: TOP_LEVEL
typeParameters: []
visibility: P
UBLIC
visibility: P
ublic
*/
idea/idea-frontend-fir/testData/symbols/symbolByPsi/anonymousObject.kt
浏览文件 @
c38a7933
...
...
@@ -28,7 +28,7 @@ KtFirFunctionSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: []
visibility: P
UBLIC
visibility: P
ublic
KtFirKotlinPropertySymbol:
annotatedType: [] kotlin/Int
...
...
@@ -52,7 +52,7 @@ KtFirKotlinPropertySymbol:
receiverType: null
setter: null
symbolKind: MEMBER
visibility: P
UBLIC
visibility: P
ublic
KtFirAnonymousObjectSymbol:
annotationClassIds: []
...
...
@@ -86,7 +86,7 @@ KtFirKotlinPropertySymbol:
receiverType: null
setter: null
symbolKind: MEMBER
visibility: P
UBLIC
visibility: P
ublic
KtFirNamedClassOrObjectSymbol:
annotationClassIds: []
...
...
@@ -105,5 +105,5 @@ KtFirNamedClassOrObjectSymbol:
superTypes: [[] kotlin/Any]
symbolKind: TOP_LEVEL
typeParameters: []
visibility: P
UBLIC
visibility: P
ublic
*/
idea/idea-frontend-fir/testData/symbols/symbolByPsi/class.kt
浏览文件 @
c38a7933
...
...
@@ -20,5 +20,5 @@ KtFirNamedClassOrObjectSymbol:
superTypes: [[] kotlin/Any]
symbolKind: TOP_LEVEL
typeParameters: []
visibility: P
UBLIC
visibility: P
ublic
*/
idea/idea-frontend-fir/testData/symbols/symbolByPsi/classMembes.kt
浏览文件 @
c38a7933
...
...
@@ -27,7 +27,7 @@ KtFirKotlinPropertySymbol:
receiverType: null
setter: null
symbolKind: MEMBER
visibility: P
UBLIC
visibility: P
ublic
KtFirFunctionSymbol:
annotatedType: [] kotlin/Int
...
...
@@ -48,7 +48,7 @@ KtFirFunctionSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: []
visibility: P
UBLIC
visibility: P
ublic
KtFirNamedClassOrObjectSymbol:
annotationClassIds: []
...
...
@@ -67,5 +67,5 @@ KtFirNamedClassOrObjectSymbol:
superTypes: [[] kotlin/Any]
symbolKind: TOP_LEVEL
typeParameters: []
visibility: P
UBLIC
visibility: P
ublic
*/
idea/idea-frontend-fir/testData/symbols/symbolByPsi/classPrimaryConstructor.kt
浏览文件 @
c38a7933
...
...
@@ -14,7 +14,7 @@ KtFirConstructorSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: []
visibility: P
UBLIC
visibility: P
ublic
KtFirNamedClassOrObjectSymbol:
annotationClassIds: []
...
...
@@ -33,5 +33,5 @@ KtFirNamedClassOrObjectSymbol:
superTypes: [[] kotlin/Any]
symbolKind: TOP_LEVEL
typeParameters: []
visibility: P
UBLIC
visibility: P
ublic
*/
idea/idea-frontend-fir/testData/symbols/symbolByPsi/classSecondaryConstructors.kt
浏览文件 @
c38a7933
...
...
@@ -16,7 +16,7 @@ KtFirConstructorSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: []
visibility: P
UBLIC
visibility: P
ublic
KtFirValueParameterSymbol:
annotatedType: [] kotlin/Int
...
...
@@ -39,7 +39,7 @@ KtFirConstructorSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: [KtFirValueParameterSymbol(x)]
visibility: P
UBLIC
visibility: P
ublic
KtFirValueParameterSymbol:
annotatedType: [] kotlin/Int
...
...
@@ -72,7 +72,7 @@ KtFirConstructorSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: [KtFirValueParameterSymbol(y), KtFirValueParameterSymbol(z)]
visibility: P
UBLIC
visibility: P
ublic
KtFirNamedClassOrObjectSymbol:
annotationClassIds: []
...
...
@@ -91,5 +91,5 @@ KtFirNamedClassOrObjectSymbol:
superTypes: [[] kotlin/Any]
symbolKind: TOP_LEVEL
typeParameters: []
visibility: P
UBLIC
visibility: P
ublic
*/
idea/idea-frontend-fir/testData/symbols/symbolByPsi/classWithTypeParams.kt
浏览文件 @
c38a7933
...
...
@@ -34,5 +34,5 @@ KtFirNamedClassOrObjectSymbol:
superTypes: [[] kotlin/Any]
symbolKind: TOP_LEVEL
typeParameters: [KtFirTypeParameterSymbol(T), KtFirTypeParameterSymbol(R)]
visibility: P
UBLIC
visibility: P
ublic
*/
idea/idea-frontend-fir/testData/symbols/symbolByPsi/enum.kt
浏览文件 @
c38a7933
...
...
@@ -35,5 +35,5 @@ KtFirNamedClassOrObjectSymbol:
superTypes: [[] kotlin/Enum<X>]
symbolKind: TOP_LEVEL
typeParameters: []
visibility: P
UBLIC
visibility: P
ublic
*/
idea/idea-frontend-fir/testData/symbols/symbolByPsi/extensionFunction.kt
浏览文件 @
c38a7933
...
...
@@ -21,5 +21,5 @@ KtFirFunctionSymbol:
symbolKind: TOP_LEVEL
typeParameters: []
valueParameters: []
visibility: P
UBLIC
visibility: P
ublic
*/
idea/idea-frontend-fir/testData/symbols/symbolByPsi/function.kt
浏览文件 @
c38a7933
...
...
@@ -31,5 +31,5 @@ KtFirFunctionSymbol:
symbolKind: TOP_LEVEL
typeParameters: []
valueParameters: [KtFirValueParameterSymbol(x)]
visibility: P
UBLIC
visibility: P
ublic
*/
idea/idea-frontend-fir/testData/symbols/symbolByPsi/functionWithTypeParams.kt
浏览文件 @
c38a7933
...
...
@@ -38,5 +38,5 @@ KtFirFunctionSymbol:
symbolKind: TOP_LEVEL
typeParameters: [KtFirTypeParameterSymbol(X)]
valueParameters: [KtFirValueParameterSymbol(x)]
visibility: P
UBLIC
visibility: P
ublic
*/
idea/idea-frontend-fir/testData/symbols/symbolByPsi/implicitReturn.kt
浏览文件 @
c38a7933
...
...
@@ -21,5 +21,5 @@ KtFirFunctionSymbol:
symbolKind: TOP_LEVEL
typeParameters: []
valueParameters: []
visibility: P
UBLIC
visibility: P
ublic
*/
idea/idea-frontend-fir/testData/symbols/symbolByPsi/localDeclarations.kt
浏览文件 @
c38a7933
...
...
@@ -33,7 +33,7 @@ KtFirFunctionSymbol:
symbolKind: LOCAL
typeParameters: []
valueParameters: []
visibility: L
OCAL
visibility: L
ocal
KtFirNamedClassOrObjectSymbol:
annotationClassIds: []
...
...
@@ -52,7 +52,7 @@ KtFirNamedClassOrObjectSymbol:
superTypes: [[] kotlin/Any]
symbolKind: LOCAL
typeParameters: []
visibility: L
OCAL
visibility: L
ocal
KtFirFunctionSymbol:
annotatedType: [] kotlin/Unit
...
...
@@ -73,5 +73,5 @@ KtFirFunctionSymbol:
symbolKind: TOP_LEVEL
typeParameters: []
valueParameters: []
visibility: P
UBLIC
visibility: P
ublic
*/
idea/idea-frontend-fir/testData/symbols/symbolByPsi/memberFunctions.kt
浏览文件 @
c38a7933
...
...
@@ -24,7 +24,7 @@ KtFirFunctionSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: []
visibility: P
UBLIC
visibility: P
ublic
KtFirFunctionSymbol:
annotatedType: [] kotlin/Unit
...
...
@@ -45,7 +45,7 @@ KtFirFunctionSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: []
visibility: P
UBLIC
visibility: P
ublic
KtFirNamedClassOrObjectSymbol:
annotationClassIds: []
...
...
@@ -64,5 +64,5 @@ KtFirNamedClassOrObjectSymbol:
superTypes: [[] kotlin/Any]
symbolKind: TOP_LEVEL
typeParameters: []
visibility: P
UBLIC
visibility: P
ublic
*/
idea/idea-frontend-fir/testData/symbols/symbolByPsi/memberProperties.kt
浏览文件 @
c38a7933
...
...
@@ -27,7 +27,7 @@ KtFirKotlinPropertySymbol:
receiverType: null
setter: null
symbolKind: MEMBER
visibility: P
UBLIC
visibility: P
ublic
KtFirPropertyGetterSymbol:
annotatedType: [] kotlin/Int
...
...
@@ -41,7 +41,7 @@ KtFirPropertyGetterSymbol:
modality: FINAL
origin: SOURCE
symbolKind: TOP_LEVEL
visibility: P
UBLIC
visibility: P
ublic
KtFirKotlinPropertySymbol:
annotatedType: [] kotlin/Int
...
...
@@ -65,7 +65,7 @@ KtFirKotlinPropertySymbol:
receiverType: [] kotlin/Int
setter: null
symbolKind: MEMBER
visibility: P
UBLIC
visibility: P
ublic
KtFirNamedClassOrObjectSymbol:
annotationClassIds: []
...
...
@@ -84,5 +84,5 @@ KtFirNamedClassOrObjectSymbol:
superTypes: [[] kotlin/Any]
symbolKind: TOP_LEVEL
typeParameters: []
visibility: P
UBLIC
visibility: P
ublic
*/
idea/idea-frontend-fir/testData/symbols/symbolByPsi/topLevelFunctions.kt
浏览文件 @
c38a7933
...
...
@@ -22,7 +22,7 @@ KtFirFunctionSymbol:
symbolKind: TOP_LEVEL
typeParameters: []
valueParameters: []
visibility: P
UBLIC
visibility: P
ublic
KtFirFunctionSymbol:
annotatedType: [] kotlin/Unit
...
...
@@ -43,5 +43,5 @@ KtFirFunctionSymbol:
symbolKind: TOP_LEVEL
typeParameters: []
valueParameters: []
visibility: P
UBLIC
visibility: P
ublic
*/
idea/idea-frontend-fir/testData/symbols/symbolByPsi/topLevelProperties.kt
浏览文件 @
c38a7933
...
...
@@ -25,7 +25,7 @@ KtFirKotlinPropertySymbol:
receiverType: null
setter: null
symbolKind: TOP_LEVEL
visibility: P
UBLIC
visibility: P
ublic
KtFirPropertyGetterSymbol:
annotatedType: [] kotlin/Int
...
...
@@ -39,7 +39,7 @@ KtFirPropertyGetterSymbol:
modality: FINAL
origin: SOURCE
symbolKind: TOP_LEVEL
visibility: P
UBLIC
visibility: P
ublic
KtFirKotlinPropertySymbol:
annotatedType: [] kotlin/Int
...
...
@@ -63,5 +63,5 @@ KtFirKotlinPropertySymbol:
receiverType: [] kotlin/Int
setter: null
symbolKind: TOP_LEVEL
visibility: P
UBLIC
visibility: P
ublic
*/
idea/idea-frontend-fir/testData/symbols/symbolByPsi/typeAnnotations.kt
浏览文件 @
c38a7933
...
...
@@ -33,7 +33,7 @@ KtFirNamedClassOrObjectSymbol:
superTypes: [[] kotlin/Annotation]
symbolKind: TOP_LEVEL
typeParameters: []
visibility: P
UBLIC
visibility: P
ublic
KtFirNamedClassOrObjectSymbol:
annotationClassIds: [kotlin/annotation/Target]
...
...
@@ -52,7 +52,7 @@ KtFirNamedClassOrObjectSymbol:
superTypes: [[] kotlin/Annotation]
symbolKind: TOP_LEVEL
typeParameters: []
visibility: P
UBLIC
visibility: P
ublic
KtFirNamedClassOrObjectSymbol:
annotationClassIds: [kotlin/annotation/Target]
...
...
@@ -71,7 +71,7 @@ KtFirNamedClassOrObjectSymbol:
superTypes: [[] kotlin/Annotation]
symbolKind: TOP_LEVEL
typeParameters: []
visibility: P
UBLIC
visibility: P
ublic
KtFirNamedClassOrObjectSymbol:
annotationClassIds: [kotlin/annotation/Target]
...
...
@@ -90,7 +90,7 @@ KtFirNamedClassOrObjectSymbol:
superTypes: [[] kotlin/Annotation]
symbolKind: TOP_LEVEL
typeParameters: []
visibility: P
UBLIC
visibility: P
ublic
KtFirNamedClassOrObjectSymbol:
annotationClassIds: []
...
...
@@ -109,7 +109,7 @@ KtFirNamedClassOrObjectSymbol:
superTypes: [[] kotlin/Any]
symbolKind: TOP_LEVEL
typeParameters: []
visibility: P
UBLIC
visibility: P
ublic
KtFirValueParameterSymbol:
annotatedType: [Anno2()] I
...
...
@@ -140,7 +140,7 @@ KtFirFunctionSymbol:
symbolKind: MEMBER
typeParameters: []
valueParameters: [KtFirValueParameterSymbol(arg)]
visibility: P
UBLIC
visibility: P
ublic
KtFirKotlinPropertySymbol:
annotatedType: [Anno4()] I
...
...
@@ -164,7 +164,7 @@ KtFirKotlinPropertySymbol:
receiverType: null
setter: null
symbolKind: MEMBER
visibility: P
UBLIC
visibility: P
ublic
KtFirNamedClassOrObjectSymbol:
annotationClassIds: []
...
...
@@ -183,5 +183,5 @@ KtFirNamedClassOrObjectSymbol:
superTypes: [[Anno1()] I]
symbolKind: TOP_LEVEL
typeParameters: []
visibility: P
UBLIC
visibility: P
ublic
*/
idea/idea-frontend-fir/testData/symbols/symbolByReference/constructorViaTypeAlias.kt
浏览文件 @
c38a7933
...
...
@@ -18,5 +18,5 @@ KtFirConstructorSymbol:
symbolKind: MEMBER
typeParameters: [KtFirTypeParameterSymbol(E)]
valueParameters: [KtFirValueParameterSymbol(c)]
visibility: P
UBLIC
visibility: P
ublic
*/
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录