Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for EndPos (0.32 sec)

  1. subprojects/core/src/main/java/org/gradle/internal/problems/DefaultProblemLocationAnalyzer.java

                endPos = failure.indexOfStackFrame(startPos + 1, GRADLE_CODE);
                if (endPos == -1) {
                    endPos = stack.size();
                }
            }
    
            lock.lock();
            try {
                return locationFromStackRange(startPos, endPos, stack);
            } finally {
                lock.unlock();
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 23 17:15:42 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  2. src/compress/flate/dict_decoder.go

    //
    // This invariant must be kept: 0 < dist <= histSize()
    func (dd *dictDecoder) writeCopy(dist, length int) int {
    	dstBase := dd.wrPos
    	dstPos := dstBase
    	srcPos := dstPos - dist
    	endPos := dstPos + length
    	if endPos > len(dd.hist) {
    		endPos = len(dd.hist)
    	}
    
    	// Copy non-overlapping section after destination position.
    	//
    	// This section is non-overlapping in that the copy length for this section
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 6K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/util.go

    // startPos returns the start position of node n.
    func startPos(n syntax.Node) syntax.Pos { return syntax.StartPos(n) }
    
    // endPos returns the position of the first character immediately after node n.
    func endPos(n syntax.Node) syntax.Pos { return syntax.EndPos(n) }
    
    // makeFromLiteral returns the constant value for the given literal string and kind.
    func makeFromLiteral(lit string, kind syntax.LitKind) constant.Value {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/syntax/positions.go

    // the returned position is the end position of the last enclosed
    // expression.
    // Thus, EndPos should not be used for exact demarcation of the
    // end of a node in the source; it is mostly useful to determine
    // scope ranges where there is some leeway.
    func EndPos(n Node) Pos {
    	for m := n; ; {
    		switch n := m.(type) {
    		case nil:
    			panic("nil node")
    
    		// packages
    		case *File:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 17:49:19 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  5. src/go/types/util.go

    // startPos returns the start position of node n.
    func startPos(n ast.Node) token.Pos { return n.Pos() }
    
    // endPos returns the position of the first character immediately after node n.
    func endPos(n ast.Node) token.Pos { return n.End() }
    
    // makeFromLiteral returns the constant value for the given literal string and kind.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  6. test-site/app/models/ContentsCreator.java

            final String tag = "<a href=\"";
            int linkPos;
            while((linkPos = h.indexOf(tag)) >=0) {
                h = h.substring(linkPos + tag.length());
                final int endpos = h.indexOf('"');
                String url = h.substring(0, endpos);
                if(url.contains("#")) {
                    continue;
                }
                if(url.startsWith("http")) {
                    queue.add(url);
    Registered: Wed Jun 12 15:38:08 UTC 2024
    - Last Modified: Fri Nov 06 08:48:32 UTC 2015
    - 3.7K bytes
    - Viewed (0)
  7. src/net/http/header.go

    		}
    		// Check that start pos is on a valid token boundary.
    		if sp > 0 && !isTokenBoundary(v[sp-1]) {
    			continue
    		}
    		// Check that end pos is on a valid token boundary.
    		if endPos := sp + len(token); endPos != len(v) && !isTokenBoundary(v[endPos]) {
    			continue
    		}
    		if ascii.EqualFold(v[sp:sp+len(token)], token) {
    			return true
    		}
    	}
    	return false
    }
    
    func isTokenBoundary(b byte) bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 22:14:00 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  8. src/go/ast/import.go

    	}
    	specs = deduped
    
    	// Fix up comment positions
    	for i, s := range specs {
    		s := s.(*ImportSpec)
    		if s.Name != nil {
    			s.Name.NamePos = pos[i].Start
    		}
    		s.Path.ValuePos = pos[i].Start
    		s.EndPos = pos[i].End
    		for _, g := range importComments[s] {
    			for _, c := range g.cg.List {
    				if g.left {
    					c.Slash = pos[i].Start - 1
    				} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/types2/labels.go

    	. "internal/types/errors"
    )
    
    // labels checks correct label use in body.
    func (check *Checker) labels(body *syntax.BlockStmt) {
    	// set of all labels in this body
    	all := NewScope(nil, body.Pos(), syntax.EndPos(body), "label")
    
    	fwdJumps := check.blockBranches(all, nil, nil, body.List)
    
    	// If there are any forward jumps left, no label was found for
    	// the corresponding goto statements. Either those labels were
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  10. platforms/documentation/docs/src/snippets/providers/collections/groovy/build.gradle

        // Add some strings to the domain object set
        void addString(String value) {
            myStrings.add(value)
        }
    }
    // end::dos[]
    
    // tag::ndos[]
    // tag::ndol[]
    // tag::ndoc[]
    abstract class Person {
        String name
    }
    // end::ndol[]
    // end::ndoc[]
    
    abstract class MyPluginExtensionNamedDomainObjectSet {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 17 18:14:15 UTC 2024
    - 2.1K bytes
    - Viewed (0)
Back to top