- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 13 for addBlock (0.23 sec)
-
src/cmd/vendor/rsc.io/markdown/para.go
tb := new(paraBuilder) p.addBlock(tb) tb.table = new(tableBuilder) tb.table.start(hdr, text) return line{}, true } if b != nil { for i := p.lineDepth; i < len(p.stack); i++ { p.stack[i].pos.EndLine = p.lineno } } else { // Note: Ends anything without a matching prefix. b = new(paraBuilder) p.addBlock(b) } b.text = append(b.text, text)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 24 13:01:26 UTC 2024 - 2.8K bytes - Viewed (0) -
src/cmd/vendor/rsc.io/markdown/quote.go
return s, false } t.trimSpace(0, 1, true) return t, true } type quoteBuilder struct{} func newQuote(p *parseState, s line) (line, bool) { if line, ok := trimQuote(s); ok { p.addBlock(new(quoteBuilder)) return line, true } return s, false } func (b *quoteBuilder) extend(p *parseState, s line) (line, bool) { return trimQuote(s) } func (b *quoteBuilder) build(p buildState) Block {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 24 13:01:26 UTC 2024 - 1K bytes - Viewed (0) -
src/cmd/vendor/rsc.io/markdown/html.go
} { b := &htmlBuilder{endBlank: true} p.addBlock(b) b.text = append(b.text, s.string()) return true } Next: // case 1 if len(t) > 1 && t[1] != '/' && (i >= len(t) || t[i] == ' ' || t[i] == '\t' || t[i] == '>') { switch string(buf) { case "pre", "script", "style", "textarea": b := &htmlBuilder{endFunc: hasEndPre} p.addBlock(b) b.text = append(b.text, s.string())
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 24 13:01:26 UTC 2024 - 11.9K bytes - Viewed (0) -
src/cmd/vendor/rsc.io/markdown/code.go
func newPre(p *parseState, s line) (line, bool) { peek2 := s if p.para() == nil && peek2.trimSpace(4, 4, false) && !peek2.isBlank() { b := &preBuilder{ /*indent: strings.TrimSuffix(s.string(), peek2.string())*/ } p.addBlock(b) p.corner = p.corner || peek2.nl != '\n' // goldmark does not normalize to \n b.text = append(b.text, peek2.string()) return line{}, true } return s, false }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 24 13:01:26 UTC 2024 - 4.8K bytes - Viewed (0) -
src/cmd/vendor/rsc.io/markdown/list.go
// See testdata/extra.txt 117.md. p.corner = true return false } list = &listBuilder{bullet: rune(bullet), num: num} p.addBlock(list) } b := &itemBuilder{list: list, width: n, haveContent: !t.isBlank()} list.todo = func() line { p.addBlock(b) list.item = b return t } return true } // GitHub task list extension func (p *parseState) taskList(list *List) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 24 13:01:26 UTC 2024 - 7.2K bytes - Viewed (0) -
src/cmd/vendor/rsc.io/markdown/parse.go
var ps parseState ps.Parser = p if strings.Contains(text, "\x00") { text = strings.ReplaceAll(text, "\x00", "\uFFFD") ps.corner = true // goldmark does not replace NUL } ps.lineDepth = -1 ps.addBlock(&rootBuilder{}) for text != "" { var ln string i := strings.Index(text, "\n") j := strings.Index(text, "\r") var nl byte switch { case j >= 0 && (i < 0 || j < i): // have \r, maybe \r\n
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 24 13:01:26 UTC 2024 - 13.8K bytes - Viewed (0) -
src/internal/runtime/atomic/atomic_arm.go
var r uint64 addrLock(addr).lock() r = *addr + uint64(delta) *addr = r addrLock(addr).unlock() return r } //go:nosplit func goXchg64(addr *uint64, v uint64) uint64 { if uintptr(unsafe.Pointer(addr))&7 != 0 { *(*int)(nil) = 0 // crash on unaligned uint64 } _ = *addr // if nil, fault before taking the lock var r uint64 addrLock(addr).lock() r = *addr *addr = v
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 19:57:43 UTC 2024 - 4.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/python/mlir_wrapper/basic_classes.cc
}); py::class_<mlir::Region>(m, "Region") .def("back", &mlir::Region::back, py::return_value_policy::reference) .def("front", &mlir::Region::front, py::return_value_policy::reference) .def("add_block", [](mlir::Region& r) { r.push_back(new mlir::Block); }) .def("push_back", &mlir::Region::push_back) .def("size", [](mlir::Region& r) { return r.getBlocks().size(); })
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Jan 22 04:26:07 UTC 2022 - 2.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/python/mlir_wrapper/mlir_wrapper.pyi
class RankedTensorType(Type): def __init__(self, *args, **kwargs) -> None: ... def get(self, arg0: Type) -> RankedTensorType: ... class Region: def __init__(self, *args, **kwargs) -> None: ... def add_block(self) -> None: ... def back(self, *args, **kwargs) -> Any: ... def front(self, *args, **kwargs) -> Any: ... def push_back(self, arg0) -> None: ... def size(self) -> int: ... class ReturnOp:
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Oct 09 17:10:09 UTC 2023 - 6.7K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/_gen/AMD64.rules
// TODO: merging LEAQ doesn't work, assembler doesn't like the resulting instructions. (XADDQlock [off1] {sym} val (ADDQconst [off2] ptr) mem) && is32Bit(int64(off1)+int64(off2)) => (XADDQlock [off1+off2] {sym} val ptr mem) (XADDLlock [off1] {sym} val (ADDQconst [off2] ptr) mem) && is32Bit(int64(off1)+int64(off2)) => (XADDLlock [off1+off2] {sym} val ptr mem) // Merge ADDQconst into atomic compare and swaps.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 12 19:38:41 UTC 2024 - 93.9K bytes - Viewed (0)