Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 326 for Positions (0.19 sec)

  1. platforms/core-runtime/serialization/src/test/groovy/org/gradle/internal/serialize/kryo/KryoBackedCodecTest.groovy

            then:
            decode(bytes) { Decoder decoder ->
                decoder.skipChunked()
                assert decoder.readString() == "done"
            }
        }
    
        def "can query write and read positions"() {
            def outstr = new ByteArrayOutputStream()
            def encoder = new KryoBackedEncoder(outstr)
    
            expect:
            encoder.writePosition == 0
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 15 16:06:56 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/RegularImmutableSet.java

          new RegularImmutableSet<>(EMPTY_ARRAY, 0, EMPTY_ARRAY, 0);
    
      private final transient Object[] elements;
      private final transient int hashCode;
      // the same values as `elements` in hashed positions (plus nulls)
      @VisibleForTesting final transient @Nullable Object[] table;
      // 'and' with an int to get a valid table index.
      private final transient int mask;
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/syntax/error_test.go

    var print = flag.Bool("print", false, "only print errors")
    
    // A position represents a source position in the current file.
    type position struct {
    	line, col uint
    }
    
    func (pos position) String() string {
    	return fmt.Sprintf("%d:%d", pos.line, pos.col)
    }
    
    func sortedPositions(m map[position]string) []position {
    	list := make([]position, len(m))
    	i := 0
    	for pos := range m {
    		list[i] = pos
    		i++
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 20 02:13:02 UTC 2022
    - 4.8K bytes
    - Viewed (0)
  4. src/go/importer/importer.go

    	}
    
    	// compiler not supported
    	return nil
    }
    
    // For calls [ForCompiler] with a new FileSet.
    //
    // Deprecated: Use [ForCompiler], which populates a FileSet
    // with the positions of objects created by the importer.
    func For(compiler string, lookup Lookup) types.Importer {
    	return ForCompiler(token.NewFileSet(), compiler, lookup)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  5. src/cmd/vendor/github.com/google/pprof/internal/report/stacks.go

    	//
    	// No stack will be referenced twice in the Places slice for a given
    	// StackSource. In case of recursion, Places will contain the outer-most
    	// entry in the recursive stack. E.g., if stack S has source X at positions
    	// 4,6,9,10, the Places entry for X will contain [S,4].
    	Places []StackSlot
    
    	// Combined count of stacks where this source is the leaf.
    	Self int64
    
    	// Color number to use for this source.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 16 15:19:53 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  6. src/go/parser/error_test.go

    	// set otherwise the position information returned here will
    	// not match the position information collected by the parser
    	s.Init(getFile(fset, filename), src, nil, scanner.ScanComments)
    	var prev token.Pos // position of last non-comment, non-semicolon token
    	var here token.Pos // position immediately after the token at position prev
    
    	for {
    		pos, tok, lit := s.Scan()
    		switch tok {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 27 19:47:49 UTC 2022
    - 5.9K bytes
    - Viewed (0)
  7. cmd/httprange.go

    		if offsetBeginString[0] == '+' {
    			return nil, fmt.Errorf("Byte position ('%s') must not have a sign", offsetBeginString)
    		} else if offsetBegin, err = strconv.ParseInt(offsetBeginString, 10, 64); err != nil {
    			return nil, fmt.Errorf("'%s' does not have a valid first byte position value", rangeString)
    		} else if offsetBegin < 0 {
    			return nil, fmt.Errorf("First byte position is negative ('%d')", offsetBegin)
    		}
    	}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu May 09 08:44:07 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/types2/interface.go

    	methods   []*Func       // ordered list of explicitly declared methods
    	embeddeds []Type        // ordered list of explicitly embedded elements
    	embedPos  *[]syntax.Pos // positions of embedded elements; or nil (for error messages) - use pointer to save space
    	implicit  bool          // interface is wrapper for type set literal (non-interface T, ~T, or A|B)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 17:24:42 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  9. src/go/ast/print.go

    		return !v.IsNil()
    	}
    	return true
    }
    
    // Fprint prints the (sub-)tree starting at AST node x to w.
    // If fset != nil, position information is interpreted relative
    // to that file set. Otherwise positions are printed as integer
    // values (file set specific offsets).
    //
    // A non-nil [FieldFilter] f may be provided to control the output:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 28 21:32:41 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  10. cmd/preferredimports/preferredimports.go

    	isTerminal    = term.IsTerminal(int(os.Stdout.Fd()))
    	logPrefix     = ""
    	aliases       = map[*regexp.Regexp]string{}
    )
    
    type analyzer struct {
    	fset      *token.FileSet // positions are relative to fset
    	ctx       build.Context
    	failed    bool
    	donePaths map[string]interface{}
    }
    
    func newAnalyzer() *analyzer {
    	ctx := build.Default
    	ctx.CgoEnabled = true
    
    	a := &analyzer{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:06:44 UTC 2024
    - 7.1K bytes
    - Viewed (0)
Back to top