Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 32 for mpos (0.15 sec)

  1. src/go/types/typeset.go

    		// Types don't generally have position information.
    		// If we don't have a valid pos provided, try to use
    		// one close enough.
    		if !pos.IsValid() && len(ityp.methods) > 0 {
    			pos = ityp.methods[0].pos
    		}
    
    		check.trace(pos, "-- type set for %s", ityp)
    		check.indent++
    		defer func() {
    			check.indent--
    			check.trace(pos, "=> %s ", ityp.typeSet())
    		}()
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/typeset.go

    		// Types don't generally have position information.
    		// If we don't have a valid pos provided, try to use
    		// one close enough.
    		if !pos.IsKnown() && len(ityp.methods) > 0 {
    			pos = ityp.methods[0].pos
    		}
    
    		check.trace(pos, "-- type set for %s", ityp)
    		check.indent++
    		defer func() {
    			check.indent--
    			check.trace(pos, "=> %s ", ityp.typeSet())
    		}()
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  3. src/go/internal/gcimporter/iimport.go

    	prevLine   int64
    	prevColumn int64
    }
    
    func (r *importReader) obj(name string) {
    	tag := r.byte()
    	pos := r.pos()
    
    	switch tag {
    	case 'A':
    		typ := r.typ()
    
    		r.declare(types.NewTypeName(pos, r.currPkg, name, typ))
    
    	case 'C':
    		typ, val := r.value()
    
    		r.declare(types.NewConst(pos, r.currPkg, name, typ, val))
    
    	case 'F', 'G':
    		var tparams []*types.TypeParam
    		if tag == 'G' {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ir/func.go

    }
    
    // NewFunc returns a new Func with the given name and type.
    //
    // fpos is the position of the "func" token, and npos is the position
    // of the name identifier.
    //
    // TODO(mdempsky): I suspect there's no need for separate fpos and
    // npos.
    func NewFunc(fpos, npos src.XPos, sym *types.Sym, typ *types.Type) *Func {
    	name := NewNameAt(npos, sym, typ)
    	name.Class = PFUNC
    	sym.SetFunc(true)
    
    	fn := &Func{Nname: name}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:05:44 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/func.go

    func (b *Block) NewValue0(pos src.XPos, op Op, t *types.Type) *Value {
    	v := b.Func.newValue(op, t, b, pos)
    	v.AuxInt = 0
    	v.Args = v.argstorage[:0]
    	return v
    }
    
    // NewValue0I returns a new value in the block with no arguments and an auxint value.
    func (b *Block) NewValue0I(pos src.XPos, op Op, t *types.Type, auxint int64) *Value {
    	v := b.Func.newValue(op, t, b, pos)
    	v.AuxInt = auxint
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 19:44:43 UTC 2024
    - 25.8K bytes
    - Viewed (0)
  6. src/go/token/position.go

    //	-                   invalid position without file name
    func (pos Position) String() string {
    	s := pos.Filename
    	if pos.IsValid() {
    		if s != "" {
    			s += ":"
    		}
    		s += strconv.Itoa(pos.Line)
    		if pos.Column != 0 {
    			s += fmt.Sprintf(":%d", pos.Column)
    		}
    	}
    	if s == "" {
    		s = "-"
    	}
    	return s
    }
    
    // Pos is a compact encoding of a source position within a file set.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 19.7K bytes
    - Viewed (0)
  7. src/cmd/go/internal/work/security.go

    	re(`-mcmodel=[0-9a-z-]+`),
    	re(`-mfloat-abi=([^@\-].*)`),
    	re(`-mfpmath=[0-9a-z,+]*`),
    	re(`-m(no-)?avx[0-9a-z.]*`),
    	re(`-m(no-)?ms-bitfields`),
    	re(`-m(no-)?stack-(.+)`),
    	re(`-mmacosx-(.+)`),
    	re(`-mios-simulator-version-min=(.+)`),
    	re(`-miphoneos-version-min=(.+)`),
    	re(`-mlarge-data-threshold=[0-9]+`),
    	re(`-mtvos-simulator-version-min=(.+)`),
    	re(`-mtvos-version-min=(.+)`),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:47:34 UTC 2024
    - 10K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/tools/internal/analysisinternal/analysis.go

    // 'pos' represents the position at which the identifiers may be inserted. 'pos' must be within
    // the scope of each of identifier we select. Otherwise, we will insert a variable at 'pos' that
    // is unrecognized.
    func MatchingIdents(typs []types.Type, node ast.Node, pos token.Pos, info *types.Info, pkg *types.Package) map[types.Type][]string {
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  9. src/go/types/instantiate.go

    func (check *Checker) validateTArgLen(pos token.Pos, name string, want, got int) bool {
    	var qual string
    	switch {
    	case got < want:
    		qual = "not enough"
    	case got > want:
    		qual = "too many"
    	default:
    		return true
    	}
    
    	msg := check.sprintf("%s type arguments for type %s: have %d, want %d", qual, name, got, want)
    	if check != nil {
    		check.error(atPos(pos), WrongTypeArgCount, msg)
    		return false
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/decl.go

    // firstInSrc reports the index of the object with the "smallest"
    // source position in path. path must not be empty.
    func firstInSrc(path []Object) int {
    	fst, pos := 0, path[0].Pos()
    	for i, t := range path[1:] {
    		if cmpPos(t.Pos(), pos) < 0 {
    			fst, pos = i+1, t.Pos()
    		}
    	}
    	return fst
    }
    
    func (check *Checker) constDecl(obj *Const, typ, init syntax.Expr, inherited bool) {
    	assert(obj.typ == nil)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 29.6K bytes
    - Viewed (0)
Back to top