Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 283 for Universe (0.17 sec)

  1. src/go/printer/testdata/declarations.golden

    			0xd4, 0x0, 0xae, 0x6a, 0x4d, 0x1b, 0x8a, 0x3b, 0x6a, 0x13,
    			0x64, 0x2b, 0x23, 0xf2, 0x8b, 0x0, 0x3b, 0xfb, 0x97, 0x79,
    		},
    	}
    }
    
    func _() {
    	var Universe = Scope{
    		Names: map[string]*Ident{
    			// basic types
    			"bool":		nil,
    			"byte":		nil,
    			"int8":		nil,
    			"int16":	nil,
    			"int32":	nil,
    			"int64":	nil,
    			"uint8":	nil,
    			"uint16":	nil,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 13 22:24:31 UTC 2021
    - 16.2K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/typexpr.go

    			return // avoid follow-on errors
    		}
    	}
    	// Because the representation of any depends on gotypesalias, we don't check
    	// pointer identity here.
    	if obj.Name() == "any" && obj.Parent() == Universe {
    		if !check.verifyVersionf(e, go1_18, "predeclared %s", e.Value) {
    			return // avoid follow-on errors
    		}
    	}
    
    	check.recordUse(e, obj)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  3. src/go/types/generate_test.go

    	"typeparam.go":     nil,
    	"typeterm_test.go": nil,
    	"typeterm.go":      nil,
    	"typestring.go":    nil,
    	"under.go":         nil,
    	"unify.go":         fixSprintf,
    	"universe.go":      fixGlobalTypVarDecl,
    	"util_test.go":     fixTokenPos,
    	"validtype.go":     func(f *ast.File) { fixTokenPos(f); renameSelectors(f, "Trace->_Trace") },
    }
    
    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/parser/resolver.go

    				ident.Obj = obj
    			}
    			return
    		}
    	}
    	// all local scopes are known, so any unresolved identifier
    	// must be found either in the file scope, package scope
    	// (perhaps in another file), or universe scope --- collect
    	// them so that they can be resolved later
    	if collectUnresolved {
    		ident.Obj = unresolved
    		r.unresolved = append(r.unresolved, ident)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 02 12:56:53 UTC 2023
    - 15.8K bytes
    - Viewed (0)
  5. src/cmd/go/internal/modload/edit.go

    	// terminates, and the easiest way to prove it is to add this map.
    	//
    	// Then the proof of termination is this:
    	// On every iteration where we mark the roots as dirty, we add some new module
    	// version to the map. The universe of module versions is finite, so we must
    	// eventually reach a state in which we do not add any version to the map.
    	// In that state, we either report a conflict or succeed in the edit.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 15 21:46:32 UTC 2024
    - 34.1K bytes
    - Viewed (0)
  6. src/go/types/predicates.go

    			return u != nil && hasNil(u)
    		})
    	}
    	return false
    }
    
    // samePkg reports whether packages a and b are the same.
    func samePkg(a, b *Package) bool {
    	// package is nil for objects in universe scope
    	if a == nil || b == nil {
    		return a == b
    	}
    	// a != nil && b != nil
    	return a.path == b.path
    }
    
    // An ifacePair is a node in a stack of interface type pairs compared for identity.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  7. src/go/types/typexpr.go

    			return // avoid follow-on errors
    		}
    	}
    	// Because the representation of any depends on gotypesalias, we don't check
    	// pointer identity here.
    	if obj.Name() == "any" && obj.Parent() == Universe {
    		if !check.verifyVersionf(e, go1_18, "predeclared %s", e.Name) {
    			return // avoid follow-on errors
    		}
    	}
    	check.recordUse(e, obj)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 16.3K bytes
    - Viewed (0)
  8. src/cmd/fix/typecheck.go

    }
    
    func getType(t string) string {
    	if !isType(t) {
    		return ""
    	}
    	return t[len("type "):]
    }
    
    func isType(t string) bool {
    	return strings.HasPrefix(t, "type ")
    }
    
    // TypeConfig describes the universe of relevant types.
    // For ease of creation, the types are all referred to by string
    // name (e.g., "reflect.Value").  TypeByName is the only place
    // where the strings are resolved.
    
    type TypeConfig struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 16 22:02:42 UTC 2022
    - 20.1K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/types2/predicates.go

    			return u != nil && hasNil(u)
    		})
    	}
    	return false
    }
    
    // samePkg reports whether packages a and b are the same.
    func samePkg(a, b *Package) bool {
    	// package is nil for objects in universe scope
    	if a == nil || b == nil {
    		return a == b
    	}
    	// a != nil && b != nil
    	return a.path == b.path
    }
    
    // An ifacePair is a node in a stack of interface type pairs compared for identity.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  10. src/go/internal/gcimporter/iimport.go

    		p.typCache[uint64(i)] = pt
    	}
    	// Special handling for "any", whose representation may be changed by the
    	// gotypesalias GODEBUG variable.
    	p.typCache[uint64(len(predeclared))] = types.Universe.Lookup("any").Type()
    
    	pkgList := make([]*types.Package, r.uint64())
    	for i := range pkgList {
    		pkgPathOff := r.uint64()
    		pkgPath := p.stringAt(pkgPathOff)
    		pkgName := p.stringAt(r.uint64())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 19.2K bytes
    - Viewed (0)
Back to top