- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 17 for Repeat (0.64 sec)
-
platforms/core-configuration/declarative-dsl-core/src/test/kotlin/org/gradle/internal/declarativedsl/dom/DomTestUtil.kt
): String = buildString { fun visitValue(valueNode: ValueNode, indent: Int) { append(" ".repeat(indent * 4)) append(valueFormatter(valueNode)) } fun visitDocumentNode(documentNode: DocumentNode, indent: Int) { append(" ".repeat(indent * 4)) append(nodeFormatter(documentNode)) when (documentNode) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri May 31 13:47:10 UTC 2024 - 2.2K bytes - Viewed (0) -
doc/next/6-stdlib/99-minor/slices/65238.md
The [Repeat] function returns a new slice that repeats the
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 12 20:57:18 UTC 2024 - 101 bytes - Viewed (0) -
platforms/core-configuration/declarative-dsl-core/src/test/kotlin/org/gradle/internal/declarativedsl/prettyPrintResults.kt
} fun prettyPrintLanguageResult(languageResult: LanguageResult<*>, startDepth: Int = 0): String { fun StringBuilder.recurse(current: LanguageResult<*>, depth: Int) { fun indent() = " ".repeat(depth) fun nextIndent() = " ".repeat(depth + 1) fun appendIndented(value: Any) { append(indent()) append(value) } fun appendNextIndented(value: Any) { append(nextIndent())
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue May 14 22:06:18 UTC 2024 - 10.2K bytes - Viewed (0) -
platforms/core-configuration/declarative-dsl-core/src/test/kotlin/org/gradle/internal/declarativedsl/demo/demoUtils.kt
val visitedIdentity = mutableSetOf<OperationId>() fun StringBuilder.recurse(current: ObjectReflection, depth: Int) { fun indent() = " ".repeat(depth) fun nextIndent() = " ".repeat(depth + 1) when (current) { is ObjectReflection.ConstantValue -> append( if (current.type is DataType.StringDataType) "\"${current.value}\""
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue May 21 14:27:23 UTC 2024 - 7.3K bytes - Viewed (0) -
build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/SortAcceptedApiChangesTask.kt
private fun adjustIndentation(initalJsonString: String): String { val indentationRegex = """^\s+""".toRegex(RegexOption.MULTILINE) return indentationRegex.replace(initalJsonString) { m -> " ".repeat(m.value.length * 2) } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Jun 04 14:00:46 UTC 2024 - 2K bytes - Viewed (0) -
analysis/analysis-api-impl-base/tests/org/jetbrains/kotlin/analysis/api/impl/base/test/cases/components/expressionTypeProvider/AbstractDeclarationReturnTypeTest.kt
override fun visitDeclaration(declaration: KtDeclaration, indent: Int): Void? { if (declaration is KtTypeParameter) return null append(" ".repeat(indent)) if (declaration is KtClassLikeDeclaration) { appendLine(declaration.getNameWithPositionString()) } else {
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Wed May 22 06:28:34 UTC 2024 - 2K bytes - Viewed (0) -
analysis/analysis-api-impl-base/tests/org/jetbrains/kotlin/analysis/api/impl/base/test/cases/components/diagnosticProvider/AbstractCollectDiagnosticsTest.kt
}) }.sortedBy { (_, diagnostic) -> diagnostic } val actual = buildString { fun DiagnosticKey.print(indent: Int) { val indentString = " ".repeat(indent) append(indentString + factoryName) appendLine("$indentString text ranges: $textRanges")
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Wed May 22 06:28:34 UTC 2024 - 4.1K bytes - Viewed (0) -
.teamcity/src/main/kotlin/configurations/PerformanceTest.kt
steps { preBuildSteps() killProcessStep(buildTypeThis, KILL_ALL_GRADLE_PROCESSES, os) substDirOnWindows(os) repeat(if (performanceTestBuildSpec.type == PerformanceTestType.flakinessDetection) 2 else 1) { repeatIndex: Int -> gradleWrapper { name = "GRADLE_RUNNER${if (repeatIndex == 0) "" else "_2"}"
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Jun 03 03:39:03 UTC 2024 - 5.4K bytes - Viewed (0) -
platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/execution/ResidualProgramCompilerTest.kt
require(lineNumber >= 1) { "Line numbers are 1-based" } return fragment(identifier, body, prefix = String(repeat('\n', lineNumber - 1))) } private fun repeat(char: Char, times: Int) = CharArray(times).also { fill(it, char) } internal fun fragment(identifier: String, body: String, prefix: String = ""): ProgramSourceFragment {
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/declarative-dsl-evaluator/src/main/kotlin/org/gradle/internal/declarativedsl/evaluator/EvaluationFailureMessageGenerator.kt
private fun locationPrefixString(ast: SourceData): String = if (ast.lineRange.first != -1) "${ast.lineRange.first}:${ast.startColumn}" else "" private fun String.indent(level: Int = 1) = " ".repeat(level * 2) + this
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu May 30 12:25:47 UTC 2024 - 8.3K bytes - Viewed (0)