Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 50 for appendSlice (0.3 sec)

  1. src/cmd/compile/internal/walk/assign.go

    		}
    		var r ir.Node
    		switch {
    		case isAppendOfMake(call):
    			// x = append(y, make([]T, y)...)
    			r = extendSlice(call, init)
    		case call.IsDDD:
    			r = appendSlice(call, init) // also works for append(slice, string).
    		default:
    			r = walkAppend(call, init, as)
    		}
    		as.Y = r
    		if r.Op() == ir.OAPPEND {
    			r := r.(*ir.CallExpr)
    			// Left in place for back end.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:09:06 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  2. src/reflect/all_test.go

    		}
    
    		// Test AppendSlice.
    		a1 := ValueOf(&test.orig).Elem()
    		have1 := AppendSlice(a1, e1)
    		if have1.CanAddr() {
    			t.Errorf("AppendSlice #%d: have slice should not be addressable", i)
    		}
    		if !DeepEqual(have1.Interface(), want) {
    			t.Errorf("AppendSlice #%d: have %v, want %v", i, have1, want)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
  3. src/reflect/value.go

    	for i, v := range x {
    		s.Index(n + i).Set(v)
    	}
    	return s
    }
    
    // AppendSlice appends a slice t to a slice s and returns the resulting slice.
    // The slices s and t must have the same element type.
    func AppendSlice(s, t Value) Value {
    	s.mustBe(Slice)
    	t.mustBe(Slice)
    	typesMustMatch("reflect.AppendSlice", s.Type().Elem(), t.Type().Elem())
    	ns := s.Len()
    	nt := t.Len()
    	s = s.extendSlice(nt)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 119.9K bytes
    - Viewed (0)
  4. analysis/analysis-api-impl-base/tests/org/jetbrains/kotlin/analysis/api/impl/base/test/cases/components/substututorFactory/AbstractSubstitutorBuilderTest.kt

                prettyPrint {
                    appendLine("${KtDeclaration::class.simpleName}: ${declaration::class.simpleName}")
    
                    appendLine("Symbol:")
                    appendLine(symbol.render(KaDeclarationRendererForDebug.WITH_QUALIFIED_NAMES))
    
                    appendLine()
    
                    appendLine("Substitutor:")
                    appendLine(stringRepresentation(substitutor))
    
                    appendLine()
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jun 11 15:45:42 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  5. analysis/analysis-api-impl-base/tests/org/jetbrains/kotlin/analysis/api/impl/base/test/cases/symbols/AbstractMultiModuleSymbolByPsiTest.kt

                        debugPrinter.appendLine(debugRenderer.render(analysisSession, symbol))
                        debugPrinter.appendLine()
    
                        prettyPrinter.withIndents(indentCount = declaration.parentsOfType<KtDeclaration>(withSelf = false).count()) {
                            prettyPrinter.appendLine(symbol.render(KaDeclarationRendererForDebug.WITH_QUALIFIED_NAMES))
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 22 06:28:34 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  6. analysis/analysis-api-impl-base/tests/org/jetbrains/kotlin/analysis/api/impl/base/test/cases/components/scopeProvider/AbstractTypeScopeTest.kt

                    appendLine("Expression: ${expression.text}")
                    appendLine("${KaType::class.simpleName}: ${type.render(position = Variance.INVARIANT)}")
                    appendLine()
                    appendLine("${KaTypeScope::class.simpleName}:")
                    appendLine(typeScope?.let { renderForTests(it) } ?: "NO_SCOPE")
                    appendLine()
    
                    appendLine("Declaration Scope:")
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 29 17:43:55 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  7. analysis/analysis-api-impl-base/tests/org/jetbrains/kotlin/analysis/api/impl/base/test/cases/components/symbolInfoProvider/AbstractAnnotationApplicableTargetsTest.kt

                buildString {
                    appendLine("${KtAnnotationEntry::class.simpleName}: ${annotationEntry.text}")
                    appendLine()
                    appendLine("Resolved annotation symbol:")
                    appendLine(annotationClassSymbol.render(KtDeclarationRendererForDebug.WITH_QUALIFIED_NAMES))
                    appendLine()
                    appendLine("Applicable targets: $applicableTargetsInOrder")
                }
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jun 04 08:26:19 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  8. platforms/core-configuration/declarative-dsl-core/src/test/kotlin/org/gradle/internal/declarativedsl/dom/DomTestUtil.kt

                            appendLine()
                            visitValue(value, indent + 1)
                        }
                        if (documentNode.content.isNotEmpty()) {
                            appendLine()
                            documentNode.content.forEach { visitDocumentNode(it, indent + 1) }
                        } else {
                            appendLine()
                        }
                    }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 31 13:47:10 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  9. platforms/core-configuration/declarative-dsl-core/src/test/kotlin/org/gradle/internal/declarativedsl/prettyPrintResults.kt

                        recurseDeeper(it)
                        appendLine()
                    }
                    appendIndented(")")
                }
                is ParsingError -> {
                    appendIndented("ParsingError(")
                    appendLine()
                    appendNextIndented("message = ${current.message},")
                    appendLine()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 14 22:06:18 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  10. analysis/analysis-api-impl-base/tests/org/jetbrains/kotlin/analysis/api/impl/base/test/cases/types/AbstractAnalysisApiSubstitutorsTest.kt

                prettyPrint {
                    appendLine("PSI type: ${declaration.typeReference?.text}")
                    appendLine("${KaType::class.simpleName}: ${type.render(position = Variance.INVARIANT)}")
                    appendLine("substitutor.substitute: ${substituted.render(position = Variance.INVARIANT)}")
                    appendLine("substitutor.substituteOrNull: ${substitutedOrNull?.render(position = Variance.INVARIANT)}")
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 29 17:43:55 UTC 2024
    - 2.2K bytes
    - Viewed (0)
Back to top