Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for usage (1.02 sec)

  1. analysis/analysis-api/testData/components/diagnosticsProvider/diagnostics/duplicatedCallableWithImplicitType.kt

    // MODULE: lib1
    // FILE: dependency.kt
    package usage
    
    fun implicitType() = 1
    
    // MODULE: dep(lib1)
    // FILE: annotation.kt
    package usage
    
    fun implicitTypeFromAnotherModule() = implicitType()
    
    // MODULE: lib2
    // FILE: dependency.kt
    package usage
    
    fun implicitType() = "str"
    
    // MODULE: main(lib2, dep)
    // FILE: usage.kt
    package usage
    
    fun usage(): Int = run {
        implicitType()
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Mon Mar 18 21:14:36 UTC 2024
    - 414 bytes
    - Viewed (0)
  2. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/scopes/DeclarationsInPackageProvider.kt

            val generatedTopLevelClassifiers = declarationGenerators
                .asSequence()
                .flatMap {
                    // FIXME this function should be called only once during plugin's lifetime, so this usage is not really correct (2)
                    it.getTopLevelClassIds()
                }
                .filter { it.packageFqName == packageFqName }
                .map { it.shortClassName }
    
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Thu Jun 06 17:44:50 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  3. analysis/analysis-api/testData/components/diagnosticsProvider/diagnostics/annotationWithEnumFromDuplicatedLibrary.kt

    // MODULE: lib2
    // FILE: anno.kt
    package kotlin.annotation
    
    public enum class AnnotationTarget {
        CLASS;
    }
    
    // MODULE: main(lib2, dep)
    // FILE: usage.kt
    package usage
    
    import my.pack.Deprecated
    
    @Deprecated
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Mon Mar 18 21:14:36 UTC 2024
    - 521 bytes
    - Viewed (0)
  4. analysis/analysis-api/testData/components/diagnosticsProvider/diagnostics/sameCallableIdFromDependencies.kt

    // MODULE: dep2
    // FILE: util21.kt
    package my.pack
    
    fun Any.myExt2() {}
    
    // FILE: util22.kt
    package my.pack
    
    val Any.myExt2: Int get() = 10
    
    // MODULE: main(dep1, dep2)
    // FILE: usage.kt
    package usage
    
    import my.pack.myExt
    import my.pack.myExt2
    
    fun test(a: Any) {
        a.myExt()
        a.myExt
    
        a.myExt2
        a.myExt2()
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Mon Apr 29 19:19:13 UTC 2024
    - 476 bytes
    - Viewed (0)
  5. analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/components/KtReferenceShortener.kt

     * shortening in a string form. If [shortenedReference] is null, it means the shortening will simply delete the qualifier. Note that
     * currently the only usage of [shortenedReference] is the case we have the import-alias. For example, [shortenedReference] will be
     * "AliasType" when we shorten:
     * ```
     * import my.package.NewType as AliasType
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Mon May 27 09:59:11 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  6. analysis/analysis-api-impl-base/tests/org/jetbrains/kotlin/analysis/api/impl/base/test/cases/components/visibilityChecker/AbstractVisibilityCheckerTest.kt

                """
                    Declaration: ${(declarationSymbol as KaDeclarationSymbol).render(KaDeclarationRendererForDebug.WITH_QUALIFIED_NAMES)}
                    At usage site: ${useSiteElement.text}
                    Is visible: $visible
                """.trimIndent()
            }
    
            testServices.assertions.assertEqualsToTestDataFileSibling(actualText)
        }
    
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Thu May 23 16:12:19 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  7. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/FirUtils.kt

     * is imported somewhere else and used without directly referencing the object instance
     * itself:
     *
     * ```kt
     * import Foo.bar
     *
     * object Foo { fun String.bar() {} }
     *
     * fun usage() {
     *   "hello".bar() // this call has implicit 'Foo' dispatch receiver
     * }
     * ```
     */
    internal val FirResolvedQualifier.isImplicitDispatchReceiver: Boolean
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jun 11 15:45:43 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  8. analysis/analysis-api-standalone/analysis-api-standalone-base/src/org/jetbrains/kotlin/analysis/api/standalone/base/declarations/KotlinStandaloneAnnotationsResolver.kt

    import org.jetbrains.kotlin.name.ClassId
    import org.jetbrains.kotlin.name.FqName
    import org.jetbrains.kotlin.psi.*
    import org.jetbrains.kotlin.utils.filterIsInstanceAnd
    
    /**
     * This implementation works only for FQN annotations usages (`@foo.Bar` instead of `@Bar`).
     * It does not perform the full resolve of the annotation call, but it checks whether the annotation
     * with such FQN is present in the [scope] with [KotlinDeclarationProvider].
     *
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Thu Jun 06 17:44:50 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  9. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/utils/InlineDelegatedPropertyAccessorsAnalyzer.kt

    @OptIn(KaAnalysisNonPublicApi::class)
    fun MutableSet<KtFile>.collectReachableInlineDelegatedPropertyAccessors() {
        if (isEmpty()) return
    
        // One of the compiler lowerings, namely `PropertyReferenceLowering`,
        // optimizes usages of property references in some cases,
        // and if a containing delegated property accessor is inline,
        // it might need this accessor's bytecode.
        //
        // If an accessor function is defined in a different module,
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 22 06:28:34 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  10. analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/components/KtImportOptimizer.kt

    }
    
    public typealias KtImportOptimizer = KaImportOptimizer
    
    public interface KaImportOptimizerMixIn : KaSessionMixIn {
    
        /**
         * Takes [file] and inspects its imports and their usages,
         * so they can be optimized based on the resulting [KaImportOptimizerResult].
         *
         * Does **not** change the file.
         */
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 22 06:28:35 UTC 2024
    - 1.8K bytes
    - Viewed (0)
Back to top