mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-20 05:21:29 +07:00
IJPL-943 add "Analyze API Usage Count" action
Other changes in this commit: - `resolveApiElement` added. - `resolveApiField` and `resolveApiMethod` work on reference level => they should not go into base classes because the reference has the exact class name. - `ApiWatcherBundle` added. - `ApiElementNodeRenderer` can now render symbolic reference's presentable name. GitOrigin-RevId: 2d7a694971dc25f2c737d314ed422a2c174a395c
This commit is contained in:
committed by
intellij-monorepo-bot
parent
0c5dae7421
commit
e18fcc8d0f
@@ -28,7 +28,7 @@ fun String.packageName(): String {
|
||||
}
|
||||
}
|
||||
|
||||
internal fun String.dottedClassName(): String {
|
||||
fun String.dottedClassName(): String {
|
||||
return replace('/', '.')
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
// Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
package com.intellij.tools.apiDump
|
||||
|
||||
import org.objectweb.asm.Type
|
||||
|
||||
class API(
|
||||
val publicApi: List<ApiClass>,
|
||||
val privateApi: Set<String>,
|
||||
@@ -21,6 +23,8 @@ data class ApiMember(
|
||||
val flags: ApiFlags,
|
||||
)
|
||||
|
||||
val ApiMember.isMethod: Boolean get() = Type.getType(ref.descriptor).sort == Type.METHOD
|
||||
|
||||
data class ApiRef(
|
||||
val name: String,
|
||||
val descriptor: String,
|
||||
|
||||
Reference in New Issue
Block a user