Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for EndPos (0.3 sec)

  1. 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)
  2. 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)
  3. src/cmd/compile/internal/types2/decl.go

    	obj.color_ = saved
    
    	// Set the scope's extent to the complete "func (...) { ... }"
    	// so that Scope.Innermost works correctly.
    	sig.scope.pos = fdecl.Pos()
    	sig.scope.end = syntax.EndPos(fdecl)
    
    	if len(fdecl.TParamList) > 0 && fdecl.Body == nil {
    		check.softErrorf(fdecl, BadDecl, "generic function is missing function body")
    	}
    
    	// function body must be type-checked after global declarations
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 29.6K bytes
    - Viewed (0)
  4. src/archive/tar/writer.go

    func (sw *sparseFileWriter) Write(b []byte) (n int, err error) {
    	overwrite := int64(len(b)) > sw.logicalRemaining()
    	if overwrite {
    		b = b[:sw.logicalRemaining()]
    	}
    
    	b0 := b
    	endPos := sw.pos + int64(len(b))
    	for endPos > sw.pos && err == nil {
    		var nf int // Bytes written in fragment
    		dataStart, dataEnd := sw.sp[0].Offset, sw.sp[0].endOffset()
    		if sw.pos < dataStart { // In a hole fragment
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/types2/signature.go

    	// scopePos, there should be no need for scope squashing.
    	// Audit to ensure all lookups honor scopePos and simplify.
    	scope := NewScope(check.scope, nopos, nopos, "function body (temp. scope)")
    	scopePos := syntax.EndPos(ftyp) // all parameters' scopes start after the signature
    	var recvList []*Var             // TODO(gri) remove the need for making a list here
    	if recvPar != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 21:33:05 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/stmt.go

    			} else {
    				first = c
    			}
    		}
    	}
    }
    
    func (check *Checker) openScope(node syntax.Node, comment string) {
    	check.openScopeUntil(node, syntax.EndPos(node), comment)
    }
    
    func (check *Checker) openScopeUntil(node syntax.Node, end syntax.Pos, comment string) {
    	scope := NewScope(check.scope, node.Pos(), end, comment)
    	check.recordScope(node, scope)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 30.7K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/types2/resolver.go

    		// The package identifier denotes the current package,
    		// but there is no corresponding package object.
    		check.recordDef(file.PkgName, nil)
    
    		fileScope := NewScope(pkg.scope, syntax.StartPos(file), syntax.EndPos(file), check.filename(fileNo))
    		fileScopes = append(fileScopes, fileScope)
    		check.recordScope(file, fileScope)
    
    		// determine file directory, necessary to resolve imports
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 14:10:44 UTC 2024
    - 26.3K bytes
    - Viewed (0)
Back to top