Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for paramList (0.17 sec)

  1. src/go/internal/gcimporter/iimport.go

    }
    
    func (r *importReader) signature(recv *types.Var, rparams, tparams []*types.TypeParam) *types.Signature {
    	params := r.paramList()
    	results := r.paramList()
    	variadic := params.Len() > 0 && r.bool()
    	return types.NewSignatureType(recv, rparams, tparams, params, results, variadic)
    }
    
    func (r *importReader) tparamList() []*types.TypeParam {
    	n := r.uint64()
    	if n == 0 {
    		return nil
    	}
    	xs := make([]*types.TypeParam, n)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/syntax/parser.go

    	typ.ParamList = p.paramList(nil, nil, _Rparen, false)
    	typ.ResultList = p.funcResult()
    
    	return tparamList, typ
    }
    
    // "[" has already been consumed, and pos is its position.
    // If len != nil it is the already consumed array length.
    func (p *parser) arrayType(pos Pos, len Expr) Expr {
    	if trace {
    		defer p.trace("arrayType")()
    	}
    
    	if len == nil && !p.got(_DotDotDot) {
    		p.xnest++
    		len = p.expr()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 62.9K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/syntax/positions.go

    				m = l
    				continue
    			}
    			return n.Pos()
    		case *FuncType:
    			if l := lastField(n.ResultList); l != nil {
    				m = l
    				continue
    			}
    			if l := lastField(n.ParamList); l != nil {
    				m = l
    				continue
    			}
    			return n.Pos()
    		case *MapType:
    			m = n.Value
    		case *ChanType:
    			m = n.Elem
    
    		// statements
    		case *EmptyStmt:
    			return n.Pos()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 17:49:19 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/signature.go

    	if recvPar != nil {
    		recvList, _ = check.collectParams(scope, []*syntax.Field{recvPar}, false, scopePos) // use rewritten receiver type, if any
    	}
    	params, variadic := check.collectParams(scope, ftyp.ParamList, true, scopePos)
    	results, _ := check.collectParams(scope, ftyp.ResultList, false, scopePos)
    	scope.Squash(func(obj, alt Object) {
    		err := check.newError(DuplicateDecl)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 21:33:05 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/types2/resolver.go

    						code := InvalidInitDecl
    						if name == "main" {
    							code = InvalidMainDecl
    						}
    						if len(s.TParamList) != 0 {
    							check.softErrorf(s.TParamList[0], code, "func %s must have no type parameters", name)
    							hasTParamError = true
    						}
    						if t := s.Type; len(t.ParamList) != 0 || len(t.ResultList) != 0 {
    							check.softErrorf(s.Name, code, "func %s must have no arguments and no return values", name)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 14:10:44 UTC 2024
    - 26.3K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/decl.go

    	}).describef(obj, "validType(%s)", obj.Name())
    
    	// First type parameter, or nil.
    	var tparam0 *syntax.Field
    	if len(tdecl.TParamList) > 0 {
    		tparam0 = tdecl.TParamList[0]
    	}
    
    	// alias declaration
    	if tdecl.Alias {
    		// Report highest version requirement first so that fixing a version issue
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 29.6K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/types2/typestring.go

    			// instantiated type
    			w.typeList(t.inst.targs.list())
    		} else if w.ctxt == nil && t.TypeParams().Len() != 0 { // For type hashing, don't need to format the TypeParams
    			// parameterized type
    			w.tParamList(t.TypeParams().list())
    		}
    
    	case *TypeParam:
    		if t.obj == nil {
    			w.error("unnamed type parameter")
    			break
    		}
    		if i := tparamIndex(w.tparams.list(), t); i >= 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  8. src/go/types/typestring.go

    			// instantiated type
    			w.typeList(t.inst.targs.list())
    		} else if w.ctxt == nil && t.TypeParams().Len() != 0 { // For type hashing, don't need to format the TypeParams
    			// parameterized type
    			w.tParamList(t.TypeParams().list())
    		}
    
    	case *TypeParam:
    		if t.obj == nil {
    			w.error("unnamed type parameter")
    			break
    		}
    		if i := tparamIndex(w.tparams.list(), t); i >= 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  9. src/cmd/vendor/github.com/ianlancetaylor/demangle/demangle.go

    				qual = &Qualifier{Name: "noexcept", Exprs: []AST{expr}}
    			case 'w':
    				st.advance(2)
    				parmlist := st.parmlist(false)
    				if len(st.str) == 0 || st.str[0] != 'E' {
    					st.fail("expected E after throw parameter list")
    				}
    				st.advance(1)
    				qual = &Qualifier{Name: "throw", Exprs: parmlist}
    			default:
    				break qualLoop
    			}
    			q = append([]AST{qual}, q...)
    		} else {
    			break
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 94.1K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/object.go

    		case *Basic:
    			// Don't print anything more for basic types since there's
    			// no more information.
    			return
    		case *Named:
    			if t.TypeParams().Len() > 0 {
    				newTypeWriter(buf, qf).tParamList(t.TypeParams().list())
    			}
    		}
    		if tname.IsAlias() {
    			buf.WriteString(" =")
    			if alias, ok := typ.(*Alias); ok { // materialized? (gotypesalias=1)
    				typ = alias.fromRHS
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 20.1K bytes
    - Viewed (0)
Back to top