Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 487 for Implicits (0.12 sec)

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

    	for _, test := range tests {
    		info := Info{
    			Implicits: make(map[syntax.Node]Object),
    		}
    		name := mustTypecheck(test.src, nil, &info).Name()
    
    		// the test cases expect at most one Implicits entry
    		if len(info.Implicits) > 1 {
    			t.Errorf("package %s: %d Implicits entries found", name, len(info.Implicits))
    			continue
    		}
    
    		// extract Implicits entry, if any
    		var got string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 93.3K bytes
    - Viewed (0)
  2. src/go/types/api_test.go

    	}
    
    	for _, test := range tests {
    		info := Info{
    			Implicits: make(map[ast.Node]Object),
    		}
    		name := mustTypecheck(test.src, nil, &info).Name()
    
    		// the test cases expect at most one Implicits entry
    		if len(info.Implicits) > 1 {
    			t.Errorf("package %s: %d Implicits entries found", name, len(info.Implicits))
    			continue
    		}
    
    		// extract Implicits entry, if any
    		var got string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 94.2K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/cgocall/cgocall.go

    // TODO(adonovan): make this a library function or method of Info.
    func imported(info *types.Info, spec *ast.ImportSpec) *types.Package {
    	obj, ok := info.Implicits[spec]
    	if !ok {
    		obj = info.Defs[spec.Name] // renaming import
    	}
    	return obj.(*types.PkgName).Imported()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 11.2K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/tools/go/analysis/unitchecker/unitchecker.go

    		GoVersion: cfg.GoVersion,
    	}
    	info := &types.Info{
    		Types:      make(map[ast.Expr]types.TypeAndValue),
    		Defs:       make(map[*ast.Ident]types.Object),
    		Uses:       make(map[*ast.Ident]types.Object),
    		Implicits:  make(map[ast.Node]types.Object),
    		Instances:  make(map[*ast.Ident]types.Instance),
    		Scopes:     make(map[ast.Node]*types.Scope),
    		Selections: make(map[*ast.SelectorExpr]*types.Selection),
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 13K bytes
    - Viewed (0)
  5. src/go/types/check_test.go

    	info := Info{
    		Types:        make(map[ast.Expr]TypeAndValue),
    		Instances:    make(map[*ast.Ident]Instance),
    		Defs:         make(map[*ast.Ident]Object),
    		Uses:         make(map[*ast.Ident]Object),
    		Implicits:    make(map[ast.Node]Object),
    		Selections:   make(map[*ast.SelectorExpr]*Selection),
    		Scopes:       make(map[ast.Node]*Scope),
    		FileVersions: make(map[*ast.File]string),
    	}
    
    	// typecheck
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 19:45:33 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/check_test.go

    	info := Info{
    		Types:        make(map[syntax.Expr]TypeAndValue),
    		Instances:    make(map[*syntax.Name]Instance),
    		Defs:         make(map[*syntax.Name]Object),
    		Uses:         make(map[*syntax.Name]Object),
    		Implicits:    make(map[syntax.Node]Object),
    		Selections:   make(map[*syntax.SelectorExpr]*Selection),
    		Scopes:       make(map[syntax.Node]*Scope),
    		FileVersions: make(map[*syntax.PosBase]string),
    	}
    
    	// typecheck
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 19:45:33 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/types2/check.go

    	assert(obj != nil)
    	if m := check.Uses; m != nil {
    		m[id] = obj
    	}
    }
    
    func (check *Checker) recordImplicit(node syntax.Node, obj Object) {
    	assert(node != nil)
    	assert(obj != nil)
    	if m := check.Implicits; m != nil {
    		m[node] = obj
    	}
    }
    
    func (check *Checker) recordSelection(x *syntax.SelectorExpr, kind SelectionKind, recv Type, obj Object, index []int, indirect bool) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 23.3K bytes
    - Viewed (0)
  8. src/go/types/check.go

    	assert(obj != nil)
    	if m := check.Uses; m != nil {
    		m[id] = obj
    	}
    }
    
    func (check *Checker) recordImplicit(node ast.Node, obj Object) {
    	assert(node != nil)
    	assert(obj != nil)
    	if m := check.Implicits; m != nil {
    		m[node] = obj
    	}
    }
    
    func (check *Checker) recordSelection(x *ast.SelectorExpr, kind SelectionKind, recv Type, obj Object, index []int, indirect bool) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  9. api/go1.5.txt

    pkg go/types, type Importer interface, Import(string) (*Package, error)
    pkg go/types, type Info struct
    pkg go/types, type Info struct, Defs map[*ast.Ident]Object
    pkg go/types, type Info struct, Implicits map[ast.Node]Object
    pkg go/types, type Info struct, InitOrder []*Initializer
    pkg go/types, type Info struct, Scopes map[ast.Node]*Scope
    pkg go/types, type Info struct, Selections map[*ast.SelectorExpr]*Selection
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 30 21:14:09 UTC 2015
    - 46.6K bytes
    - Viewed (0)
  10. src/cmd/cgo/internal/testshared/testdata/implicit/implicit.go

    package implicit
    
    func I() int {
    	return 42
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 46 bytes
    - Viewed (0)
Back to top