Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
硅谷海盗
kotlin
提交
b0969f62
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,体验更适合开发者的 AI 搜索 >>
提交
b0969f62
编写于
3月 19, 2021
作者:
D
Dmitriy Novozhilov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[FIR] Rename SyntheticPropertySymbol to FirSyntheticPropertySymbol
上级
714871e4
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
7 addition
and
7 deletion
+7
-7
compiler/fir/fir2ir/src/org/jetbrains/kotlin/fir/backend/ConversionUtils.kt
...r/src/org/jetbrains/kotlin/fir/backend/ConversionUtils.kt
+3
-3
compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/calls/Synthetics.kt
.../src/org/jetbrains/kotlin/fir/resolve/calls/Synthetics.kt
+2
-2
idea/idea-frontend-fir/src/org/jetbrains/kotlin/idea/references/FirReferenceResolveHelper.kt
...rains/kotlin/idea/references/FirReferenceResolveHelper.kt
+2
-2
未找到文件。
compiler/fir/fir2ir/src/org/jetbrains/kotlin/fir/backend/ConversionUtils.kt
浏览文件 @
b0969f62
...
...
@@ -22,7 +22,7 @@ import org.jetbrains.kotlin.fir.references.FirResolvedNamedReference
import
org.jetbrains.kotlin.fir.references.FirThisReference
import
org.jetbrains.kotlin.fir.references.impl.FirPropertyFromParameterResolvedNamedReference
import
org.jetbrains.kotlin.fir.resolve.*
import
org.jetbrains.kotlin.fir.resolve.calls.SyntheticPropertySymbol
import
org.jetbrains.kotlin.fir.resolve.calls.
Fir
SyntheticPropertySymbol
import
org.jetbrains.kotlin.fir.resolve.calls.originalConstructorIfTypeAlias
import
org.jetbrains.kotlin.fir.resolve.providers.FirProvider
import
org.jetbrains.kotlin.fir.scopes.*
...
...
@@ -176,7 +176,7 @@ fun FirReference.toSymbolForCall(
private
fun
FirCallableSymbol
<*>.
toSymbolForCall
(
declarationStorage
:
Fir2IrDeclarationStorage
,
preferGetter
:
Boolean
):
IrSymbol
?
=
when
(
this
)
{
is
FirFunctionSymbol
<
*
>
->
declarationStorage
.
getIrFunctionSymbol
(
this
)
is
SyntheticPropertySymbol
->
{
is
Fir
SyntheticPropertySymbol
->
{
(
fir
as
?
FirSyntheticProperty
)
?.
let
{
syntheticProperty
->
val
delegateSymbol
=
if
(
preferGetter
)
{
syntheticProperty
.
getter
.
delegate
.
symbol
...
...
@@ -393,7 +393,7 @@ internal fun FirReference.statementOrigin(): IrStatementOrigin? {
return
when
(
this
)
{
is
FirPropertyFromParameterResolvedNamedReference
->
IrStatementOrigin
.
INITIALIZE_PROPERTY_FROM_PARAMETER
is
FirResolvedNamedReference
->
when
(
val
symbol
=
resolvedSymbol
)
{
is
AccessorSymbol
,
is
SyntheticPropertySymbol
->
IrStatementOrigin
.
GET_PROPERTY
is
AccessorSymbol
,
is
Fir
SyntheticPropertySymbol
->
IrStatementOrigin
.
GET_PROPERTY
is
FirNamedFunctionSymbol
->
when
{
symbol
.
callableId
.
isInvoke
()
->
IrStatementOrigin
.
INVOKE
...
...
compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/calls/Synthetics.kt
浏览文件 @
b0969f62
...
...
@@ -23,7 +23,7 @@ import org.jetbrains.kotlin.fir.unwrapFakeOverrides
import
org.jetbrains.kotlin.name.Name
import
org.jetbrains.kotlin.types.AbstractTypeChecker
class
SyntheticPropertySymbol
(
class
Fir
SyntheticPropertySymbol
(
callableId
:
CallableId
,
override
val
accessorId
:
CallableId
)
:
FirAccessorSymbol
(
callableId
,
accessorId
),
SyntheticSymbol
...
...
@@ -109,7 +109,7 @@ class FirSyntheticPropertiesScope(
val
property
=
buildSyntheticProperty
{
session
=
this
@FirSyntheticPropertiesScope
.
session
name
=
propertyName
symbol
=
SyntheticPropertySymbol
(
symbol
=
Fir
SyntheticPropertySymbol
(
accessorId
=
getterSymbol
.
callableId
,
callableId
=
CallableId
(
packageName
,
className
,
propertyName
)
)
...
...
idea/idea-frontend-fir/src/org/jetbrains/kotlin/idea/references/FirReferenceResolveHelper.kt
浏览文件 @
b0969f62
...
...
@@ -14,7 +14,7 @@ import org.jetbrains.kotlin.fir.declarations.synthetic.FirSyntheticProperty
import
org.jetbrains.kotlin.fir.expressions.*
import
org.jetbrains.kotlin.fir.psi
import
org.jetbrains.kotlin.fir.references.*
import
org.jetbrains.kotlin.fir.resolve.calls.SyntheticPropertySymbol
import
org.jetbrains.kotlin.fir.resolve.calls.
Fir
SyntheticPropertySymbol
import
org.jetbrains.kotlin.fir.resolve.diagnostics.ConeAmbiguityError
import
org.jetbrains.kotlin.fir.resolve.diagnostics.ConeInapplicableCandidateError
import
org.jetbrains.kotlin.fir.resolve.diagnostics.ConeOperatorAmbiguityError
...
...
@@ -86,7 +86,7 @@ internal object FirReferenceResolveHelper {
}
is
FirResolvedNamedReference
->
{
val
fir
=
when
(
val
symbol
=
resolvedSymbol
)
{
is
SyntheticPropertySymbol
->
{
is
Fir
SyntheticPropertySymbol
->
{
val
syntheticProperty
=
symbol
.
fir
as
FirSyntheticProperty
if
(
syntheticProperty
.
getter
.
delegate
.
symbol
.
callableId
==
symbol
.
accessorId
)
{
syntheticProperty
.
getter
.
delegate
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录