Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 148 for buildMap (0.15 sec)

  1. platforms/core-configuration/declarative-dsl-core/src/main/kotlin/org/gradle/internal/declarativedsl/analysis/FunctionCallResolver.kt

            context: AnalysisContext,
            functionCall: FunctionCall
        ): ObjectOrigin.FunctionOrigin? = with(context) {
            val argResolutions = lazy {
                var hasErrors = false
                val result = buildMap<FunctionArgument.ValueArgument, ObjectOrigin> {
                    functionCall.args.filterIsInstance<FunctionArgument.ValueArgument>().forEach {
                        val resolution = expressionResolver.doResolveExpression(context, it.expr)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 21 14:27:23 UTC 2024
    - 19.9K bytes
    - Viewed (0)
  2. analysis/analysis-api-standalone/analysis-api-standalone-base/src/org/jetbrains/kotlin/analysis/api/standalone/base/declarations/KotlinStandaloneDeclarationProvider.kt

        }
    
        private fun collectStubsFromBinaryRoot(
            binaryRoot: VirtualFile,
            binaryClassCache: ClsKotlinBinaryClassCache,
        ): Map<VirtualFile, KotlinFileStubImpl> =
            buildMap {
                VfsUtilCore.visitChildrenRecursively(binaryRoot, object : VirtualFileVisitor<Void>() {
                    override fun visitFile(file: VirtualFile): Boolean {
                        if (!file.isDirectory) {
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Thu Jun 06 17:44:50 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  3. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KaFirResolver.kt

            // In all cases, the size of arguments and parameters is the same,
            // so this check exists just to be sure
            if (typeArguments.size != typeParameters.size) return emptyMap()
    
            return buildMap(typeArguments.size) {
                for ((index, projection) in typeArguments.withIndex()) {
                    if (projection !is ConeKotlinType) return emptyMap()
                    put(typeParameters[index], projection.asKtType())
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jun 11 15:45:42 UTC 2024
    - 73K bytes
    - Viewed (0)
  4. src/cmd/fix/buildtag.go

    	"strings"
    )
    
    func init() {
    	register(buildtagFix)
    }
    
    const buildtagGoVersionCutoff = "go1.18"
    
    var buildtagFix = fix{
    	name: "buildtag",
    	date: "2021-08-25",
    	f:    buildtag,
    	desc: `Remove +build comments from modules using Go 1.18 or later`,
    }
    
    func buildtag(f *ast.File) bool {
    	if version.Compare(*goVersion, buildtagGoVersionCutoff) < 0 {
    		return false
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 22 05:31:47 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  5. src/cmd/vet/testdata/buildtag/buildtag.go

    // Copyright 2013 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // This file contains tests for the buildtag checker.
    
    // ERRORNEXT "possible malformed [+]build comment"
    // +builder
    // +build !ignore
    
    package testdata
    
    // ERRORNEXT "misplaced \+build comment"
    // +build toolate
    
    var _ = 3
    
    var _ = `
    // +build notacomment
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 20 03:54:48 UTC 2021
    - 420 bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/buildtag/buildtag.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build go1.16
    // +build go1.16
    
    // Package buildtag defines an Analyzer that checks build tags.
    package buildtag
    
    import (
    	"go/ast"
    	"go/build/constraint"
    	"go/parser"
    	"go/token"
    	"strings"
    	"unicode"
    
    	"golang.org/x/tools/go/analysis"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  7. src/cmd/dist/buildtag.go

    Russ Cox <******@****.***> 1635375182 -0400
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 03:35:04 UTC 2021
    - 3K bytes
    - Viewed (0)
  8. src/cmd/fix/buildtag_test.go

    // license that can be found in the LICENSE file.
    
    package main
    
    func init() {
    	addTestCases(buildtagTests, buildtag)
    }
    
    var buildtagTests = []testCase{
    	{
    		Name:    "buildtag.oldGo",
    		Version: "go1.10",
    		In: `//go:build yes
    // +build yes
    
    package main
    `,
    	},
    	{
    		Name:    "buildtag.new",
    		Version: "go1.99",
    		In: `//go:build yes
    // +build yes
    
    package main
    `,
    		Out: `//go:build yes
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 22 05:31:47 UTC 2024
    - 522 bytes
    - Viewed (0)
  9. src/cmd/internal/test2json/testdata/vet.json

    {"Action":"output","Test":"TestTags/testtag","Output":"=== CONT  TestTags/testtag\n"}
    {"Action":"run","Test":"TestVetDirs/buildtag"}
    {"Action":"output","Test":"TestVetDirs/buildtag","Output":"=== RUN   TestVetDirs/buildtag\n"}
    {"Action":"output","Test":"TestVetDirs/buildtag","Output":"=== PAUSE TestVetDirs/buildtag\n"}
    {"Action":"pause","Test":"TestVetDirs/buildtag"}
    {"Action":"cont","Test":"TestVet/0"}
    {"Action":"output","Test":"TestVet/0","Output":"=== CONT  TestVet/0\n"}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 09 17:33:07 UTC 2022
    - 11.8K bytes
    - Viewed (0)
  10. src/go/printer/testdata/gobuild7.input

    // license that can be found in the LICENSE file.
    
    // TODO(rsc): Delete this file once Go 1.17 comes out and we can retire Go 1.15 support.
    
    //go:build !go1.16
    // +build !go1.16
    
    // Package buildtag defines an Analyzer that checks build tags.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 20 03:54:46 UTC 2021
    - 369 bytes
    - Viewed (0)
Back to top