- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 30 for StartLine (0.34 sec)
-
src/cmd/go/internal/modindex/build_read.go
// at the end of a line. startLine := !first var c byte for r.err == nil && !r.eof { c = r.readByteNoBuf() Reswitch: switch c { default: startLine = false case '\n': startLine = true case ' ', '\t': // leave startLine alone case '"': startLine = false for r.err == nil { if r.eof { r.syntaxError()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 23 10:10:21 UTC 2023 - 13K bytes - Viewed (0) -
src/go/build/read.go
// at the end of a line. startLine := !first var c byte for r.err == nil && !r.eof { c = r.readByteNoBuf() Reswitch: switch c { default: startLine = false case '\n': startLine = true case ' ', '\t': // leave startLine alone case '"': startLine = false for r.err == nil { if r.eof { r.syntaxError()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 16:25:21 UTC 2024 - 14.1K bytes - Viewed (0) -
platforms/core-runtime/logging/src/integTest/groovy/org/gradle/internal/logging/LoggingIntegrationTest.groovy
} } void assertHasPrefix(String pattern) { int startLine = actual.lastIndexOf('\n', index) if (startLine < 0) { startLine = 0 } else { startLine += 1 } String actualPrefix = actual.substring(startLine, index)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:05:18 UTC 2023 - 15.6K bytes - Viewed (0) -
src/text/template/parse/lex.go
// thisItem returns the item at the current input point with the specified type // and advances the input. func (l *lexer) thisItem(t itemType) item { i := item{t, l.start, l.input[l.start:l.pos], l.startLine} l.start = l.pos l.startLine = l.line return i } // emit passes the trailing text as an item back to the parser. func (l *lexer) emit(t itemType) stateFn { return l.emitItem(l.thisItem(t)) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Nov 04 22:36:12 UTC 2022 - 18.1K bytes - Viewed (0) -
src/encoding/csv/reader.go
type ParseError struct { StartLine int // Line where the record starts Line int // Line where the error occurred Column int // Column (1-based byte index) where the error occurred Err error // The actual error } func (e *ParseError) Error() string { if e.Err == ErrFieldCount { return fmt.Sprintf("record on line %d: %v", e.Line, e.Err) } if e.StartLine != e.Line {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 13 21:32:28 UTC 2024 - 14.2K bytes - Viewed (0) -
src/runtime/symtab.go
return file, int(line32) } // startLine returns the starting line number of the function. i.e., the line // number of the func keyword. func (f *Func) startLine() int32 { fn := f.raw() if fn.isInlined() { // inlined version fi := (*funcinl)(unsafe.Pointer(fn)) return fi.startLine } return fn.funcInfo().startLine } // findmoduledatap looks up the moduledata for a PC. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 40K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/build/relnote/relnote.go
prevPkg = pkg // Put a blank line between the current and new blocks, so that the end // of a file acts as a blank line. lastLine := lastBlock(doc).Pos().EndLine delta := lastLine + 2 - newdoc.Blocks[0].Pos().StartLine for _, b := range newdoc.Blocks { addLines(b, delta) } } // Append non-empty blocks to the result document. for _, b := range newdoc.Blocks { if _, ok := b.(*md.Empty); !ok {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 16:19:04 UTC 2024 - 12.7K bytes - Viewed (0) -
src/internal/profile/merge.go
SystemName: src.SystemName, Filename: src.Filename, StartLine: src.StartLine, } pm.functions[k] = f pm.functionsByID[src.ID] = f pm.p.Function = append(pm.p.Function, f) return f } // key generates a struct to be used as a key for maps. func (f *Function) key() functionKey { return functionKey{ f.StartLine, f.Name, f.SystemName, f.Filename, } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 17 19:35:56 UTC 2020 - 11.3K bytes - Viewed (0) -
src/cmd/internal/obj/plist.go
} // startLine should be the same line number that would be displayed via // pcln, etc for the declaration (i.e., relative line number, as // adjusted by //line). _, startLine := ctxt.getFileIndexAndLine(start) s.Func().FuncID = objabi.GetFuncID(s.Name, flag&WRAPPER != 0 || flag&ABIWRAPPER != 0) s.Func().FuncFlag = ctxt.toFuncFlag(flag) s.Func().StartLine = startLine s.Set(AttrOnList, true)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 01 15:52:41 UTC 2023 - 11.5K bytes - Viewed (0) -
src/cmd/link/internal/ld/pcln.go
if !ok { panic("couldn't find function name offset") } inlFunc := ldr.FuncInfo(call.Func) var funcID abi.FuncID startLine := int32(0) if inlFunc.Valid() { funcID = inlFunc.FuncID() startLine = inlFunc.StartLine() } else if !ctxt.linkShared { // Inlined functions are always Go functions, and thus // must have FuncInfo. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 21 22:16:54 UTC 2024 - 29.6K bytes - Viewed (0)