- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 16 for addLine_ (0.23 sec)
-
subprojects/core/src/testFixtures/groovy/org/gradle/process/ShellScript.groovy
@Override Builder printArguments() { return addLine('echo "$*"') } @Override Builder printText(String text) { return addLine("echo '$text'") } @Override Builder printEnvironmentVariable(String variableName) { return addLine("echo $variableName=\$$variableName") } @Override
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sun May 12 10:33:12 UTC 2024 - 8.4K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/swagger_doc_generator.go
b.addLine(s, indent) } func writeFuncFooter(b *buffer, structName string, indent int) { b.addLine("}\n", indent) // Closes the map definition s := fmt.Sprintf("func (%s) SwaggerDoc() map[string]string {\n", structName) b.addLine(s, indent) s = fmt.Sprintf("return map_%s\n", structName) b.addLine(s, indent+1) b.addLine("}\n", indent) // Closes the function definition }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Aug 03 07:33:58 UTC 2017 - 7K bytes - Viewed (0) -
src/go/token/position_test.go
for i, offset := range test.lines { f.AddLine(offset) if f.LineCount() != i+1 { t.Errorf("%s, AddLine: got line count %d; want %d", f.Name(), f.LineCount(), i+1) } // adding the same offset again should be ignored f.AddLine(offset) if f.LineCount() != i+1 { t.Errorf("%s, AddLine: got unchanged line count %d; want %d", f.Name(), f.LineCount(), i+1) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 31 20:26:14 UTC 2024 - 14.3K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/build/relnote/relnote.go
// It panics if the document has no blocks. func lastBlock(doc *md.Document) md.Block { return doc.Blocks[len(doc.Blocks)-1] } // addLines adds n lines to the position of b. // n can be negative. func addLines(b md.Block, n int) { pos := position(b) pos.StartLine += n pos.EndLine += n } func position(b md.Block) *md.Position { switch b := b.(type) {
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/cmd/vendor/golang.org/x/mod/modfile/rule.go
return err } r := &Retract{ VersionInterval: vi, } if vi.Low == vi.High { r.Syntax = f.Syntax.addLine(nil, "retract", AutoQuote(vi.Low)) } else { r.Syntax = f.Syntax.addLine(nil, "retract", "[", AutoQuote(vi.Low), ",", AutoQuote(vi.High), "]") } if rationale != "" { for _, line := range strings.Split(rationale, "\n") {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 14 18:34:56 UTC 2024 - 46.5K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/mod/modfile/work.go
} // addNewGodebug adds a new godebug key=value line at the end // of the last godebug block, regardless of any existing godebug lines for key. func (f *WorkFile) addNewGodebug(key, value string) { line := f.Syntax.addLine(nil, "godebug", key+"="+value) g := &Godebug{ Key: key, Value: value, Syntax: line, } f.Godebug = append(f.Godebug, g) } func (f *WorkFile) DropGodebug(key string) error {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 14 18:34:56 UTC 2024 - 7.7K bytes - Viewed (0) -
src/go/token/serialize_test.go
f := p.AddFile(fmt.Sprintf("file%d", i), p.Base()+i, i*100) checkSerialize(t, p) // add some lines and alternative file infos line := 1000 for offs := 0; offs < f.Size(); offs += 40 + i { f.AddLine(offs) if offs%7 == 0 { f.AddLineInfo(offs, fmt.Sprintf("file%d", offs), line) line += 33 } } checkSerialize(t, p) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 17 15:02:55 UTC 2022 - 2.5K bytes - Viewed (0) -
src/text/tabwriter/tabwriter.go
widths []int // list of column widths in runes - re-used during formatting } // addLine adds a new line. // flushed is a hint indicating whether the underlying writer was just flushed. // If so, the previous line is not likely to be a good indicator of the new line's cells. func (b *Writer) addLine(flushed bool) { // Grow slice instead of appending, // as that gives us an opportunity
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 29 16:46:34 UTC 2024 - 17.8K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/mod/modfile/read.go
// the new line is added after the block containing hint // (or hint itself, if not in a block). // // If no hint is provided, addLine appends the line to the end of // the last block with a matching first token, // or to the end of the file if no such block exists. func (x *FileSyntax) addLine(hint Expr, tokens ...string) *Line { if hint == nil { // If no hint given, add to the last statement of the given type. Loop:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 02:38:00 UTC 2024 - 23.1K bytes - Viewed (0) -
src/cmd/vendor/rsc.io/markdown/parse.go
} else { text = text[j+1:] nl = '\r' } case i >= 0: ln, text = text[:i], text[i+1:] nl = '\n' default: ln, text = text, "" } ps.lineno++ ps.addLine(line{text: ln, nl: nl}) } ps.trimStack(0) for _, t := range ps.texts { t.Inline = ps.inline(t.raw) } if p.TaskListItems { for _, list := range ps.lists { ps.taskList(list) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 24 13:01:26 UTC 2024 - 13.8K bytes - Viewed (0)