Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for ChanType (0.12 sec)

  1. src/cmd/compile/internal/typecheck/iexport.go

    //         Elem typeOff
    //     }
    //
    //     type ArrayType struct {
    //         Tag  itag // arrayType
    //         Len  uint64
    //         Elem typeOff
    //     }
    //
    //     type ChanType struct {
    //         Tag  itag   // chanType
    //         Dir  uint64 // 1 RecvOnly; 2 SendOnly; 3 SendRecv
    //         Elem typeOff
    //     }
    //
    //     type MapType struct {
    //         Tag  itag // mapType
    //         Key  typeOff
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jul 21 02:40:02 UTC 2023
    - 6.8K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/syntax/nodes_test.go

    	{"SliceType", `@[]T`},
    	{"DotsType", `@...T`},
    	{"StructType", `@struct{}`},
    	{"InterfaceType", `@interface{}`},
    	{"FuncType", `func@()`},
    	{"MapType", `@map[T]T`},
    
    	{"ChanType", `@chan T`},
    	{"ChanType", `@chan<- T`},
    	{"ChanType", `@<-chan T`},
    }
    
    var fields = []test{
    	{"Field", `@T`},
    	{"Field", `@(T)`},
    	{"Field", `@x T`},
    	{"Field", `@x *(T)`},
    	{"Field", `@x, y, z T`},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 02 18:45:06 UTC 2023
    - 8.7K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/syntax/positions.go

    		// types
    		// case *ArrayType:
    		// case *SliceType:
    		// case *DotsType:
    		// case *StructType:
    		// case *Field:
    		// case *InterfaceType:
    		// case *FuncType:
    		// case *MapType:
    		// case *ChanType:
    
    		// statements
    		// case *EmptyStmt:
    		// case *LabeledStmt:
    		// case *BlockStmt:
    		// case *ExprStmt:
    		case *SendStmt:
    			m = n.Chan
    		// case *DeclStmt:
    		case *AssignStmt:
    			m = n.Lhs
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 17:49:19 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  4. src/internal/reflectlite/reflect_mirror_test.go

    import (
    	"fmt"
    	"go/ast"
    	"go/parser"
    	"go/token"
    	"io/fs"
    	"os"
    	"path/filepath"
    	"runtime"
    	"strings"
    	"sync"
    	"testing"
    )
    
    var typeNames = []string{
    	"uncommonType",
    	"arrayType",
    	"chanType",
    	"funcType",
    	"interfaceType",
    	"ptrType",
    	"sliceType",
    	"structType",
    }
    
    type visitor struct {
    	m map[string]map[string]bool
    }
    
    func newVisitor() visitor {
    	v := visitor{}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 19 21:11:15 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/tools/go/ast/inspector/typeof.go

    	case *ast.BlockStmt:
    		return 1 << nBlockStmt
    	case *ast.BranchStmt:
    		return 1 << nBranchStmt
    	case *ast.CallExpr:
    		return 1 << nCallExpr
    	case *ast.CaseClause:
    		return 1 << nCaseClause
    	case *ast.ChanType:
    		return 1 << nChanType
    	case *ast.CommClause:
    		return 1 << nCommClause
    	case *ast.Comment:
    		return 1 << nComment
    	case *ast.CommentGroup:
    		return 1 << nCommentGroup
    	case *ast.CompositeLit:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 18 21:28:13 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  6. src/go/types/exprstring.go

    		writeFieldList(buf, x.Methods.List, "; ", true)
    		buf.WriteByte('}')
    
    	case *ast.MapType:
    		buf.WriteString("map[")
    		WriteExpr(buf, x.Key)
    		buf.WriteByte(']')
    		WriteExpr(buf, x.Value)
    
    	case *ast.ChanType:
    		var s string
    		switch x.Dir {
    		case ast.SEND:
    			s = "chan<- "
    		case ast.RECV:
    			s = "<-chan "
    		default:
    			s = "chan "
    		}
    		buf.WriteString(s)
    		WriteExpr(buf, x.Value)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 08 19:31:44 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  7. src/go/ast/walk.go

    			Walk(v, n.Params)
    		}
    		if n.Results != nil {
    			Walk(v, n.Results)
    		}
    
    	case *InterfaceType:
    		Walk(v, n.Methods)
    
    	case *MapType:
    		Walk(v, n.Key)
    		Walk(v, n.Value)
    
    	case *ChanType:
    		Walk(v, n.Value)
    
    	// Statements
    	case *BadStmt:
    		// nothing to do
    
    	case *DeclStmt:
    		Walk(v, n.Decl)
    
    	case *EmptyStmt:
    		// nothing to do
    
    	case *LabeledStmt:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 16:34:10 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/typecheck/mkbuiltin.go

    	case *ast.ArrayType:
    		if t.Len == nil {
    			return fmt.Sprintf("types.NewSlice(%s)", i.subtype(t.Elt))
    		}
    		return fmt.Sprintf("types.NewArray(%s, %d)", i.subtype(t.Elt), intconst(t.Len))
    	case *ast.ChanType:
    		dir := "types.Cboth"
    		switch t.Dir {
    		case ast.SEND:
    			dir = "types.Csend"
    		case ast.RECV:
    			dir = "types.Crecv"
    		}
    		return fmt.Sprintf("types.NewChan(%s, %s)", i.subtype(t.Value), dir)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 26 21:56:49 UTC 2023
    - 6K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/syntax/walk.go

    	case *InterfaceType:
    		w.fieldList(n.MethodList)
    
    	case *FuncType:
    		w.fieldList(n.ParamList)
    		w.fieldList(n.ResultList)
    
    	case *MapType:
    		w.node(n.Key)
    		w.node(n.Value)
    
    	case *ChanType:
    		w.node(n.Elem)
    
    	// statements
    	case *EmptyStmt: // nothing to do
    
    	case *LabeledStmt:
    		w.node(n.Label)
    		w.node(n.Stmt)
    
    	case *BlockStmt:
    		w.stmtList(n.List)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:55:04 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  10. src/go/doc/exports.go

    	case *ast.InterfaceType:
    		if r.filterFieldList(parent, t.Methods, t) {
    			t.Incomplete = true
    		}
    	case *ast.MapType:
    		r.filterType(nil, t.Key)
    		r.filterType(nil, t.Value)
    	case *ast.ChanType:
    		r.filterType(nil, t.Value)
    	}
    }
    
    func (r *reader) filterSpec(spec ast.Spec) bool {
    	switch s := spec.(type) {
    	case *ast.ImportSpec:
    		// always keep imports so we can collect them
    		return true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 01 18:18:07 UTC 2022
    - 8.5K bytes
    - Viewed (0)
Back to top