Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 24 for Repeat (0.49 sec)

  1. 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)
  2. 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)
  3. analysis/analysis-api/testData/components/compilerFacility/compilation/codeFragments/capturing/localFunction.kt

    // MODULE: context
    
    // FILE: context.kt
    fun test() {
        fun call(a: Int, b: String) {
            println(b.repeat(a))
        }
    
        val x = 2
        val y = "foo"
        <caret_context>val z = Unit
    }
    
    
    // MODULE: main
    // MODULE_KIND: CodeFragment
    // CONTEXT_MODULE: context
    
    // FILE: fragment.kt
    // CODE_FRAGMENT_KIND: EXPRESSION
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jan 30 11:41:26 UTC 2024
    - 329 bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. .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)
  9. src/cmd/go/testdata/script/version.txt

    go build -o test2json.exe cmd/test2json
    go version -m test2json.exe
    stdout -buildmode=exe
    stdout '^test2json.exe: .+'
    stdout '^\tpath\tcmd/test2json$'
    ! stdout 'mod[^e]'
    
    # Repeat the test with -buildmode=pie and default linking.
    [!buildmode:pie] stop
    [pielinkext] [!cgo] stop
    go build -buildmode=pie -o external.exe rsc.io/fortune
    go version external.exe
    stdout '^external.exe: .+'
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 05 14:52:04 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  10. 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)
Back to top