Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for validAlias (0.23 sec)

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

    	if check.brokenAliases == nil {
    		check.brokenAliases = make(map[*TypeName]bool)
    	}
    	check.brokenAliases[alias] = true
    	alias.typ = Typ[Invalid]
    }
    
    // validAlias records that alias has the valid type typ (possibly Typ[Invalid]).
    func (check *Checker) validAlias(alias *TypeName, typ Type) {
    	assert(!check.conf.EnableAlias)
    	delete(check.brokenAliases, alias)
    	alias.typ = typ
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 23.3K bytes
    - Viewed (0)
  2. src/go/types/check.go

    	if check.brokenAliases == nil {
    		check.brokenAliases = make(map[*TypeName]bool)
    	}
    	check.brokenAliases[alias] = true
    	alias.typ = Typ[Invalid]
    }
    
    // validAlias records that alias has the valid type typ (possibly Typ[Invalid]).
    func (check *Checker) validAlias(alias *TypeName, typ Type) {
    	assert(!check.conf._EnableAlias)
    	delete(check.brokenAliases, alias)
    	alias.typ = typ
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/decl.go

    	if tname != nil && tname.IsAlias() {
    		// If we use Alias nodes, it is initialized with Typ[Invalid].
    		// TODO(gri) Adjust this code if we initialize with nil.
    		if !check.conf.EnableAlias {
    			check.validAlias(tname, Typ[Invalid])
    		}
    	}
    
    	// report a more concise error for self references
    	if len(cycle) == 1 {
    		if tname != nil {
    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

    	if tname != nil && tname.IsAlias() {
    		// If we use Alias nodes, it is initialized with Typ[Invalid].
    		// TODO(gri) Adjust this code if we initialize with nil.
    		if !check.conf._EnableAlias {
    			check.validAlias(tname, Typ[Invalid])
    		}
    	}
    
    	// report a more concise error for self references
    	if len(cycle) == 1 {
    		if tname != nil {
    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