- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 14 for ProgramSource (0.19 sec)
-
platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/execution/ProgramSource.kt
*/ package org.gradle.kotlin.dsl.execution data class ProgramSource internal constructor(val path: String, val contents: ProgramText) { constructor(path: String, contents: String) : this(path, text(contents)) val text: String get() = contents.text fun map(transform: (ProgramText) -> ProgramText) = ProgramSource(path, transform(contents)) } /**
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Aug 02 08:06:49 UTC 2023 - 4.5K bytes - Viewed (0) -
platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/execution/ParserToCompilerTest.kt
@Test fun `solo pluginManagement`() { val source = ProgramSource( "settings.gradle.kts", """ pluginManagement { println("stage 1") } """.trimIndent() ) assertStageOneOutput(source, "stage 1\n") } @Test fun `pluginManagement then buildscipt`() { val source = ProgramSource( "settings.gradle.kts", """
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Aug 02 08:06:49 UTC 2023 - 3.9K bytes - Viewed (0) -
platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/execution/PartialEvaluatorTest.kt
ApplyBasePlugins ) ) ) } @Test fun `Project target - top-level - non-empty body`() { val source = ProgramSource("build.gradle.kts", "dynamic") assertThat( "reduces to dynamic program that applies default plugin requests and base plugins", partialEvaluationOf( Program.Script(source),
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Aug 02 08:06:49 UTC 2023 - 38.9K bytes - Viewed (0) -
platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/execution/ProgramParserTest.kt
Program.Buildscript(source.fragment(1..11, 13..34)) ) } @Test fun `non-empty Stage 1 with non-empty Stage 2 parse to Stage 1 followed by Stage 2`() { val source = ProgramSource( "/src/fragment.gradle.kts", "\r\n\r\nplugins {\r\n java\r\n}\r\nprintln(\"Stage 2\")\r\n\r\n" ) assertProgramOf( source, Program.Staged(
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Aug 02 08:06:49 UTC 2023 - 8.1K bytes - Viewed (0) -
platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/execution/ResidualProgram.kt
} /** * A dynamic script [source] residue, can only be compiled after the execution of the static [prelude] at runtime. */ data class Dynamic(val prelude: Static, val source: ProgramSource) : ResidualProgram() sealed class Instruction { /** * Causes the configuration of the embedded Kotlin libraries * on the host's ScriptHandler. */
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Aug 02 08:06:49 UTC 2023 - 4K bytes - Viewed (0) -
platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/execution/ResidualProgramCompilerTest.kt
verifyNoMoreInteractions() } } } @Test fun `Static(CloseTargetScope, Eval(source))`() { val source = ProgramSource( "plugin.settings.gradle.kts", "include(\"precompiled stage 2\")" ) val target = mock<Settings>() val scriptHost = scriptHostWith(target)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Apr 01 13:09:45 UTC 2024 - 22.4K bytes - Viewed (0) -
platforms/core-configuration/kotlin-dsl-provider-plugins/src/main/kotlin/org/gradle/kotlin/dsl/provider/plugins/precompiled/tasks/ExtractPrecompiledScriptPluginPlugins.kt
import org.gradle.kotlin.dsl.execution.Program import org.gradle.kotlin.dsl.execution.ProgramKind import org.gradle.kotlin.dsl.execution.ProgramParser import org.gradle.kotlin.dsl.execution.ProgramSource import org.gradle.kotlin.dsl.execution.ProgramTarget import org.gradle.kotlin.dsl.provider.plugins.precompiled.PrecompiledScriptPlugin import org.gradle.kotlin.dsl.provider.plugins.precompiled.scriptPluginFilesOf
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Aug 02 08:06:49 UTC 2023 - 4.3K bytes - Viewed (0) -
platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/execution/ProgramParser.kt
object ProgramParser { fun parse(source: ProgramSource, kind: ProgramKind, target: ProgramTarget): Packaged<Program> = try { programFor(source, kind, target) } catch (unexpectedBlock: UnexpectedBlock) { handleUnexpectedBlock(unexpectedBlock, source.text, source.path) } private fun programFor(source: ProgramSource, kind: ProgramKind, target: ProgramTarget): Packaged<Program> {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Aug 02 08:06:49 UTC 2023 - 6.3K bytes - Viewed (0) -
platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/execution/ProgramParserAnnotationErasureTest.kt
Program.Buildscript(source.fragment(29..39, 41..62, 0)) ) } @Test fun `non-empty Stage 1 with non-empty Stage 2 parse to Stage 1 followed by Stage 2`() { val source = ProgramSource( "/src/fragment.gradle.kts", """ // a comment @Suppress("unused_variable") /* more comments */ @Suppress("whatever")
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Aug 02 08:06:49 UTC 2023 - 4.6K bytes - Viewed (0) -
platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/execution/Interpreter.kt
val sourceText = scriptSource.resource!!.text val programSource = ProgramSource(scriptPath, sourceText) val program = ProgramParser.parse(programSource, programKind, programTarget) val residualProgram = program.map( PartialEvaluator(programKind, programTarget)::reduce
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Oct 26 19:59:56 UTC 2023 - 21.1K bytes - Viewed (0)