- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 86 for buildMap (0.19 sec)
-
subprojects/core-api/src/test/groovy/org/gradle/model/internal/core/ModelTypeJavaTest.java
assertEquals(new ModelType<Map<String, Integer>>() {}, buildMap(ModelType.of(String.class), ModelType.of(Integer.class))); assertEquals(new ModelType<Map<String, Integer>>() {}.hashCode(), buildMap(ModelType.of(String.class), ModelType.of(Integer.class)).hashCode()); } static <K, V> ModelType<Map<K, V>> buildMap(ModelType<K> k, ModelType<V> v) { return new ModelType.Builder<Map<K, V>>() {}
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Nov 19 22:17:48 UTC 2019 - 2.8K bytes - Viewed (0) -
platforms/core-configuration/declarative-dsl-core/src/main/kotlin/org/gradle/internal/declarativedsl/dom/data/DocumentDataContainerUtil.kt
import org.gradle.internal.declarativedsl.dom.DeclarativeDocument fun <D, C : NodeData<D>> C.collectToNodeMap(document: DeclarativeDocument): Map<DeclarativeDocument.DocumentNode, D> = buildMap { fun visit(node: DeclarativeDocument.DocumentNode) { put(node, data(node)) when (node) { is DeclarativeDocument.DocumentNode.ElementNode -> node.content.forEach(::visit)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri May 31 13:47:08 UTC 2024 - 2.2K bytes - Viewed (0) -
analysis/analysis-api-impl-base/tests/org/jetbrains/kotlin/analysis/api/impl/base/test/cases/references/AbstractReferenceShortenerForWholeFileTest.kt
override fun doTestByMainFile(mainFile: KtFile, mainModule: KtTestModule, testServices: TestServices) { val shortenings = executeOnPooledThreadInReadAction { analyseForTest(mainFile) { buildMap { this += "default settings" to collectPossibleReferenceShortenings(mainFile, mainFile.textRange) this += ShortenStrategy.entries.associateWith { option ->
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Wed Mar 27 16:04:54 UTC 2024 - 2.1K bytes - Viewed (0) -
analysis/analysis-api-impl-base/tests/org/jetbrains/kotlin/analysis/api/impl/base/test/cases/references/AbstractReferenceShortenerTest.kt
val element = testServices.expressionMarkerProvider.getSelectedElementOfType<KtElement>(mainFile) val shortenings = executeOnPooledThreadInReadAction { analyseForTest(element) { buildMap { this += "default settings" to collectPossibleReferenceShorteningsInElement(element) this += ShortenStrategy.entries.associate { option ->
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Wed Mar 27 16:04:54 UTC 2024 - 2.7K bytes - Viewed (0) -
analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirSubstitutorFactory.kt
override fun buildSubstitutor(builder: KaSubstitutorBuilder): KaSubstitutor { if (builder.mappings.isEmpty()) return KaSubstitutor.Empty(token) val firSubstitution = buildMap { builder.mappings.forEach { (ktTypeParameterSymbol, ktType) -> check(ktTypeParameterSymbol is KaFirTypeParameterSymbol) check(ktType is KaFirType)
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Wed May 22 06:28:34 UTC 2024 - 1.8K bytes - Viewed (0) -
platforms/core-configuration/declarative-dsl-core/src/main/kotlin/org/gradle/internal/declarativedsl/analysis/Resolver.kt
} fun collectImports( trees: List<Import>, analysisContext: AnalysisContext ): Map<String, FqName> = buildMap { trees.forEach { import -> val fqn = DefaultFqName( import.name.nameParts.dropLast(1).joinToString("."), import.name.nameParts.last() )
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu May 30 12:25:46 UTC 2024 - 2.5K bytes - Viewed (0) -
platforms/core-configuration/declarative-dsl-core/src/main/kotlin/org/gradle/internal/declarativedsl/mappingToJvm/FunctionBinding.kt
hasLambda: Boolean, configureLambdaHandler: ConfigureLambdaHandler ): Binding? { var captor: ConfigureLambdaHandler.ValueCaptor? = null val map = buildMap(arguments.size + 1) { val namedArguments = arguments.mapKeys { (param, _) -> param.name } var used = 0 if (kFunction.instanceParameter != null && kFunction.extensionReceiverParameter != null)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu May 16 11:58:18 UTC 2024 - 3K bytes - Viewed (0) -
analysis/analysis-api-standalone/analysis-api-standalone-base/src/org/jetbrains/kotlin/analysis/api/standalone/base/project/structure/KtStaticModuleDependentsProvider.kt
} private inline fun buildDependentsMap( modules: List<KtModule>, getDependencies: (KtModule) -> Sequence<KtModule>, ): Map<KtModule, MutableSet<KtModule>> = buildMap<KtModule, MutableSet<KtModule>> { for (module in modules) { for (dependency in getDependencies(module)) {
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Mon Mar 18 21:14:36 UTC 2024 - 2.6K bytes - Viewed (0) -
platforms/core-configuration/declarative-dsl-core/src/main/kotlin/org/gradle/internal/declarativedsl/objectGraph/AssignmentResolver.kt
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu May 30 12:25:46 UTC 2024 - 9.6K bytes - Viewed (0) -
src/cmd/fix/buildtag.go
"strings" ) func init() { register(buildtagFix) } const buildtagGoVersionCutoff = "go1.18" var buildtagFix = fix{ name: "buildtag", date: "2021-08-25", f: buildtag, desc: `Remove +build comments from modules using Go 1.18 or later`, } func buildtag(f *ast.File) bool { if version.Compare(*goVersion, buildtagGoVersionCutoff) < 0 { return false }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 22 05:31:47 UTC 2024 - 1.2K bytes - Viewed (0)