Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 185 for iota (0.04 sec)

  1. src/go/token/token.go

    import (
    	"strconv"
    	"unicode"
    	"unicode/utf8"
    )
    
    // Token is the set of lexical tokens of the Go programming language.
    type Token int
    
    // The list of tokens.
    const (
    	// Special tokens
    	ILLEGAL Token = iota
    	EOF
    	COMMENT
    
    	literal_beg
    	// Identifiers and basic type literals
    	// (these tokens stand for classes of literals)
    	IDENT  // main
    	INT    // 12345
    	FLOAT  // 123.45
    	IMAG   // 123.45i
    	CHAR   // 'a'
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/universe.go

    }
    
    var predeclaredConsts = [...]struct {
    	name string
    	kind BasicKind
    	val  constant.Value
    }{
    	{"true", UntypedBool, constant.MakeBool(true)},
    	{"false", UntypedBool, constant.MakeBool(false)},
    	{"iota", UntypedInt, constant.MakeInt64(0)},
    }
    
    func defPredeclaredConsts() {
    	for _, c := range predeclaredConsts {
    		def(NewConst(nopos, nil, c.name, Typ[c.kind], c.val))
    	}
    }
    
    func defPredeclaredNil() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  3. src/go/types/universe.go

    }
    
    var predeclaredConsts = [...]struct {
    	name string
    	kind BasicKind
    	val  constant.Value
    }{
    	{"true", UntypedBool, constant.MakeBool(true)},
    	{"false", UntypedBool, constant.MakeBool(false)},
    	{"iota", UntypedInt, constant.MakeInt64(0)},
    }
    
    func defPredeclaredConsts() {
    	for _, c := range predeclaredConsts {
    		def(NewConst(nopos, nil, c.name, Typ[c.kind], c.val))
    	}
    }
    
    func defPredeclaredNil() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  4. src/internal/trace/resources.go

    // GoState represents the state of a goroutine.
    //
    // New GoStates may be added in the future. Users of this type must be robust
    // to that possibility.
    type GoState uint8
    
    const (
    	GoUndetermined GoState = iota // No information is known about the goroutine.
    	GoNotExist                    // Goroutine does not exist.
    	GoRunnable                    // Goroutine is runnable but not running.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 8K bytes
    - Viewed (0)
  5. src/syscall/syscall_js.go

    type Signal int
    
    const (
    	_ Signal = iota
    	SIGCHLD
    	SIGINT
    	SIGKILL
    	SIGTRAP
    	SIGQUIT
    	SIGTERM
    )
    
    func (s Signal) Signal() {}
    
    func (s Signal) String() string {
    	if 0 <= s && int(s) < len(signals) {
    		str := signals[s]
    		if str != "" {
    			return str
    		}
    	}
    	return "signal " + itoa.Itoa(int(s))
    }
    
    var signals = [...]string{}
    
    // File system
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  6. src/cmd/link/internal/benchmark/bench.go

    package benchmark
    
    import (
    	"fmt"
    	"io"
    	"os"
    	"runtime"
    	"runtime/pprof"
    	"time"
    	"unicode"
    )
    
    type Flags int
    
    const (
    	GC         = 1 << iota
    	NoGC Flags = 0
    )
    
    type Metrics struct {
    	gc        Flags
    	marks     []*mark
    	curMark   *mark
    	filebase  string
    	pprofFile *os.File
    }
    
    type mark struct {
    	name              string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 30 18:10:36 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  7. src/runtime/write_err_android.go

    //
    // https://android.googlesource.com/platform/system/core/+/refs/tags/android-6.0.1_r78/liblog/logd_write.c
    type loggerType int32
    
    const (
    	unknown loggerType = iota
    	legacy
    	logd
    	// TODO(hakim): logging for emulator?
    )
    
    var logger loggerType
    
    func writeErr(b []byte) {
    	if len(b) == 0 {
    		return
    	}
    
    	if logger == unknown {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 18:23:49 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/types2/errsupport.go

    	// inaccessible   x.foo   !=    foo    cannot refer to unexported field foo
    	// missing        x.foo   !=    foO    type X has no field or method foo
    
    	const (
    		ok           = iota
    		missing      // no object found
    		misspelled   // found object with different spelling
    		unexported   // found object with name differing only in first letter
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 07 16:41:56 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  9. src/cmd/link/internal/sym/symkind.go

    type SymKind uint8
    
    // Defined SymKind values.
    //
    // TODO(rsc): Give idiomatic Go names.
    //
    //go:generate stringer -type=SymKind
    const (
    	Sxxx SymKind = iota
    	STEXT
    	SELFRXSECT
    	SMACHOPLT
    
    	// Read-only sections.
    	STYPE
    	SSTRING
    	SGOSTRING
    	SGOFUNC
    	SGCBITS
    	SRODATA
    	SFUNCTAB
    
    	SELFROSECT
    
    	// Read-only sections with relocations.
    	//
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 13:29:54 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  10. src/net/internal/socktest/switch.go

    		st[c] = s
    	}
    	return s
    }
    
    // A FilterType represents a filter type.
    type FilterType int
    
    const (
    	FilterSocket        FilterType = iota // for Socket
    	FilterConnect                         // for Connect or ConnectEx
    	FilterListen                          // for Listen
    	FilterAccept                          // for Accept, Accept4 or AcceptEx
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 4.8K bytes
    - Viewed (0)
Back to top