Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 127 for lineAt (0.14 sec)

  1. src/go/ast/import.go

    		d.Specs = specs
    
    		// Deduping can leave a blank line before the rparen; clean that up.
    		if len(d.Specs) > 0 {
    			lastSpec := d.Specs[len(d.Specs)-1]
    			lastLine := lineAt(fset, lastSpec.Pos())
    			rParenLine := lineAt(fset, d.Rparen)
    			for rParenLine > lastLine+1 {
    				rParenLine--
    				fset.File(d.Rparen).MergeLine(rParenLine)
    			}
    		}
    	}
    }
    
    func lineAt(fset *token.FileSet, pos token.Pos) int {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  2. src/go/printer/gobuild.go

    		block = append(block, tabwriter.Escape, '\n')
    		if len(p.plusBuild) > 0 {
    			lines, err := constraint.PlusBuildLines(x)
    			if err != nil {
    				lines = []string{"// +build error: " + err.Error()}
    			}
    			for _, line := range lines {
    				block = append(block, tabwriter.Escape)
    				block = append(block, line...)
    				block = append(block, tabwriter.Escape, '\n')
    			}
    		}
    	}
    	block = append(block, '\n')
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  3. src/go/printer/printer_test.go

    // before empty lines.
    func TestIssue5945(t *testing.T) {
    	const orig = `
    package p   // line 2
    func f() {} // line 3
    
    var x, y, z int
    
    
    func g() { // line 8
    }
    `
    
    	const want = `//line src.go:2
    package p
    
    //line src.go:3
    func f() {}
    
    var x, y, z int
    
    //line src.go:8
    func g() {
    }
    `
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 03 14:56:25 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  4. scripts/lint.sh

    Sebastián Ramírez <******@****.***> 1714435394 -0700
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Apr 30 00:03:14 UTC 2024
    - 125 bytes
    - Viewed (0)
  5. testing/internal-performance-testing/src/main/groovy/org/gradle/performance/results/report/Line.java

    import java.util.Arrays;
    import java.util.List;
    import java.util.stream.Collectors;
    import java.util.stream.IntStream;
    
    public class Line {
        String label;
        List<List<Number>> data;
    
        public Line(MeasuredOperationList measuredOperations) {
            List<Double> points = measuredOperations.getTotalTime().asDoubleList();
            this.label = measuredOperations.getName();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  6. src/regexp/exec_test.go

    		case 'A' <= line[0] && line[0] <= 'Z':
    			// Test name.
    			t.Logf("%s\n", line)
    			continue
    		case line == "strings":
    			str = str[:0]
    			inStrings = true
    		case line == "regexps":
    			inStrings = false
    		case line[0] == '"':
    			q, err := strconv.Unquote(line)
    			if err != nil {
    				// Fatal because we'll get out of sync.
    				t.Fatalf("%s:%d: unquote %s: %v", file, lineno, line, err)
    			}
    			if inStrings {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:36:03 UTC 2024
    - 20.7K bytes
    - Viewed (0)
  7. docs/metrics/prometheus/grafana/replication/minio-replication-node.json

                "barAlignment": 0,
                "drawStyle": "line",
                "fillOpacity": 10,
                "gradientMode": "none",
                "hideFrom": {
                  "legend": false,
                  "tooltip": false,
                  "viz": false
                },
                "insertNulls": false,
                "lineInterpolation": "linear",
                "lineWidth": 1,
                "pointSize": 5,
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 22:26:54 UTC 2024
    - 57.4K bytes
    - Viewed (0)
  8. docs/metrics/prometheus/grafana/replication/minio-replication-cluster.json

                "barAlignment": 0,
                "drawStyle": "line",
                "fillOpacity": 10,
                "gradientMode": "none",
                "hideFrom": {
                  "legend": false,
                  "tooltip": false,
                  "viz": false
                },
                "insertNulls": false,
                "lineInterpolation": "linear",
                "lineWidth": 1,
                "pointSize": 5,
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Mar 28 17:15:39 UTC 2024
    - 71.1K bytes
    - Viewed (0)
  9. platforms/software/testing-base-infrastructure/src/test/groovy/org/gradle/api/internal/tasks/testing/redirector/JULRedirectorTest.groovy

                    'handlers = java.util.logging.ConsoleHandler' + EOL +
                    '.level = FINEST' + EOL +
                    'java.util.logging.ConsoleHandler.formatter = ' + DummyFormatter.class.name + EOL +
                    'java.util.logging.ConsoleHandler.level = FINEST' + EOL +
                    'hello.level = INFO' + EOL +
                    'hello.world.level = FINER' + EOL))
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 15:59:04 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  10. tensorflow/cc/framework/scope.h

    ///     Scope linear = root.NewSubScope("linear");
    ///     // W will be named "linear/W"
    ///     auto W = Variable(linear.WithOpName("W"),
    ///                       {2, 2}, DT_FLOAT);
    ///     // b will be named "linear/b_3"
    ///     int idx = 3;
    ///     auto b = Variable(linear.WithOpName("b_", idx),
    ///                       {2}, DT_FLOAT);
    ///     auto x = Const(linear, {...});  // name: "linear/Const"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 13 09:08:33 UTC 2024
    - 10.5K bytes
    - Viewed (0)
Back to top