Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 283 for Universe (0.2 sec)

  1. src/go/types/package.go

    // holding the objects declared at package level (TypeNames,
    // Consts, Vars, and Funcs).
    // For a nil pkg receiver, Scope returns the Universe scope.
    func (pkg *Package) Scope() *Scope {
    	if pkg != nil {
    		return pkg.scope
    	}
    	return Universe
    }
    
    // A package is complete if its scope contains (at least) all
    // exported objects; otherwise it is incomplete.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 3K bytes
    - Viewed (0)
  2. src/go/types/object_test.go

    			t.Errorf("%v: got IsAlias = %v; want %v", obj, got, want)
    		}
    	}
    
    	// predeclared types
    	check(Unsafe.Scope().Lookup("Pointer").(*TypeName), false)
    	for _, name := range Universe.Names() {
    		if obj, _ := Universe.Lookup(name).(*TypeName); obj != nil {
    			check(obj, name == "any" || name == "byte" || name == "rune")
    		}
    	}
    
    	// various other types
    	pkg := NewPackage("p", "p")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 14:10:44 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  3. src/os/read_test.go

    	}
    	defer f.Close()
    	defer Remove(f.Name())
    
    	msg := "Programming today is a race between software engineers striving to " +
    		"build bigger and better idiot-proof programs, and the Universe trying " +
    		"to produce bigger and better idiots. So far, the Universe is winning."
    
    	if err := WriteFile(f.Name(), []byte(msg), 0644); err != nil {
    		t.Fatalf("WriteFile %s: %v", f.Name(), err)
    	}
    
    	data, err := ReadFile(f.Name())
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 02:36:46 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/scope.go

    func NewScope(parent *Scope, pos, end syntax.Pos, comment string) *Scope {
    	s := &Scope{parent, nil, 0, nil, pos, end, comment, false}
    	// don't add children to Universe scope!
    	if parent != nil && parent != Universe {
    		parent.children = append(parent.children, s)
    		s.number = len(parent.children)
    	}
    	return s
    }
    
    // Parent returns the scope's containing (parent) scope.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  5. src/go/types/scope.go

    func NewScope(parent *Scope, pos, end token.Pos, comment string) *Scope {
    	s := &Scope{parent, nil, 0, nil, pos, end, comment, false}
    	// don't add children to Universe scope!
    	if parent != nil && parent != Universe {
    		parent.children = append(parent.children, s)
    		s.number = len(parent.children)
    	}
    	return s
    }
    
    // Parent returns the scope's containing (parent) scope.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  6. src/go/types/eval.go

    // pos of package pkg. [Type] information about the expression is recorded in
    // info. The expression may be an identifier denoting an uninstantiated generic
    // function or type.
    //
    // If pkg == nil, the [Universe] scope is used and the provided
    // position pos is ignored. If pkg != nil, and pos is invalid,
    // the package scope is used. Otherwise, pos must belong to the
    // package.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  7. src/io/ioutil/ioutil_test.go

    		t.Fatal(err)
    	}
    	filename := f.Name()
    	data := "Programming today is a race between software engineers striving to " +
    		"build bigger and better idiot-proof programs, and the Universe trying " +
    		"to produce bigger and better idiots. So far, the Universe is winning."
    
    	if err := WriteFile(filename, []byte(data), 0644); err != nil {
    		t.Fatalf("WriteFile %s: %v", filename, err)
    	}
    
    	contents, err := ReadFile(filename)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 11 20:56:32 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  8. analysis/analysis-api/testData/components/compileTimeConstantProvider/evaluate/string_templateNonConst.kt

    val QUESTION = "the ultimate question of life, the universe, and everything"
    val ANSWER = 42
    val QUESTION_MEANING = null
    
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed Feb 15 15:45:22 UTC 2023
    - 228 bytes
    - Viewed (0)
  9. test/fixedbugs/bug085.go

    func foo() {
    	print(P.x);  // ERROR "undefined"
    }
    
    /*
    uetli:~/Source/go1/test/bugs gri$ 6g bug085.go
    bug085.go:6: P: undefined
    Bus error
    */
    
    /* expected scope hierarchy (outermost to innermost)
    
    universe scope (contains predeclared identifiers int, float32, int32, len, etc.)
    "solar" scope (just holds the package name P so it can be found but doesn't conflict)
    global scope (the package global scope)
    local scopes (function scopes)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 13 23:11:31 UTC 2012
    - 633 bytes
    - Viewed (0)
  10. ci/official/containers/linux_arm64/builder.patchelf/build_patchelf.sh

    # so get patchelf source from 22.04 ie 'jammy' and build it to avoid dependency
    # problems that would occur with a binary package
    
    mkdir -p /patchelf
    cd /patchelf
    echo deb-src http://ports.ubuntu.com/ubuntu-ports/ jammy universe>>/etc/apt/sources.list
    apt-get update
    apt-get -y build-dep patchelf/jammy
    apt-get -b source patchelf/jammy
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Sep 18 15:53:15 UTC 2023
    - 1.2K bytes
    - Viewed (0)
Back to top