Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 58 of 58 for typesDoc (0.32 sec)

  1. src/reflect/value.go

    func (v Value) Type() Type {
    	if v.flag != 0 && v.flag&flagMethod == 0 {
    		return (*rtype)(noescape(unsafe.Pointer(v.typ_))) // inline of toRType(v.typ()), for own inlining in inline test
    	}
    	return v.typeSlow()
    }
    
    func (v Value) typeSlow() Type {
    	if v.flag == 0 {
    		panic(&ValueError{"reflect.Value.Type", Invalid})
    	}
    
    	typ := v.typ()
    	if v.flag&flagMethod == 0 {
    		return toRType(v.typ())
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 119.9K bytes
    - Viewed (0)
  2. src/go/printer/nodes.go

    			p.expr(s.Type)
    		}
    		if s.Values != nil {
    			p.print(blank, token.ASSIGN, blank)
    			p.exprList(token.NoPos, s.Values, 1, 0, token.NoPos, false)
    		}
    		p.setComment(s.Comment)
    
    	case *ast.TypeSpec:
    		p.setComment(s.Doc)
    		p.expr(s.Name)
    		if s.TypeParams != nil {
    			p.parameters(s.TypeParams, typeTParam)
    		}
    		if n == 1 {
    			p.print(blank)
    		} else {
    			p.print(vtab)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 17 18:53:17 UTC 2023
    - 52.6K bytes
    - Viewed (0)
  3. doc/go1.17_spec.html

    Type declarations come in two forms: alias declarations and type definitions.
    </p>
    
    <pre class="ebnf">
    TypeDecl = "type" ( TypeSpec | "(" { TypeSpec ";" } ")" ) .
    TypeSpec = AliasDecl | TypeDef .
    </pre>
    
    <h4 id="Alias_declarations">Alias declarations</h4>
    
    <p>
    An alias declaration binds an identifier to the given type.
    </p>
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 20:22:45 UTC 2024
    - 211.6K bytes
    - Viewed (0)
  4. doc/go_spec.html

    Type declarations come in two forms: alias declarations and type definitions.
    </p>
    
    <pre class="ebnf">
    TypeDecl = "type" ( TypeSpec | "(" { TypeSpec ";" } ")" ) .
    TypeSpec = AliasDecl | TypeDef .
    </pre>
    
    <h4 id="Alias_declarations">Alias declarations</h4>
    
    <p>
    An alias declaration binds an identifier to the given type
    [<a href="#Go_1.9">Go 1.9</a>].
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 21:07:21 UTC 2024
    - 281.5K bytes
    - Viewed (1)
  5. src/cmd/cgo/out.go

    		for _, d := range p.Decl {
    			gd, ok := d.(*ast.GenDecl)
    			if !ok || gd.Tok != token.TYPE {
    				continue
    			}
    			for _, spec := range gd.Specs {
    				ts, ok := spec.(*ast.TypeSpec)
    				if !ok {
    					continue
    				}
    				if ts.Name.Name == t.Name {
    					return p.cgoType(ts.Type)
    				}
    			}
    		}
    		if def := typedef[t.Name]; def != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 29 16:41:10 UTC 2024
    - 59.6K bytes
    - Viewed (0)
  6. src/cmd/cgo/gcc.go

    		for _, d := range p.Decl {
    			gd, ok := d.(*ast.GenDecl)
    			if !ok || gd.Tok != token.TYPE {
    				continue
    			}
    			for _, spec := range gd.Specs {
    				ts, ok := spec.(*ast.TypeSpec)
    				if !ok {
    					continue
    				}
    				if ts.Name.Name == t.Name {
    					return p.hasPointer(f, ts.Type, top)
    				}
    			}
    		}
    		if def := typedef[t.Name]; def != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:50:06 UTC 2024
    - 97K bytes
    - Viewed (0)
  7. RELEASE.md

            regarding when retracing needs to occur by implementing the Tracing
            Protocol available through
            `tf.types.experimental.SupportsTracingProtocol`.
        *   `TypeSpec` classes (as associated with `ExtensionTypes`) also implement
            the Tracing Protocol which can be overridden if necessary.
        *   The newly introduced `reduce_retracing` option also uses the Tracing
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 23:24:08 UTC 2024
    - 730.3K bytes
    - Viewed (0)
  8. api/go1.txt

    pkg go/ast, type TypeAssertExpr struct, Type Expr
    pkg go/ast, type TypeAssertExpr struct, X Expr
    pkg go/ast, type TypeSpec struct
    pkg go/ast, type TypeSpec struct, Comment *CommentGroup
    pkg go/ast, type TypeSpec struct, Doc *CommentGroup
    pkg go/ast, type TypeSpec struct, Name *Ident
    pkg go/ast, type TypeSpec struct, Type Expr
    pkg go/ast, type TypeSwitchStmt struct
    pkg go/ast, type TypeSwitchStmt struct, Assign Stmt
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 14 18:58:28 UTC 2013
    - 1.7M bytes
    - Viewed (0)
Back to top