Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 212 for asSequence (0.28 sec)

  1. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/scopes/KtFe10ScopeResolution.kt

        abstract val scope: ResolutionScope
    
        override fun getCallableSymbols(nameFilter: KtScopeNameFilter): Sequence<KtCallableSymbol> = withValidityAssertion {
            return scope
                .getContributedDescriptors(kindFilter = DescriptorKindFilter.ALL, nameFilter)
                .asSequence()
                .filter { nameFilter(it.name) }
                .mapNotNull { it.toKtSymbol(analysisContext) as? KtCallableSymbol }
        }
    
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Tue Oct 10 13:38:00 GMT 2023
    - 5.7K bytes
    - Viewed (0)
  2. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirTypeProvider.kt

                is ConeErrorType -> emptySequence()
                is ConeLookupTagBasedType -> getSubstitutedSuperTypes(shouldApproximate)
                else -> emptySequence()
            }.distinct()
        }
    
        private fun ConeLookupTagBasedType.getSubstitutedSuperTypes(shouldApproximate: Boolean): Sequence<ConeKotlinType> {
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Tue Feb 20 08:50:04 GMT 2024
    - 16.3K bytes
    - Viewed (0)
  3. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/components/KtFe10MultiplatformInfoProvider.kt

            val memberDescriptor = (getSymbolDescriptor(actual) as? MemberDescriptor)?.takeIf { it.isActual } ?: return emptyList()
    
            return ExpectedActualResolver.findExpectedForActual(memberDescriptor).orEmpty().asSequence()
                .filter { it.key.isCompatibleOrWeaklyIncompatible }
                .flatMap { it.value }
                .map { it.toKtSymbol(analysisContext) as KtDeclarationSymbol }
                .toList()
        }
    Plain Text
    - Registered: Fri May 03 08:18:13 GMT 2024
    - Last Modified: Mon Nov 06 14:41:15 GMT 2023
    - 1.9K bytes
    - Viewed (0)
  4. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/scopes/DeclarationsInPackageProvider.kt

            val declarationGenerators = session.extensionService.declarationGenerators
    
            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()
                }
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Tue Apr 23 10:55:55 GMT 2024
    - 5.4K bytes
    - Viewed (0)
  5. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/scopes/KtFe10PackageScope.kt

            val packageFragmentProvider = analysisContext.resolveSession.packageFragmentProvider
            return packageFragmentProvider.getSubPackagesOf(owner.fqName, nameFilter)
                .asSequence()
                .map { KtFe10PackageSymbol(it, analysisContext) }
        }
    
        override fun getConstructors(): Sequence<KtConstructorSymbol> = withValidityAssertion {
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Fri Nov 11 10:59:57 GMT 2022
    - 1.5K bytes
    - Viewed (0)
  6. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/components/KtFe10SymbolProvider.kt

        override fun getTopLevelCallableSymbols(packageFqName: FqName, name: Name): Sequence<KtCallableSymbol> {
            val packageViewDescriptor = analysisContext.resolveSession.moduleDescriptor.getPackage(packageFqName)
            return packageViewDescriptor.memberScope.getContributedDescriptors(DescriptorKindFilter.ALL, nameFilter = { it == name })
                .asSequence()
                .filter { it.name == name }
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Thu Aug 17 13:01:02 GMT 2023
    - 7K bytes
    - Viewed (0)
  7. build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/sources/SourcesRepository.kt

                }
            }
        }
    
        /**
         * @return the source file and it's source root
         */
        fun sourceFileAndSourceRootFor(sourceFilePath: String): Pair<File, File> =
            sourceRoots.asSequence()
                .map { it.resolve(sourceFilePath) to it }
                .firstOrNull { it.first.isFile }
    Plain Text
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Mon Feb 20 16:37:41 GMT 2023
    - 4K bytes
    - Viewed (0)
  8. build-logic/integration-testing/src/main/kotlin/gradlebuild/integrationtests/action/AnnotationGeneratorWorkAction.kt

        }
    
        private
        fun groovyProjectAccessors(): String {
            val objectMethods = Any::class.java.declaredMethods.toList()
            return Project::class
                .memberFunctions
                .asSequence()
                .mapNotNull { it.javaMethod }
                .filterNot { objectMethods.contains(it) }
                .map { it.toGroovyScriptString() }
                .sorted()
                .joinToString(separator = "\n")
    Plain Text
    - Registered: Wed Mar 27 11:36:08 GMT 2024
    - Last Modified: Wed Jun 22 10:58:31 GMT 2022
    - 6.9K bytes
    - Viewed (0)
  9. build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/sources/KotlinSourceQueries.kt

                return@collectDescendantsOfType false
            }
    
            // Parameter type check
            method.parameterTypes
                .asSequence()
                // Drop the receiver if present
                .drop(if (extensionCandidate) 1 else 0)
                .withIndex()
                .all<IndexedValue<CtClass>> {
    Plain Text
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Wed Dec 20 20:38:19 GMT 2023
    - 11.1K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/publicsuffix/PublicSuffixDatabase.kt

          } else {
            // Otherwise the rule is for a public suffix, so we must take one more label.
            domainLabels.size - (rule.size + 1)
          }
    
        return splitDomain(domain).asSequence().drop(firstLabelOffset).joinToString(".")
      }
    
      private fun splitDomain(domain: String): List<String> {
        val domainLabels = domain.split('.')
    
        if (domainLabels.last() == "") {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11.7K bytes
    - Viewed (0)
Back to top