Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 572 for addLine (0.15 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. src/go/token/position.go

    	infos []lineInfo
    }
    
    // Name returns the file name of file f as registered with AddFile.
    func (f *File) Name() string {
    	return f.name
    }
    
    // Base returns the base offset of file f as registered with AddFile.
    func (f *File) Base() int {
    	return f.base
    }
    
    // Size returns the size of file f as registered with AddFile.
    func (f *File) Size() int {
    	return f.size
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 19.7K bytes
    - Viewed (0)
  7. src/go/scanner/scanner.go

    // s.scanIdentifier.
    func (s *Scanner) next() {
    	if s.rdOffset < len(s.src) {
    		s.offset = s.rdOffset
    		if s.ch == '\n' {
    			s.lineOffset = s.offset
    			s.file.AddLine(s.offset)
    		}
    		r, w := rune(s.src[s.rdOffset]), 1
    		switch {
    		case r == 0:
    			s.error(s.offset, "illegal character NUL")
    		case r >= utf8.RuneSelf:
    			// not ASCII
    			r, w = utf8.DecodeRune(s.src[s.rdOffset:])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 24.3K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/_gen/rulegen.go

    // the value matched by the entire rule.
    
    // If multiple rules match, the first one in file order is selected.
    
    var (
    	genLog  = flag.Bool("log", false, "generate code that logs; for debugging only")
    	addLine = flag.Bool("line", false, "add line number comment to generated rules; for debugging only")
    )
    
    type Rule struct {
    	Rule string
    	Loc  string // file name & line number
    }
    
    func (r Rule) String() string {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Sep 02 22:09:21 UTC 2023
    - 48.7K bytes
    - Viewed (0)
  9. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/rules/VariantFilesMetadataRulesIntegrationTest.groovy

                            withFiles {
                                if (url.empty) {
                                    addFile("\${context.details.id.name}-\${context.details.id.version}\${classifier}.\${type}")
                                } else {
                                    addFile("\${context.details.id.name}-\${context.details.id.version}\${classifier}.\${type}", url)
                                }
                            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 28.1K bytes
    - Viewed (0)
  10. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/ImmutableActionSet.java

        abstract ImmutableActionSet<T> addAll(SetWithManyActions<T> source);
    
        abstract ImmutableActionSet<T> addOne(Action<? super T> action);
    
        private static class EmptySet<T> extends ImmutableActionSet<T> {
            @Override
            ImmutableActionSet<T> addOne(Action<? super T> action) {
                return new SingletonSet<T>(action);
            }
    
            @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 11K bytes
    - Viewed (0)
Back to top