Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for EndPos (0.2 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. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. platforms/documentation/docs/src/snippets/providers/collections/kotlin/build.gradle.kts

        // Add some strings to the domain object set
        fun addString(value: String) {
            myStrings.add(value)
        }
    }
    // end::dos[]
    
    // tag::ndos[]
    // tag::ndol[]
    // tag::ndoc[]
    abstract class Person(val name: String)
    // 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)
  10. platforms/documentation/docs/src/docs/userguide/authoring-builds/gradle-properties/collections.adoc

    ====
    include::sample[dir="snippets/providers/collections/kotlin",files="build.gradle.kts[tags=ndos]"]
    include::sample[dir="snippets/providers/collections/groovy",files="build.gradle[tags=ndos]"]
    ====
    
    [[nameddomainobjectlist]]
    == 3. `NamedDomainObjectList`
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 24 04:19:09 UTC 2024
    - 8.4K bytes
    - Viewed (0)
Back to top