Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 105 for appendTime (0.41 sec)

  1. internal/ioutil/append-file_nix.go

    package ioutil
    
    import (
    	"io"
    	"os"
    )
    
    // AppendFile - appends the file "src" to the file "dst"
    func AppendFile(dst string, src string, osync bool) error {
    	flags := os.O_WRONLY | os.O_APPEND | os.O_CREATE
    	if osync {
    		flags |= os.O_SYNC
    	}
    	appendFile, err := os.OpenFile(dst, flags, 0o666)
    	if err != nil {
    		return err
    	}
    	defer appendFile.Close()
    
    	srcFile, err := os.Open(src)
    	if err != nil {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sun Jan 02 17:15:06 UTC 2022
    - 1.3K bytes
    - Viewed (0)
  2. analysis/analysis-api-fir/analysis-api-fir-generator/src/org/jetbrains/kotlin/analysis/api/fir/generator/HLParameterConversion.kt

            return buildString {
                appendLine("$expression.mapKeys { ($keyName, _) ->")
                appendLine(keyTransformation.withIndent(context.increaseIndent()))
                appendLine("}.mapValues { (_, $valueName) -> ".withIndent(context))
                appendLine(valueTransformation.withIndent(context.increaseIndent()))
                append("}".withIndent(context))
            }
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed Sep 15 09:32:47 UTC 2021
    - 5.7K bytes
    - Viewed (0)
  3. analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/contracts/description/KtContractDescriptionElementRenderer.kt

        if (endWithNewLine) printer.appendLine(renderedValue) else printer.append(renderedValue)
    }
    
    internal data class Context(val session: KaSession, val printer: PrettyPrinter, val symbolRenderer: DebugSymbolRenderer)
    
    private fun PrettyPrinter.appendHeader(clazz: KClass<*>, body: PrettyPrinter.() -> Unit) {
        append(clazz.simpleName)
        appendLine(":")
        withIndent { body() }
    }
    
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 29 17:43:55 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  4. analysis/analysis-api-impl-base/tests/org/jetbrains/kotlin/analysis/api/impl/base/test/cases/annotations/AbstractAnalysisApiAnnotationsOnTypesTest.kt

                buildString {
                    appendLine("${KtTypeReference::class.simpleName}: ${ktTypeReference.text}")
                    appendLine("annotations: [")
                    for (annotation in annotations) {
                        appendLine(DebugSymbolRenderer().renderAnnotationApplication(analysisSession, annotation).indented(indent = 2))
                    }
                    appendLine("]")
                }
            }
    
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 29 17:43:55 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  5. analysis/analysis-api-impl-base/tests/org/jetbrains/kotlin/analysis/api/impl/base/test/cases/components/psiTypeProvider/AbstractAnalysisApiExpressionPsiTypeProviderTest.kt

                                    appendLine("asPsiType(allowErrorTypes=$allowErrorTypes, mode=$typeMappingMode, isAnnotationMethod=$isAnnotationMethod):")
                                    withIndent {
                                        appendLine("PsiType: ${AnalysisApiPsiTypeProviderTestUtils.render(psiType)}")
                                    }
                                    appendLine()
                                }
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 29 17:43:55 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  6. analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/symbols/DebugSymbolRenderer.kt

            withIndent {
                appendLine()
                renderProperty(KaCallableSymbol::callableId, printer, renderSymbolsFully = false, symbol)
                if (symbol is KaNamedSymbol) {
                    appendLine()
                    renderProperty(KaNamedSymbol::name, printer, renderSymbolsFully = false, symbol)
                }
                appendLine()
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jun 11 15:45:42 UTC 2024
    - 19.8K bytes
    - Viewed (0)
  7. analysis/analysis-api-impl-base/tests/org/jetbrains/kotlin/analysis/api/impl/base/test/cases/components/typeInfoProvider/AbstractFunctionClassKindTest.kt

                }
            }
            val actual = buildString {
                appendLine("expression: ${expressionAtCaret.text}")
                appendLine("expected type: $type")
                appendLine("functionClassKind: $functionClassKind")
            }
            testServices.assertions.assertEqualsToTestDataFileSibling(actual)
        }
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed Mar 27 16:04:54 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  8. analysis/analysis-api-impl-base/tests/org/jetbrains/kotlin/analysis/api/impl/base/test/cases/components/typeCreator/AbstractTypeParameterTypeTest.kt

                val symbol = expressionAtCaret.getTypeParameterSymbol()
                val ktType = buildTypeParameterType(symbol)
                buildString {
                    appendLine("${KtTypeParameter::class.simpleName}: ${expressionAtCaret.text}")
                    appendLine("${KaType::class.simpleName}: ${ktType.render(position = Variance.INVARIANT)}")
                }
            }
    
            testServices.assertions.assertEqualsToTestDataFileSibling(actual)
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 29 17:43:55 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  9. analysis/analysis-api-impl-base/tests/org/jetbrains/kotlin/analysis/api/impl/base/test/cases/components/readWriteAccess/AbstractReadWriteAccessTest.kt

            val readWriteAccess = expressionAtCaret.readWriteAccess(true)
    
            val actual = buildString {
                appendLine("expression: ${expressionAtCaret.text}")
                appendLine("access type: $readWriteAccess")
            }
    
            testServices.assertions.assertEqualsToTestDataFileSibling(actual)
        }
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed Mar 27 16:04:54 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  10. analysis/analysis-api-impl-base/tests/org/jetbrains/kotlin/analysis/api/impl/base/test/cases/components/symbolDeclarationOverridesProvider/AbstractOverriddenDeclarationProviderTest.kt

                    buildString {
                        appendLine("ALL:")
                        allOverriddenSymbols.forEach { appendLine("  $it") }
                        appendLine("DIRECT:")
                        directlyOverriddenSymbols.forEach { appendLine("  $it") }
                    }
                }
            }
            testServices.assertions.assertEqualsToTestDataFileSibling(actual)
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Mon May 27 09:59:11 UTC 2024
    - 4.5K bytes
    - Viewed (0)
Back to top