Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 3,229 for types2 (0.11 sec)

  1. src/cmd/compile/internal/types2/sizes_test.go

    const _ = unsafe.Offsetof(struct{ x int64 }{}.x)
    `
    	info := types2.Info{Types: make(map[syntax.Expr]types2.TypeAndValue)}
    	conf := types2.Config{
    		Importer: defaultImporter(),
    		Sizes:    &types2.StdSizes{WordSize: 8, MaxAlign: 8},
    	}
    	mustTypecheck(src, &conf, &info)
    	for _, tv := range info.Types {
    		_ = conf.Sizes.Sizeof(tv.Type)
    		_ = conf.Sizes.Alignof(tv.Type)
    	}
    }
    
    // go.dev/issue/53884.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 16 21:00:48 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  2. platforms/ide/tooling-api/src/test/groovy/org/gradle/tooling/internal/adapter/TypeInspectorTest.groovy

            types == [Parent, Child] as Set
    
            def types2 = inspector.getReachableTypes(Child)
            types2 == types
        }
    
        def "inspects cyclic generic types"() {
            expect:
            def types = inspector.getReachableTypes(GenericChild)
            types == [GenericItem1, GenericItem2, GenericChild] as Set
    
            def types2 = inspector.getReachableTypes(GenericChild)
            types2.is(types)
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/rangefunc/rewrite.go

    	pkg.Scope().Insert(obj)
    
    	// func panicrangestate()
    	obj = types2.NewFunc(nopos, pkg, "panicrangestate", types2.NewSignatureType(nil, nil, nil, types2.NewTuple(types2.NewParam(nopos, pkg, "state", intType)), nil, false))
    	pkg.Scope().Insert(obj)
    
    	return pkg
    }()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:05:44 UTC 2024
    - 41.6K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/stdlib_test.go

    		"issue22200.go",  // types2 does not have constraints on stack size
    		"issue22200b.go", // types2 does not have constraints on stack size
    		"issue25507.go",  // types2 does not have constraints on stack size
    		"issue20780.go",  // types2 does not have constraints on stack size
    		"issue42058a.go", // types2 does not have constraints on channel element size
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:18:33 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/syntax/type.go

    package syntax
    
    import "go/constant"
    
    // A Type represents a type of Go.
    // All types implement the Type interface.
    // (This type originally lived in types2. We moved it here
    // so we could depend on it from other packages without
    // introducing an import cycle.)
    type Type interface {
    	// Underlying returns the underlying type of a type.
    	// Underlying types are never Named, TypeParam, or Alias types.
    	//
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 20:03:31 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  6. src/go/types/generate_test.go

    	srcDir = "/src/cmd/compile/internal/types2/"
    	dstDir = "/src/go/types/"
    )
    
    // TestGenerate verifies that generated files in go/types match their types2
    // counterpart. If -write is set, this test actually writes the expected
    // content to go/types; otherwise, it just compares with the existing content.
    func TestGenerate(t *testing.T) {
    	// If filesToWrite is set, write the generated content to disk.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/types2/util.go

    // This file contains various functionality that is
    // different between go/types and types2. Factoring
    // out this code allows more of the rest of the code
    // to be shared.
    
    package types2
    
    import (
    	"cmd/compile/internal/syntax"
    	"go/constant"
    	"go/token"
    )
    
    const isTypes2 = true
    
    // cmpPos compares the positions p and q and returns a result r as follows:
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  8. src/go/types/util_test.go

    // Source: ../../cmd/compile/internal/types2/util_test.go
    
    // Copyright 2023 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 exports various functionality of util.go
    // so that it can be used in (package-external) tests.
    
    package types
    
    import (
    	"go/token"
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 626 bytes
    - Viewed (0)
  9. src/go/types/main_test.go

    // Code generated by "go test -run=Generate -write=all"; DO NOT EDIT.
    // Source: ../../cmd/compile/internal/types2/main_test.go
    
    // Copyright 2022 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.
    
    package types_test
    
    import (
    	"go/build"
    	"internal/testenv"
    	"os"
    	"testing"
    )
    
    func TestMain(m *testing.M) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 464 bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/util_test.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // This file exports various functionality of util.go
    // so that it can be used in (package-external) tests.
    
    package types2
    
    import (
    	"cmd/compile/internal/syntax"
    )
    
    func CmpPos(p, q syntax.Pos) int { return cmpPos(p, q) }
    
    func ScopeComment(s *Scope) string         { return s.comment }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 30 01:15:55 UTC 2023
    - 520 bytes
    - Viewed (0)
Back to top