Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 64 for Ordinary (0.23 sec)

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

    func (t *Named) NumMethods() int {
    	return len(t.Origin().resolve().methods)
    }
    
    // Method returns the i'th method of named type t for 0 <= i < t.NumMethods().
    //
    // For an ordinary or instantiated type t, the receiver base type of this
    // method is the named type t. For an uninstantiated generic type t, each
    // method receiver is instantiated with its receiver type parameters.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 20:03:31 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/resolver.go

    		}
    		imp = NewPackage("C", "C")
    		imp.fake = true // package scope is not populated
    		imp.cgo = check.conf.go115UsesCgo
    	} else {
    		// ordinary import
    		var err error
    		if importer := check.conf.Importer; importer == nil {
    			err = fmt.Errorf("Config.Importer not installed")
    		} else if importerFrom, ok := importer.(ImporterFrom); ok {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 14:10:44 UTC 2024
    - 26.3K bytes
    - Viewed (0)
  3. src/go/types/named.go

    func (t *Named) NumMethods() int {
    	return len(t.Origin().resolve().methods)
    }
    
    // Method returns the i'th method of named type t for 0 <= i < t.NumMethods().
    //
    // For an ordinary or instantiated type t, the receiver base type of this
    // method is the named type t. For an uninstantiated generic type t, each
    // method receiver is instantiated with its receiver type parameters.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 20:03:31 UTC 2024
    - 24K bytes
    - Viewed (0)
  4. src/go/types/resolver.go

    		}
    		imp = NewPackage("C", "C")
    		imp.fake = true // package scope is not populated
    		imp.cgo = check.conf.go115UsesCgo
    	} else {
    		// ordinary import
    		var err error
    		if importer := check.conf.Importer; importer == nil {
    			err = fmt.Errorf("Config.Importer not installed")
    		} else if importerFrom, ok := importer.(ImporterFrom); ok {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 16:22:59 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  5. src/go/doc/reader.go

    		}
    		// If there is exactly one result type,
    		// associate the function with that type.
    		if numResultTypes == 1 {
    			typ.funcs.set(fun, r.mode&PreserveAST != 0)
    			return
    		}
    	}
    
    	// just an ordinary function
    	r.funcs.set(fun, r.mode&PreserveAST != 0)
    }
    
    // lookupTypeParam searches for type parameters named name within the tparams
    // field list, returning the relevant identifier if found, or nil if not.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 27.5K bytes
    - Viewed (0)
  6. src/go/types/builtins.go

    	//       all arguments.
    	if id == _Len || id == _Cap {
    		defer func(b bool) {
    			check.hasCallOrRecv = b
    		}(check.hasCallOrRecv)
    		check.hasCallOrRecv = false
    	}
    
    	// Evaluate arguments for built-ins that use ordinary (value) arguments.
    	// For built-ins with special argument handling (make, new, etc.),
    	// evaluation is done by the respective built-in code.
    	var args []*operand // not valid for _Make, _New, _Offsetof, _Trace
    	var nargs int
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 27.2K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/types2/builtins.go

    	//       all arguments.
    	if id == _Len || id == _Cap {
    		defer func(b bool) {
    			check.hasCallOrRecv = b
    		}(check.hasCallOrRecv)
    		check.hasCallOrRecv = false
    	}
    
    	// Evaluate arguments for built-ins that use ordinary (value) arguments.
    	// For built-ins with special argument handling (make, new, etc.),
    	// evaluation is done by the respective built-in code.
    	var args []*operand // not valid for _Make, _New, _Offsetof, _Trace
    	var nargs int
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 27.1K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/syntax/parser.go

    			// this the start of a type parameter list, with some caveats:
    			// a single name followed by "]" tilts the decision towards an
    			// array declaration; a type parameter type that could also be
    			// an ordinary expression but which is followed by a comma tilts
    			// the decision towards a type parameter list.
    			if pname, ptype := extractName(x, p.tok == _Comma); pname != nil && (ptype != nil || p.tok != _Rbrack) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 62.9K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/types2/stmt.go

    			}
    		} else {
    			check.error(noNewVarPos, NoNewVar, "no new variables on left side of :=")
    		}
    	} else if sKey != nil /* lhs[0] != nil */ {
    		// ordinary assignment
    		for i, lhs := range lhs {
    			if lhs == nil {
    				continue
    			}
    
    			// assign to lhs iteration variable, if any
    			typ := rhs[i]
    			if typ == nil {
    				continue
    			}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 30.7K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/call.go

    		}
    		x.expr = call
    		// a non-constant result implies a function call
    		if x.mode != invalid && x.mode != constant_ {
    			check.hasCallOrRecv = true
    		}
    		return predeclaredFuncs[id].kind
    	}
    
    	// ordinary function/method call
    	// signature may be generic
    	cgocall := x.mode == cgofunc
    
    	// a type parameter may be "called" if all types have the same signature
    	sig, _ := coreType(x.typ).(*Signature)
    	if sig == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 31.5K bytes
    - Viewed (0)
Back to top