Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for validType0 (0.26 sec)

  1. src/go/types/typexpr.go

    			}
    		}
    
    		// TODO(rfindley): remove this call: we don't need to call validType here,
    		// as cycles can only occur for types used inside a Named type declaration,
    		// and so it suffices to call validType from declared types.
    		check.validType(inst)
    	}).describef(ix, "resolve instance %s", inst)
    
    	return inst
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 16.3K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/typexpr.go

    			}
    		}
    
    		// TODO(rfindley): remove this call: we don't need to call validType here,
    		// as cycles can only occur for types used inside a Named type declaration,
    		// and so it suffices to call validType from declared types.
    		check.validType(inst)
    	}).describef(x, "resolve instance %s", inst)
    
    	return inst
    }
    
    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/cmd/compile/internal/types2/typeset.go

    		}()
    	}
    
    	// An infinitely expanding interface (due to a cycle) is detected
    	// elsewhere (Checker.validType), so here we simply assume we only
    	// have valid interfaces. Mark the interface as complete to avoid
    	// infinite recursion if the validType check occurs later for some
    	// reason.
    	ityp.tset = &_TypeSet{terms: allTermlist} // TODO(gri) is this sufficient?
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  4. src/go/types/typeset.go

    		}()
    	}
    
    	// An infinitely expanding interface (due to a cycle) is detected
    	// elsewhere (Checker.validType), so here we simply assume we only
    	// have valid interfaces. Mark the interface as complete to avoid
    	// infinite recursion if the validType check occurs later for some
    	// reason.
    	ityp.tset = &_TypeSet{terms: allTermlist} // TODO(gri) is this sufficient?
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/types2/check.go

    	impMap  map[importKey]*Package // maps (import path, source directory) to (complete or fake) package
    	// see TODO in validtype.go
    	// valids  instanceLookup      // valid *Named (incl. instantiated) types per the validType check
    
    	// pkgPathMap maps package names to the set of distinct import paths we've
    	// seen for that name, anywhere in the import graph. It is used for
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 23.3K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/decl.go

    	check.later(func() {
    		if t := asNamed(obj.typ); t != nil { // type may be invalid
    			check.validType(t)
    		}
    		// If typ is local, an error was already reported where typ is specified/defined.
    		_ = !versionErr && check.isImportedConstraint(rhs) && check.verifyVersionf(tdecl.Type, go1_18, "using type constraint %s", rhs)
    	}).describef(obj, "validType(%s)", obj.Name())
    
    	// First type parameter, or nil.
    	var tparam0 *syntax.Field
    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/go/types/check.go

    	impMap  map[importKey]*Package // maps (import path, source directory) to (complete or fake) package
    	// see TODO in validtype.go
    	// valids instanceLookup // valid *Named (incl. instantiated) types per the validType check
    
    	// pkgPathMap maps package names to the set of distinct import paths we've
    	// seen for that name, anywhere in the import graph. It is used for
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/types2/subst.go

    		if updated {
    			// Create a new instance and populate the context to avoid endless
    			// recursion. The position used here is irrelevant because validation only
    			// occurs on t (we don't call validType on named), but we use subst.pos to
    			// help with debugging.
    			return subst.check.instance(subst.pos, orig, targs, subst.expanding, subst.ctxt)
    		}
    
    	case *TypeParam:
    		return subst.smap.lookup(t)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:04:07 UTC 2024
    - 11K bytes
    - Viewed (0)
  9. src/go/types/subst.go

    		if updated {
    			// Create a new instance and populate the context to avoid endless
    			// recursion. The position used here is irrelevant because validation only
    			// occurs on t (we don't call validType on named), but we use subst.pos to
    			// help with debugging.
    			return subst.check.instance(subst.pos, orig, targs, subst.expanding, subst.ctxt)
    		}
    
    	case *TypeParam:
    		return subst.smap.lookup(t)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:04:07 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  10. src/go/types/decl.go

    	check.later(func() {
    		if t := asNamed(obj.typ); t != nil { // type may be invalid
    			check.validType(t)
    		}
    		// If typ is local, an error was already reported where typ is specified/defined.
    		_ = !versionErr && check.isImportedConstraint(rhs) && check.verifyVersionf(tdecl.Type, go1_18, "using type constraint %s", rhs)
    	}).describef(obj, "validType(%s)", obj.Name())
    
    	// First type parameter, or nil.
    	var tparam0 *ast.Field
    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