Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 192 for positioned (1.17 sec)

  1. src/cmd/pack/pack.go

    			ar.files = ar.files[:len(ar.files)-1]
    			return true
    		}
    	}
    	return false
    }
    
    // addFiles adds files to the archive. The archive is known to be
    // sane and we are positioned at the end. No attempt is made
    // to check for existing files.
    func (ar *Archive) addFiles() {
    	if len(ar.files) == 0 {
    		usage()
    	}
    	for _, file := range ar.files {
    		if verbose {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  2. src/go/types/check_test.go

    		index := -1 // index of matching error
    		var delta int
    		for _, i := range indices {
    			if d := absDiff(gotPos.Column, errList[i].col); index < 0 || d < delta {
    				index, delta = i, d
    			}
    		}
    
    		// The closest column position must be within expected colDelta.
    		const colDelta = 0 // go/types errors are positioned correctly
    		if delta > colDelta {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 19:45:33 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  3. src/go/internal/gcimporter/iimport.go

    		return r.p.tparamIndex[id]
    
    	case instanceType:
    		if r.p.exportVersion < iexportVersionGenerics {
    			errorf("unexpected instantiation type")
    		}
    		// pos does not matter for instances: they are positioned on the original
    		// type.
    		_ = r.pos()
    		len := r.uint64()
    		targs := make([]types.Type, len)
    		for i := range targs {
    			targs[i] = r.typ()
    		}
    		baseType := r.typ()
    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/go/token/position.go

    // //line comments; otherwise those comments are ignored.
    // p must be a Pos value in f or NoPos.
    func (f *File) PositionFor(p Pos, adjusted bool) (pos Position) {
    	if p != NoPos {
    		pos = f.position(p, adjusted)
    	}
    	return
    }
    
    // Position returns the Position value for the given file position p.
    // If p is out of bounds, it is adjusted to match the File.Offset behavior.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 19.7K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/syntax/positions.go

    			return n.Pos()
    		}
    	}
    }
    
    // EndPos returns the approximate end position of n in the source.
    // For some nodes (*Name, *BasicLit) it returns the position immediately
    // following the node; for others (*BlockStmt, *SwitchStmt, etc.) it
    // returns the position of the closing '}'; and for some (*ParenExpr)
    // the returned position is the end position of the last enclosed
    // expression.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 17:49:19 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  6. src/internal/trace/internal/oldtrace/parser.go

    // will be read to completion and the entire trace will be materialized in
    // memory. That is, this function does not allow incremental parsing.
    //
    // The reader has to be positioned just after the trace header and vers needs to
    // be the version of the trace. This can be achieved by using
    // version.ReadHeader.
    func Parse(r io.Reader, vers version.Version) (Trace, error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:15:28 UTC 2024
    - 46.8K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/syntax/parser.go

    	p.errh = errh
    	p.mode = mode
    	p.pragh = pragh
    	p.scanner.init(
    		r,
    		// Error and directive handler for scanner.
    		// Because the (line, col) positions passed to the
    		// handler is always at or after the current reading
    		// position, it is safe to use the most recent position
    		// base to compute the corresponding Pos value.
    		func(line, col uint, msg string) {
    			if msg[0] != '/' {
    				p.errorAt(p.posAt(line, col), msg)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 62.9K bytes
    - Viewed (0)
  8. src/go/types/util.go

    // dddErrPos returns the positioner for reporting an invalid ... use in a call.
    func dddErrPos(call *ast.CallExpr) positioner { return atPos(call.Ellipsis) }
    
    // argErrPos returns positioner for reporting an invalid argument count.
    func argErrPos(call *ast.CallExpr) positioner { return inNode(call, call.Rparen) }
    
    // startPos returns the start position of node n.
    func startPos(n ast.Node) token.Pos { return n.Pos() }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/syntax/pos.go

    func (p position_) String() string {
    	if p.line == 0 {
    		if p.filename == "" {
    			return "<unknown position>"
    		}
    		return p.filename
    	}
    	if p.col == 0 {
    		return fmt.Sprintf("%s:%d", p.filename, p.line)
    	}
    	return fmt.Sprintf("%s:%d:%d", p.filename, p.line, p.col)
    }
    
    // A PosBase represents the base for relative position information:
    // At position pos, the relative position is filename:line:col.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 20:44:57 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/util.go

    package types2
    
    import (
    	"cmd/compile/internal/syntax"
    	"go/constant"
    	"go/token"
    )
    
    const isTypes2 = true
    
    // cmpPos compares the positions p and q and returns a result r as follows:
    //
    // r <  0: p is before q
    // r == 0: p and q are the same position (but may not be identical)
    // r >  0: p is after q
    //
    // If p and q are in different files, p is before q if the filename
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 2.1K bytes
    - Viewed (0)
Back to top