Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 5,019 for types2 (0.12 sec)

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

    package types2_test
    
    import (
    	"path/filepath"
    	"runtime"
    	"testing"
    
    	. "cmd/compile/internal/types2"
    )
    
    // BenchmarkLookupFieldOrMethod measures types.LookupFieldOrMethod performance.
    // LookupFieldOrMethod is a performance hotspot for both type-checking and
    // external API calls.
    func BenchmarkLookupFieldOrMethod(b *testing.B) {
    	// Choose an arbitrary, large package.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 13 15:31:35 UTC 2022
    - 1.2K bytes
    - Viewed (0)
  2. src/go/types/errors_test.go

    // Code generated by "go test -run=Generate -write=all"; DO NOT EDIT.
    // Source: ../../cmd/compile/internal/types2/errors_test.go
    
    // Copyright 2020 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
    
    import "testing"
    
    func TestError(t *testing.T) {
    	var err error_
    	want := "no error"
    	if got := err.msg(); got != want {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  3. src/go/types/objset.go

    // Source: ../../cmd/compile/internal/types2/objset.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 implements objsets.
    //
    // An objset is similar to a Scope but objset elements
    // are identified by their unique id, instead of their
    // object name.
    
    package types
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 1K bytes
    - Viewed (0)
  4. src/go/types/basic.go

    // Source: ../../cmd/compile/internal/types2/basic.go
    
    // Copyright 2011 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
    
    // BasicKind describes the kind of basic type.
    type BasicKind int
    
    const (
    	Invalid BasicKind = iota // type is invalid
    
    	// predeclared types
    	Bool
    	Int
    	Int8
    	Int16
    	Int32
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/types2/basic.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package types2
    
    // BasicKind describes the kind of basic type.
    type BasicKind int
    
    const (
    	Invalid BasicKind = iota // type is invalid
    
    	// predeclared types
    	Bool
    	Int
    	Int8
    	Int16
    	Int32
    	Int64
    	Uint
    	Uint8
    	Uint16
    	Uint32
    	Uint64
    	Uintptr
    	Float32
    	Float64
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 01 22:17:50 UTC 2021
    - 1.5K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/compiler_internal.go

    // Copyright 2024 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 types2
    
    import (
    	"cmd/compile/internal/syntax"
    	"fmt"
    )
    
    // This file should not be copied to go/types.  See go.dev/issue/67477
    
    // RenameResult takes an array of (result) fields and an index, and if the indexed field
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 21:08:03 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  7. 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)
  8. src/go/types/util.go

    // license that can be found in the LICENSE file.
    
    // 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 types
    
    import (
    	"go/ast"
    	"go/constant"
    	"go/token"
    )
    
    const isTypes2 = false
    
    // cmpPos compares the positions p and q and returns a result r as follows:
    //
    // r <  0: p is before q
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  9. src/go/types/typelists.go

    // TypeList holds a list of types.
    type TypeList struct{ types []Type }
    
    // newTypeList returns a new TypeList with the types in list.
    func newTypeList(list []Type) *TypeList {
    	if len(list) == 0 {
    		return nil
    	}
    	return &TypeList{list}
    }
    
    // Len returns the number of types in the list.
    // It is safe to call on a nil receiver.
    func (l *TypeList) Len() int { return len(l.list()) }
    
    // At returns the i'th type in the list.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 2K bytes
    - Viewed (0)
  10. test/import6.go

    import "\x80\x80" // ERROR "import path"
    import `\x80\x80` // ERROR "import path"
    import "\xFFFD"   // ERROR "import path"
    import `\xFFFD`   // ERROR "import path"
    
    // Invalid local imports.
    // types2 adds extra "not used" error.
    import "/foo"  // ERROR "import path cannot be absolute path|not used"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 11 02:26:58 UTC 2022
    - 1.4K bytes
    - Viewed (0)
Back to top