Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for addBlock (0.09 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
Back to top