Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,606 for types2 (0.26 sec)

  1. 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)
  2. 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)
  3. 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)
  4. src/go/types/operand.go

    		return newType != nil, IncompatibleAssign
    	}
    	// Vu is typed
    
    	// x's type V and T have identical underlying types
    	// and at least one of V or T is not a named type
    	// and neither V nor T is a type parameter.
    	if Identical(Vu, Tu) && (!hasName(V) || !hasName(T)) && Vp == nil && Tp == nil {
    		return true, 0
    	}
    
    	// T is an interface type, but not a type parameter, and V implements T.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 21:17:10 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/types2/operand.go

    		return newType != nil, IncompatibleAssign
    	}
    	// Vu is typed
    
    	// x's type V and T have identical underlying types
    	// and at least one of V or T is not a named type
    	// and neither V nor T is a type parameter.
    	if Identical(Vu, Tu) && (!hasName(V) || !hasName(T)) && Vp == nil && Tp == nil {
    		return true, 0
    	}
    
    	// T is an interface type, but not a type parameter, and V implements T.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 21:17:10 UTC 2024
    - 11K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types/size.go

    			continue
    		}
    
    		CheckSize(m.Type)
    		addMethod(m, true)
    	}
    
    	for _, m := range t.Methods() {
    		if m.Sym != nil || m.Type == nil {
    			continue
    		}
    
    		// In 1.18, embedded types can be anything. In Go 1.17, we disallow
    		// embedding anything other than interfaces. This requirement was caught
    		// by types2 already, so allow non-interface here.
    		if !m.Type.IsInterface() {
    			continue
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 15K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/types2/typexpr.go

    	}
    
    	x.typ = typ
    }
    
    // typ type-checks the type expression e and returns its type, or Typ[Invalid].
    // The type must not be an (uninstantiated) generic type.
    func (check *Checker) typ(e syntax.Expr) Type {
    	return check.definedType(e, nil)
    }
    
    // varType type-checks the type expression e and returns its type, or Typ[Invalid].
    // The type must not be an (uninstantiated) generic type and it must not be a
    // constraint interface.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/types2/check.go

    	recvTParamMap map[*syntax.Name]*TypeParam // maps blank receiver type parameters to their type
    	brokenAliases map[*TypeName]bool          // set of aliases with broken (not yet determined) types
    	unionTypeSets map[*Union]*_TypeSet        // computed type sets for union types
    	mono          monoGraph                   // graph for detecting non-monomorphizable instantiation loops
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 23.3K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/types2/api.go

    func (info *Info) recordTypes() bool {
    	return info.Types != nil || info.StoreTypesInSyntax
    }
    
    // TypeOf returns the type of expression e, or nil if not found.
    // Precondition 1: the Types map is populated or StoreTypesInSyntax is set.
    // Precondition 2: Uses and Defs maps are populated.
    func (info *Info) TypeOf(e syntax.Expr) Type {
    	if info.Types != nil {
    		if t, ok := info.Types[e]; ok {
    			return t.Type
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 13:48:53 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/issues_test.go

    	_ = uint16(16) << s
    	_ = uint32(32 << s)
    	_ = uint64(64 << s + s)
    	_ = (interface{})("foo")
    	_ = (interface{})(nil)
    )`
    	types := make(map[syntax.Expr]TypeAndValue)
    	mustTypecheck(src, nil, &Info{Types: types})
    
    	for x, tv := range types {
    		var want Type
    		switch x := x.(type) {
    		case *syntax.BasicLit:
    			switch x.Value {
    			case `8`:
    				want = Typ[Uint8]
    			case `16`:
    				want = Typ[Uint16]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 28.1K bytes
    - Viewed (0)
Back to top