Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for setDefType (0.19 sec)

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

    		check.use(e0)
    
    	case *syntax.FuncType:
    		typ := new(Signature)
    		setDefType(def, typ)
    		check.funcType(typ, nil, nil, e)
    		return typ
    
    	case *syntax.InterfaceType:
    		typ := check.newInterface()
    		setDefType(def, typ)
    		check.interfaceType(typ, e, def)
    		return typ
    
    	case *syntax.MapType:
    		typ := new(Map)
    		setDefType(def, typ)
    
    		typ.key = check.varType(e.Key)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  2. src/go/types/typexpr.go

    	case *ast.StructType:
    		typ := new(Struct)
    		setDefType(def, typ)
    		check.structType(typ, e)
    		return typ
    
    	case *ast.StarExpr:
    		typ := new(Pointer)
    		typ.base = Typ[Invalid] // avoid nil base in invalid recursive type declaration
    		setDefType(def, typ)
    		typ.base = check.varType(e.X)
    		return typ
    
    	case *ast.FuncType:
    		typ := new(Signature)
    		setDefType(def, typ)
    		check.funcType(typ, nil, e)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 16.3K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/decl.go

    			// by (e.g.) a var whose type is an unfinished cycle,
    			// Unalias does not memoize if Invalid. Perhaps we should use a
    			// special sentinel distinct from Invalid.
    			alias := check.newAlias(obj, Typ[Invalid])
    			setDefType(def, alias)
    
    			// handle type parameters even if not allowed (Alias type is supported)
    			if tparam0 != nil {
    				if !versionErr && !buildcfg.Experiment.AliasTypeParams {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 29.6K bytes
    - Viewed (0)
  4. src/go/types/decl.go

    			// by (e.g.) a var whose type is an unfinished cycle,
    			// Unalias does not memoize if Invalid. Perhaps we should use a
    			// special sentinel distinct from Invalid.
    			alias := check.newAlias(obj, Typ[Invalid])
    			setDefType(def, alias)
    
    			// handle type parameters even if not allowed (Alias type is supported)
    			if tparam0 != nil {
    				if !versionErr && !buildcfg.Experiment.AliasTypeParams {
    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