Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 167 for objmap (0.17 sec)

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

    // If there is no such path, the result is nil.
    func findPath(objMap map[Object]*declInfo, from, to Object, seen map[Object]bool) []Object {
    	if seen[from] {
    		return nil
    	}
    	seen[from] = true
    
    	for d := range objMap[from].deps {
    		if d == to {
    			return []Object{d}
    		}
    		if P := findPath(objMap, d, to, seen); P != nil {
    			return append(P, d)
    		}
    	}
    
    	return nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 28 22:06:51 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  2. src/go/types/initorder.go

    // If there is no such path, the result is nil.
    func findPath(objMap map[Object]*declInfo, from, to Object, seen map[Object]bool) []Object {
    	if seen[from] {
    		return nil
    	}
    	seen[from] = true
    
    	for d := range objMap[from].deps {
    		if d == to {
    			return []Object{d}
    		}
    		if P := findPath(objMap, d, to, seen); P != nil {
    			return append(P, d)
    		}
    	}
    
    	return nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  3. pkg/config/analysis/analyzers/gateway/conflictinggateway.go

    			mapKey := genGatewayMapKey(sGWSelector, sPortNumber)
    			if _, exits := gwConflictingMap[mapKey]; !exits {
    				objMap := make(map[string][]string)
    				objMap[gwName] = server.GetHosts()
    				gwConflictingMap[mapKey] = objMap
    			} else {
    				gwConflictingMap[mapKey][gwName] = server.GetHosts()
    			}
    		}
    		return true
    	})
    	return gwConflictingMap
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun May 05 03:44:57 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  4. src/go/parser/resolver_test.go

    func declsFromParser(file *ast.File) map[token.Pos]token.Pos {
    	objmap := map[token.Pos]token.Pos{}
    	ast.Inspect(file, func(node ast.Node) bool {
    		// Ignore blank identifiers to reduce noise.
    		if ident, _ := node.(*ast.Ident); ident != nil && ident.Obj != nil && ident.Name != "_" {
    			objmap[ident.Pos()] = ident.Obj.Pos()
    		}
    		return true
    	})
    	return objmap
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 19 17:46:07 UTC 2022
    - 4.9K bytes
    - Viewed (0)
  5. operator/cmd/mesh/test-util_test.go

    }
    
    // append appends an object to o.
    func (o *ObjectSet) append(obj *object.K8sObject) {
    	h := obj.Hash()
    	o.objSlice = append(o.objSlice, obj)
    	if o.objMap == nil {
    		o.objMap = make(map[string]*object.K8sObject)
    	}
    	o.objMap[h] = obj
    	o.keySlice = append(o.keySlice, h)
    }
    
    // size reports the length of o.
    func (o *ObjectSet) size() int {
    	return len(o.keySlice)
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 31 14:48:28 UTC 2023
    - 15.3K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/resolver.go

    		check.error(ident, InvalidMainDecl, "cannot declare main - must be func")
    		return
    	}
    
    	check.declare(check.pkg.scope, ident, obj, nopos)
    	check.objMap[obj] = d
    	obj.setOrder(uint32(len(check.objMap)))
    }
    
    // filename returns a filename suitable for debugging output.
    func (check *Checker) filename(fileNo int) string {
    	file := check.files[fileNo]
    	if pos := file.Pos(); pos.IsKnown() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 14:10:44 UTC 2024
    - 26.3K bytes
    - Viewed (0)
  7. src/go/types/resolver.go

    		check.error(ident, InvalidMainDecl, "cannot declare main - must be func")
    		return
    	}
    
    	check.declare(check.pkg.scope, ident, obj, nopos)
    	check.objMap[obj] = d
    	obj.setOrder(uint32(len(check.objMap)))
    }
    
    // filename returns a filename suitable for debugging output.
    func (check *Checker) filename(fileNo int) string {
    	file := check.files[fileNo]
    	if pos := file.Pos(); pos.IsValid() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 16:22:59 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/types2/decl.go

    	if debug {
    		info := check.objMap[obj]
    		inObjMap := info != nil && (info.fdecl == nil || info.fdecl.Recv == nil) // exclude methods
    		isPkgObj := obj.Parent() == check.pkg.scope
    		if isPkgObj != inObjMap {
    			check.dump("%v: inconsistent object map for %s (isPkgObj = %v, inObjMap = %v)", obj.Pos(), obj, isPkgObj, inObjMap)
    			panic("unreachable")
    		}
    	}
    
    	// Count cycle objects.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 29.6K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/types2/check.go

    	pkg  *Package
    	*Info
    	version goVersion              // accepted language version
    	nextID  uint64                 // unique Id for type parameters (first valid Id is 1)
    	objMap  map[Object]*declInfo   // maps package-level objects and (non-interface) methods to declaration info
    	impMap  map[importKey]*Package // maps (import path, source directory) to (complete or fake) package
    	// see TODO in validtype.go
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 23.3K bytes
    - Viewed (0)
  10. src/go/types/decl.go

    	if debug {
    		info := check.objMap[obj]
    		inObjMap := info != nil && (info.fdecl == nil || info.fdecl.Recv == nil) // exclude methods
    		isPkgObj := obj.Parent() == check.pkg.scope
    		if isPkgObj != inObjMap {
    			check.dump("%v: inconsistent object map for %s (isPkgObj = %v, inObjMap = %v)", obj.Pos(), obj, isPkgObj, inObjMap)
    			panic("unreachable")
    		}
    	}
    
    	// Count cycle objects.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 31K bytes
    - Viewed (0)
Back to top