Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for indexedElts (0.14 sec)

  1. src/go/types/index.go

    			return false
    		}
    	}
    
    	return true
    }
    
    // indexedElts checks the elements (elts) of an array or slice composite literal
    // against the literal's element type (typ), and the element indices against
    // the literal length if known (length >= 0). It returns the length of the
    // literal (maximum index value + 1).
    func (check *Checker) indexedElts(elts []ast.Expr, typ Type, length int64) int64 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 22 16:17:05 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/index.go

    			return false
    		}
    	}
    
    	return true
    }
    
    // indexedElts checks the elements (elts) of an array or slice composite literal
    // against the literal's element type (typ), and the element indices against
    // the literal length if known (length >= 0). It returns the length of the
    // literal (maximum index value + 1).
    func (check *Checker) indexedElts(elts []syntax.Expr, typ Type, length int64) int64 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 15 16:16:58 UTC 2023
    - 11.5K bytes
    - Viewed (0)
  3. src/go/types/expr.go

    			// path starting with earliest declaration in the source. TODO(gri) fix this.
    			if utyp.elem == nil {
    				check.error(e, InvalidTypeCycle, "invalid recursive type")
    				goto Error
    			}
    			n := check.indexedElts(e.Elts, utyp.elem, utyp.len)
    			// If we have an array of unknown length (usually [...]T arrays, but also
    			// arrays [n]T where n is invalid) set the length now that we know it and
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 49.7K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/expr.go

    			// path starting with earliest declaration in the source. TODO(gri) fix this.
    			if utyp.elem == nil {
    				check.error(e, InvalidTypeCycle, "invalid recursive type")
    				goto Error
    			}
    			n := check.indexedElts(e.ElemList, utyp.elem, utyp.len)
    			// If we have an array of unknown length (usually [...]T arrays, but also
    			// arrays [n]T where n is invalid) set the length now that we know it and
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 51.7K bytes
    - Viewed (0)
Back to top