- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for UnexpectedBlockOrder (0.44 sec)
-
platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/execution/TopLevelBlockExtractionTest.kt
fun `given a plugins block before a pluginManagement block it throws UnexpectedBlockOrder`() { val topLevelBlocks = extractPluginAndPluginManagementBlockFrom("plugins {} pluginManagement {}") try { checkForTopLevelBlockOrder(topLevelBlocks) fail("Expecting ${UnexpectedBlockOrder::class.simpleName}!") } catch (unexpectedBlock: UnexpectedBlockOrder) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Aug 02 08:06:49 UTC 2023 - 4.8K bytes - Viewed (0) -
platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/execution/ProgramParser.kt
val firstTopLevelBlock = topLevelBlocks.first() if (firstTopLevelBlock.identifier != TopLevelBlockId.pluginManagement) { throw UnexpectedBlockOrder(firstTopLevelBlock.identifier, firstTopLevelBlock.range, pluginManagementBlock.identifier) } } private fun List<TopLevelBlock>.singleSectionOf(topLevelBlockId: TopLevelBlockId) =
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/main/kotlin/org/gradle/kotlin/dsl/execution/Lexer.kt
UnexpectedBlock("Unexpected `$identifier` block found. Only one `$identifier` block is allowed per script.") internal class UnexpectedBlockOrder(val identifier: TopLevelBlockId, override val location: IntRange, expectedFirstIdentifier: TopLevelBlockId) : UnexpectedBlock("Unexpected `$identifier` block found. `$identifier` can not appear before `$expectedFirstIdentifier`.")
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Aug 02 08:06:49 UTC 2023 - 9.4K bytes - Viewed (0)