Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 58 for typesDoc (0.16 sec)

  1. src/go/parser/resolver.go

    				}
    				r.declare(spec, i, r.topScope, kind, spec.Names...)
    			}
    		case token.TYPE:
    			for _, spec := range n.Specs {
    				spec := spec.(*ast.TypeSpec)
    				// Go spec: The scope of a type identifier declared inside a function begins
    				// at the identifier in the TypeSpec and ends at the end of the innermost
    				// containing block.
    				r.declare(spec, nil, r.topScope, ast.Typ, spec.Name)
    				if spec.TypeParams != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 02 12:56:53 UTC 2023
    - 15.8K bytes
    - Viewed (0)
  2. src/go/parser/parser_test.go

    	parts := strings.Split(fieldname, ".")
    	for _, d := range file.Decls {
    		if d, ok := d.(*ast.GenDecl); ok && d.Tok == token.TYPE {
    			for _, s := range d.Specs {
    				if s, ok := s.(*ast.TypeSpec); ok && s.Name.Name == parts[0] {
    					if s, ok := s.Type.(*ast.StructType); ok {
    						for _, f := range s.Fields.List {
    							for _, name := range f.Names {
    								if name.Name == parts[1] {
    									return f
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 31 20:26:14 UTC 2024
    - 24.6K bytes
    - Viewed (0)
  3. src/vendor/golang.org/x/net/dns/dnsmessage/message.go

    	TypeAXFR  Type = 252
    	TypeALL   Type = 255
    )
    
    var typeNames = map[Type]string{
    	TypeA:     "TypeA",
    	TypeNS:    "TypeNS",
    	TypeCNAME: "TypeCNAME",
    	TypeSOA:   "TypeSOA",
    	TypePTR:   "TypePTR",
    	TypeMX:    "TypeMX",
    	TypeTXT:   "TypeTXT",
    	TypeAAAA:  "TypeAAAA",
    	TypeSRV:   "TypeSRV",
    	TypeOPT:   "TypeOPT",
    	TypeWKS:   "TypeWKS",
    	TypeHINFO: "TypeHINFO",
    	TypeMINFO: "TypeMINFO",
    	TypeAXFR:  "TypeAXFR",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Mar 09 00:09:40 UTC 2024
    - 69K bytes
    - Viewed (0)
  4. api/go1.9.txt

    pkg encoding/base32, const StdPadding int32
    pkg encoding/base32, method (Encoding) WithPadding(int32) *Encoding
    pkg encoding/csv, type Reader struct, ReuseRecord bool
    pkg encoding/json, func Valid([]uint8) bool
    pkg go/ast, type TypeSpec struct, Assign token.Pos
    pkg go/types, func SizesFor(string, string) Sizes
    pkg go/types, method (*TypeName) IsAlias() bool
    pkg hash/fnv, func New128() hash.Hash
    pkg hash/fnv, func New128a() hash.Hash
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 04 20:20:20 UTC 2021
    - 10.7K bytes
    - Viewed (0)
  5. api/go1.18.txt

    pkg go/ast, type IndexListExpr struct, Indices []Expr
    pkg go/ast, type IndexListExpr struct, Lbrack token.Pos
    pkg go/ast, type IndexListExpr struct, Rbrack token.Pos
    pkg go/ast, type IndexListExpr struct, X Expr
    pkg go/ast, type TypeSpec struct, TypeParams *FieldList
    pkg go/constant, method (Kind) String() string
    pkg go/token, const TILDE = 88
    pkg go/token, const TILDE Token
    pkg go/types, func Instantiate(*Context, Type, []Type, bool) (Type, error)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 17 20:31:46 UTC 2023
    - 13K bytes
    - Viewed (0)
  6. src/go/internal/gccgoimporter/parser.go

    		p.update(t, nlist)
    		return t
    	}
    
    	t := new(types.Pointer)
    	p.update(t, nlist)
    
    	*t = *types.NewPointer(p.parseType(pkg, t))
    
    	return t
    }
    
    // TypeSpec = NamedType | MapType | ChanType | StructType | InterfaceType | PointerType | ArrayOrSliceType | FunctionType .
    func (p *parser) parseTypeSpec(pkg *types.Package, nlist []any) types.Type {
    	switch p.tok {
    	case scanner.String:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 02 23:14:07 UTC 2024
    - 31.2K bytes
    - Viewed (0)
  7. src/go/ast/filter.go

    		s.Names = filterIdentList(s.Names, f)
    		s.Values = filterExprList(s.Values, f, export)
    		if len(s.Names) > 0 {
    			if export {
    				filterType(s.Type, f, export)
    			}
    			return true
    		}
    	case *TypeSpec:
    		if f(s.Name.Name) {
    			if export {
    				filterType(s.Type, f, export)
    			}
    			return true
    		}
    		if !export {
    			// For general filtering (not just exports),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  8. src/cmd/cgo/ast.go

    	case *ast.ValueSpec:
    		f.walk(&n.Type, ctxType, visit)
    		if len(n.Names) == 2 && len(n.Values) == 1 {
    			f.walk(&n.Values[0], ctxAssign2, visit)
    		} else {
    			f.walk(n.Values, ctxExpr, visit)
    		}
    	case *ast.TypeSpec:
    		if tparams := typeSpecTypeParams(n); tparams != nil {
    			f.walk(tparams, ctxParam, visit)
    		}
    		f.walk(&n.Type, ctxType, visit)
    
    	case *ast.BadDecl:
    	case *ast.GenDecl:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 07 16:54:27 UTC 2023
    - 14.3K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/tools/go/ast/astutil/rewrite.go

    	case *ast.ValueSpec:
    		a.apply(n, "Doc", nil, n.Doc)
    		a.applyList(n, "Names")
    		a.apply(n, "Type", nil, n.Type)
    		a.applyList(n, "Values")
    		a.apply(n, "Comment", nil, n.Comment)
    
    	case *ast.TypeSpec:
    		a.apply(n, "Doc", nil, n.Doc)
    		a.apply(n, "Name", nil, n.Name)
    		if tparams := n.TypeParams; tparams != nil {
    			a.apply(n, "TypeParams", nil, tparams)
    		}
    		a.apply(n, "Type", nil, n.Type)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 18 21:28:13 UTC 2023
    - 12.2K bytes
    - Viewed (0)
  10. src/cmd/cover/cover_test.go

    				// directives can be associated with it, so we make up a name
    				// to match directives in the test data.
    				name = "_empty"
    			} else if spec, ok := d.Specs[0].(*ast.TypeSpec); ok {
    				name = spec.Name.Name
    			}
    		}
    		pos := fset.Position(decl.Pos()).Offset
    		end := fset.Position(decl.End()).Offset
    		if name == "" {
    			prevEnd = end
    			continue
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 07 16:54:28 UTC 2023
    - 18.4K bytes
    - Viewed (0)
Back to top