Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 158 for iota (0.58 sec)

  1. src/cmd/vendor/golang.org/x/text/internal/language/match.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package language
    
    import "errors"
    
    type scriptRegionFlags uint8
    
    const (
    	isList = 1 << iota
    	scriptInFrom
    	regionInFrom
    )
    
    func (t *Tag) setUndefinedLang(id Language) {
    	if t.LangID == 0 {
    		t.LangID = id
    	}
    }
    
    func (t *Tag) setUndefinedScript(id Script) {
    	if t.ScriptID == 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/staticdata/embed.go

    import (
    	"path"
    	"sort"
    	"strings"
    
    	"cmd/compile/internal/base"
    	"cmd/compile/internal/ir"
    	"cmd/compile/internal/objw"
    	"cmd/compile/internal/types"
    	"cmd/internal/obj"
    )
    
    const (
    	embedUnknown = iota
    	embedBytes
    	embedString
    	embedFiles
    )
    
    func embedFileList(v *ir.Name, kind int) []string {
    	// Build list of files to store.
    	have := make(map[string]bool)
    	var list []string
    	for _, e := range *v.Embed {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 10 18:22:02 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  3. src/html/template/content.go

    	// the encapsulated content should come from a trusted source,
    	// as it will be included verbatim in the template output.
    	Srcset string
    )
    
    type contentType uint8
    
    const (
    	contentTypePlain contentType = iota
    	contentTypeCSS
    	contentTypeHTML
    	contentTypeHTMLAttr
    	contentTypeJS
    	contentTypeJSStr
    	contentTypeURL
    	contentTypeSrcset
    	// contentTypeUnsafe is used in attr.go for values that affect how
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 01 14:30:25 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  4. 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)
  5. src/cmd/vendor/golang.org/x/arch/ppc64/ppc64asm/decode.go

    		off := a.BitFields.ParseSigned(i) << a.Shift
    		neg := int64(-1) << (int(a.Shift) + a.BitFields.NumBits())
    		return Offset(neg | off)
    	}
    }
    
    type ArgType int8
    
    const (
    	TypeUnknown      ArgType = iota
    	TypePCRel                // PC-relative address
    	TypeLabel                // absolute address
    	TypeReg                  // integer register
    	TypeCondRegBit           // conditional register bit (0-31)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 22 17:16:14 UTC 2022
    - 5.6K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. src/go/parser/interface.go

    }
    
    // A Mode value is a set of flags (or 0).
    // They control the amount of source code parsed and other optional
    // parser functionality.
    type Mode uint
    
    const (
    	PackageClauseOnly    Mode             = 1 << iota // stop parsing after package clause
    	ImportsOnly                                       // stop parsing after import declarations
    	ParseComments                                     // parse comments and add them to AST
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  9. src/go/types/hilbert_test.go

    		for j := 0; j < n; j++ {
    			if j > 0 {
    				g.p(", ")
    			}
    			g.p("h%d_%d", i, j)
    		}
    		if i == 0 {
    			g.p(" = ")
    			for j := 0; j < n; j++ {
    				if j > 0 {
    					g.p(", ")
    				}
    				g.p("1.0/(iota + %d)", j+1)
    			}
    		}
    		g.p("\n")
    	}
    	g.p(")\n\n")
    }
    
    func (g *gen) inverse(n int) {
    	g.p(`// Inverse Hilbert matrix
    const (
    `)
    	for i := 0; i < n; i++ {
    		for j := 0; j < n; j++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/tools/go/ast/inspector/typeof.go

    //
    // The initial map-based implementation was too slow;
    // see https://go-review.googlesource.com/c/tools/+/135655/1/go/ast/inspector/inspector.go#196
    
    import (
    	"go/ast"
    	"math"
    )
    
    const (
    	nArrayType = iota
    	nAssignStmt
    	nBadDecl
    	nBadExpr
    	nBadStmt
    	nBasicLit
    	nBinaryExpr
    	nBlockStmt
    	nBranchStmt
    	nCallExpr
    	nCaseClause
    	nChanType
    	nCommClause
    	nComment
    	nCommentGroup
    	nCompositeLit
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 18 21:28:13 UTC 2023
    - 4.8K bytes
    - Viewed (0)
Back to top