Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 288 for iota (0.04 sec)

  1. src/go/types/stmt.go

    	defer func(env environment, indent int) {
    		check.environment = env
    		check.indent = indent
    	}(check.environment, check.indent)
    	check.environment = environment{
    		decl:  decl,
    		scope: sig.scope,
    		iota:  iota,
    		sig:   sig,
    	}
    	check.indent = 0
    
    	check.stmtList(0, body.List)
    
    	if check.hasLabel {
    		check.labels(body)
    	}
    
    	if sig.results.Len() > 0 && !check.isTerminating(body, "") {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 30.6K bytes
    - Viewed (0)
  2. test/typeparam/graph.go

    					workqueue = append(workqueue, nodePath[_Node, _Edge]{a, ve})
    					visited[a] = true
    				}
    			}
    		}
    	}
    	return nil, errors.New("no path")
    }
    
    type direction int
    
    const (
    	north direction = iota
    	ne
    	east
    	se
    	south
    	sw
    	west
    	nw
    	up
    	down
    )
    
    func (dir direction) String() string {
    	strs := map[direction]string{
    		north: "north",
    		ne:    "ne",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/text/unicode/norm/composition.go

    // ssState is used for reporting the segment state after inserting a rune.
    // It is returned by streamSafe.next.
    type ssState int
    
    const (
    	// Indicates a rune was successfully added to the segment.
    	ssSuccess ssState = iota
    	// Indicates a rune starts a new segment and should not be added.
    	ssStarter
    	// Indicates a rune caused a segment overflow and a CGJ should be inserted.
    	ssOverflow
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  4. src/syscall/types_windows.go

    )
    
    const (
    	// do not reorder
    	FILE_NOTIFY_CHANGE_FILE_NAME = 1 << iota
    	FILE_NOTIFY_CHANGE_DIR_NAME
    	FILE_NOTIFY_CHANGE_ATTRIBUTES
    	FILE_NOTIFY_CHANGE_SIZE
    	FILE_NOTIFY_CHANGE_LAST_WRITE
    	FILE_NOTIFY_CHANGE_LAST_ACCESS
    	FILE_NOTIFY_CHANGE_CREATION
    )
    
    const (
    	// do not reorder
    	FILE_ACTION_ADDED = iota + 1
    	FILE_ACTION_REMOVED
    	FILE_ACTION_MODIFIED
    	FILE_ACTION_RENAMED_OLD_NAME
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 20 06:04:31 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/types2/selection.go

    // inserted for "pointerness" are not evaluated until the function is
    // called, so a T.f or (*T).f expression never panics.
    type SelectionKind int
    
    const (
    	FieldVal   SelectionKind = iota // x.f is a struct field selector
    	MethodVal                       // x.f is a method selector
    	MethodExpr                      // x.f is a method expression
    )
    
    // A Selection describes a selector expression x.f.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 22 19:32:17 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/errors.go

    		// TODO(gri) We may also want to augment the error message and
    		// refer to the position (pos) in the original expression.
    		if check.errpos.Pos().IsKnown() {
    			assert(check.iota != nil)
    			pos = check.errpos
    		}
    
    		// Report invalid syntax trees explicitly.
    		if code == InvalidSyntaxTree {
    			msg = "invalid syntax tree: " + msg
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 22:06:18 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  7. doc/go_spec.html

    	b = 1 &lt;&lt; iota  // b == 2  (iota == 1)
    	c = 3          // c == 3  (iota == 2, unused)
    	d = 1 &lt;&lt; iota  // d == 8  (iota == 3)
    )
    
    const (
    	u         = iota * 42  // u == 0     (untyped integer constant)
    	v float64 = iota * 42  // v == 42.0  (float64 constant)
    	w         = iota * 42  // w == 84    (untyped integer constant)
    )
    
    const x = iota  // x == 0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 21:07:21 UTC 2024
    - 281.5K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/types2/resolver.go

    					check.declare(fileScope, nil, pkgName, nopos)
    				}
    
    			case *syntax.ConstDecl:
    				// iota is the index of the current constDecl within the group
    				if first < 0 || s.Group == nil || file.DeclList[index-1].(*syntax.ConstDecl).Group != s.Group {
    					first = index
    					last = nil
    				}
    				iota := constant.MakeInt64(int64(index - first))
    
    				// determine which initialization expressions to use
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 14:10:44 UTC 2024
    - 26.3K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/slog/slog.go

    // A position describes what is expected to appear in an argument position.
    type position int
    
    const (
    	// key is an argument position that should hold a string key or an Attr.
    	key position = iota
    	// value is an argument position that should hold a value.
    	value
    	// unknown represents that we do not know if position should hold a key or a value.
    	unknown
    )
    
    func run(pass *analysis.Pass) (any, error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  10. src/runtime/sigqueue.go

    	wanted     [(_NSIG + 31) / 32]uint32
    	ignored    [(_NSIG + 31) / 32]uint32
    	recv       [(_NSIG + 31) / 32]uint32
    	state      atomic.Uint32
    	delivering atomic.Uint32
    	inuse      bool
    }
    
    const (
    	sigIdle = iota
    	sigReceiving
    	sigSending
    )
    
    // sigsend delivers a signal from sighandler to the internal signal delivery queue.
    // It reports whether the signal was sent. If not, the caller typically crashes the program.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 7.6K bytes
    - Viewed (0)
Back to top