Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 852 for positioner (0.14 sec)

  1. src/go/internal/gcimporter/support.go

    func (s *fakeFileSet) pos(file string, line, column int) token.Pos {
    	// TODO(mdempsky): Make use of column.
    
    	// Since we don't know the set of needed file positions, we reserve
    	// maxlines positions per file. We delay calling token.File.SetLines until
    	// all positions have been calculated (by way of fakeFileSet.setLines), so
    	// that we can avoid setting unnecessary lines. See also golang/go#46586.
    	f := s.files[file]
    	if f == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  2. src/cmd/gofmt/rewrite.go

    		if isWildcard(name) {
    			if old, ok := m[name]; ok {
    				return subst(nil, old, reflect.Value{})
    			}
    		}
    	}
    
    	if pos.IsValid() && pattern.Type() == positionType {
    		// use new position only if old position was valid in the first place
    		if old := pattern.Interface().(token.Pos); !old.IsValid() {
    			return pattern
    		}
    		return pos
    	}
    
    	// Otherwise copy.
    	switch p := pattern; p.Kind() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 27 22:07:13 UTC 2023
    - 8.1K bytes
    - Viewed (0)
  3. src/go/types/example_test.go

    	for id, obj := range info.Uses {
    		posn := fset.Position(id.Pos())
    		lineCol := fmt.Sprintf("%d:%d", posn.Line, posn.Column)
    		usesByObj[obj] = append(usesByObj[obj], lineCol)
    	}
    	var items []string
    	for obj, uses := range usesByObj {
    		slices.Sort(uses)
    		item := fmt.Sprintf("%s:\n  defined at %s\n  used at %s",
    			types.ObjectString(obj, types.RelativeTo(pkg)),
    			fset.Position(obj.Pos()),
    			strings.Join(uses, ", "))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  4. src/internal/fuzz/mutators_byteslice.go

    	// some extra working space
    	b = b[:end+(n*2)]
    	// Copy the block of bytes we want to duplicate to the end of the
    	// slice
    	copy(b[end+n:], b[src:src+n])
    	// Shift the bytes after the splice point n positions to the right
    	// to make room for the new block
    	copy(b[dst+n:end+n], b[dst:end])
    	// Insert the duplicate block into the splice point
    	copy(b[dst:], b[end+n:])
    	b = b[:end+n]
    	return b
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 19 18:23:43 UTC 2021
    - 7.7K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/base/Ascii.java

       * printing space backward on the same printing line. (Applicable also to display devices.)
       *
       * @since 8.0
       */
      public static final byte BS = 8;
    
      /**
       * Horizontal Tabulation ('\t'): A format effector which controls the movement of the printing
       * position to the next in a series of predetermined positions along the printing line.
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Jul 19 15:43:07 UTC 2021
    - 21.6K bytes
    - Viewed (0)
  6. src/encoding/csv/reader.go

    }
    
    // InputOffset returns the input stream byte offset of the current reader
    // position. The offset gives the location of the end of the most recently
    // read row and the beginning of the next row.
    func (r *Reader) InputOffset() int64 {
    	return r.offset
    }
    
    // pos holds the position of a field in the current line.
    type position struct {
    	line, col int
    }
    
    // ReadAll reads all the remaining records from r.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:32:28 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  7. guava/src/com/google/common/base/Ascii.java

       * printing space backward on the same printing line. (Applicable also to display devices.)
       *
       * @since 8.0
       */
      public static final byte BS = 8;
    
      /**
       * Horizontal Tabulation ('\t'): A format effector which controls the movement of the printing
       * position to the next in a series of predetermined positions along the printing line.
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Jul 19 15:43:07 UTC 2021
    - 21.6K bytes
    - Viewed (0)
  8. src/fmt/errors_test.go

    	}, {
    		err:        fmt.Errorf("%s %w %v", "prefix", wrapped, "suffix"),
    		wantText:   "prefix inner error suffix",
    		wantUnwrap: wrapped,
    	}, {
    		err:        fmt.Errorf("%[2]s: %[1]w", wrapped, "positional verb"),
    		wantText:   "positional verb: inner error",
    		wantUnwrap: wrapped,
    	}, {
    		err:      fmt.Errorf("%v", wrapped),
    		wantText: "inner error",
    	}, {
    		err:      fmt.Errorf("added context: %v", wrapped),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 29 18:40:40 UTC 2022
    - 3.6K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/AbstractIndexedListIterator.java

       */
      protected AbstractIndexedListIterator(int size, int position) {
        checkPositionIndex(position, size);
        this.size = size;
        this.position = position;
      }
    
      @Override
      public final boolean hasNext() {
        return position < size;
      }
    
      @Override
      @ParametricNullness
      public final E next() {
        if (!hasNext()) {
          throw new NoSuchElementException();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Jul 09 17:31:04 UTC 2021
    - 3.2K bytes
    - Viewed (0)
  10. src/vendor/golang.org/x/text/unicode/bidi/bracket.go

    	openers *list.List // list of positions for opening brackets
    
    	// bracket pair positions sorted by location of opening bracket
    	pairPositions bracketPairs
    
    	codesIsolatedRun []Class // directional bidi codes for an isolated run
    	indexes          []int   // array of index values into the original string
    
    }
    
    // matchOpener reports whether characters at given positions form a matching
    // bracket pair.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 19:27:51 UTC 2019
    - 11.2K bytes
    - Viewed (0)
Back to top