Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 29 for EndPos (0.35 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/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)
  3. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/AbstractContinuousIntegrationTest.groovy

            }
            int startPos = 0
            int endPos = findEndIndexOfCurrentBuild(out, startPos)
            while (startPos < out.length()) {
                if (endPos == -1) {
                    endPos = out.length()
                }
                results << createExecutionResult(out.substring(startPos, endPos), err)
                startPos = endPos
                endPos = findEndIndexOfCurrentBuild(out, startPos)
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 11.6K 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. 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)
  7. src/cmd/vendor/golang.org/x/mod/modfile/read.go

    	}
    	start := tok.pos
    	end := tok.endPos
    	tokens := []string{tok.text}
    	for {
    		tok := in.lex()
    		if tok.kind.isEOL() {
    			return &Line{
    				Start:   start,
    				Token:   tokens,
    				End:     end,
    				InBlock: true,
    			}
    		}
    		tokens = append(tokens, tok.text)
    		end = tok.endPos
    	}
    }
    
    var (
    	slashSlash = []byte("//")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  8. settings.gradle.kts

                    throw IllegalArgumentException("Could not locate the generated diagram in $markdownFile")
                }
                val endPos = content.subList(markerPos, content.size).indexOfFirst { it.contains(endDiagram) && !it.contains(startDiagram) }
                if (endPos < 0) {
                    throw IllegalArgumentException("Could not locate the end of the generated diagram in $markdownFile")
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:51:14 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top