Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for newSection (0.23 sec)

  1. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/polyglot/BuildFileBuilder.groovy

            newSection(new RepositoriesBuilder()) {
                BuilderSupport.applyConfiguration(spec, it)
            }
            this
        }
    
        BuildFileBuilder configurations(@DelegatesTo(value = ConfigurationsBuilder, strategy = Closure.DELEGATE_FIRST) Closure<?> spec) {
            newSection(new ConfigurationsBuilder(configurationNames)) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  2. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/polyglot/MultiSectionHandler.groovy

    import java.util.function.Supplier
    
    abstract class MultiSectionHandler<T> implements SectionBuilder {
        final List<SectionBuilder> sections = []
    
        public <B extends SectionBuilder> B newSection(@DelegatesTo.Target B section, @DelegatesTo(strategy = Closure.DELEGATE_FIRST) Closure<?> spec) {
            sections << section
            BuilderSupport.applyConfiguration(spec, section)
            section
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  3. src/go/printer/nodes.go

    // future (not yet interspersed) comments in this function.
    func (p *printer) linebreak(line, min int, ws whiteSpace, newSection bool) (nbreaks int) {
    	n := max(nlimit(line-p.pos.Line), min)
    	if n > 0 {
    		p.print(ws)
    		if newSection {
    			p.print(formfeed)
    			n--
    			nbreaks = 2
    		}
    		nbreaks += n
    		for ; n > 0; n-- {
    			p.print(newline)
    		}
    	}
    	return
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 17 18:53:17 UTC 2023
    - 52.6K bytes
    - Viewed (0)
  4. src/cmd/link/internal/loader/loader.go

    	if int(i) >= len(l.symSects) {
    		l.symSects = append(l.symSects, make([]uint16, l.NSym()-len(l.symSects))...)
    	}
    	l.symSects[i] = sect.Index
    }
    
    // NewSection creates a new (output) section.
    func (l *Loader) NewSection() *sym.Section {
    	sect := new(sym.Section)
    	idx := len(l.sects)
    	if idx != int(uint16(idx)) {
    		panic("too many sections created")
    	}
    	sect.Index = uint16(idx)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 20:26:10 UTC 2024
    - 81.5K bytes
    - Viewed (0)
  5. src/cmd/link/internal/ld/lib.go

    	ctxt.Shlibs = append(ctxt.Shlibs, Shlib{Path: libpath, Hash: hash, Deps: deps, File: f})
    }
    
    func addsection(ldr *loader.Loader, arch *sys.Arch, seg *sym.Segment, name string, rwx int) *sym.Section {
    	sect := ldr.NewSection()
    	sect.Rwx = uint8(rwx)
    	sect.Name = name
    	sect.Seg = seg
    	sect.Align = int32(arch.PtrSize) // everything is at least pointer-aligned
    	seg.Sections = append(seg.Sections, sect)
    	return sect
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 18:45:27 UTC 2024
    - 88.6K bytes
    - Viewed (0)
  6. scripts/mkdocs_hooks.py

                        new_title = first_child.title or new_title
                # Creating a new section makes it render it collapsed by default
                # no idea why, so, let's just modify the existing one
                # new_section = Section(title=new_title, children=new_children)
                item.title = new_title
                item.children = new_children
                new_items.append(item)
            else:
                new_items.append(item)
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Oct 24 20:26:06 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  7. src/text/template/parse/node.go

    type ActionNode struct {
    	NodeType
    	Pos
    	tr   *Tree
    	Line int       // The line number in the input. Deprecated: Kept for compatibility.
    	Pipe *PipeNode // The pipeline in the action.
    }
    
    func (t *Tree) newAction(pos Pos, line int, pipe *PipeNode) *ActionNode {
    	return &ActionNode{tr: t, NodeType: NodeAction, Pos: pos, Line: line, Pipe: pipe}
    }
    
    func (a *ActionNode) String() string {
    	var sb strings.Builder
    	a.writeTo(&sb)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:57:51 UTC 2024
    - 24.2K bytes
    - Viewed (0)
  8. src/text/template/parse/parse.go

    	case itemTemplate:
    		return t.templateControl()
    	case itemWith:
    		return t.withControl()
    	}
    	t.backup()
    	token := t.peek()
    	// Do not pop variables; they persist until "end".
    	return t.newAction(token.pos, token.line, t.pipeline("command", itemRightDelim))
    }
    
    // Break:
    //
    //	{{break}}
    //
    // Break keyword is past.
    func (t *Tree) breakControl(pos Pos, line int) Node {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:57:51 UTC 2024
    - 21.3K bytes
    - Viewed (0)
Back to top