Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 293 for COMMENT (0.16 sec)

  1. pkg/util/coverage/fake_test_deps.go

    //nolint:unused // U1000 see comment above, we know it's unused normally.
    func (fakeTestDeps) StartCPUProfile(io.Writer) error {
    	return nil
    }
    
    //nolint:unused // U1000 see comment above, we know it's unused normally.
    func (fakeTestDeps) StopCPUProfile() {}
    
    //nolint:unused // U1000 see comment above, we know it's unused normally.
    func (fakeTestDeps) StartTestLog(io.Writer) {}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 15:31:22 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  2. src/go/ast/commentmap.go

    	// })
    
    	return list
    }
    
    // A commentListReader helps iterating through a list of comment groups.
    type commentListReader struct {
    	fset     *token.FileSet
    	list     []*CommentGroup
    	index    int
    	comment  *CommentGroup  // comment group at current index
    	pos, end token.Position // source interval of comment group at current index
    }
    
    func (r *commentListReader) eol() bool {
    	return r.index >= len(r.list)
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  3. src/encoding/csv/fuzz_test.go

    			{Comma: ',', Comment: '#'},
    			{Comma: ',', Comment: ';'},
    		} {
    			t.Logf("With options:")
    			t.Logf("  Comma            = %q", tt.Comma)
    			t.Logf("  LazyQuotes       = %t", tt.LazyQuotes)
    			t.Logf("  TrimLeadingSpace = %t", tt.TrimLeadingSpace)
    			t.Logf("  Comment          = %q", tt.Comment)
    			r := NewReader(bytes.NewReader(in))
    			r.Comma = tt.Comma
    			r.Comment = tt.Comment
    			r.LazyQuotes = tt.LazyQuotes
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 05 01:26:13 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  4. pkg/proxy/iptables/proxier_test.go

    				-A KUBE-SVC-XPGD46QRK7WJZT7O -m comment --comment ns1/svc1:p80 -j KUBE-SEP-SXIVWICOYRO3J4NJ
    				-A KUBE-SEP-SXIVWICOYRO3J4NJ -m comment --comment ns1/svc1:p80 -s 10.180.0.1 -j KUBE-MARK-MASQ
    				-A KUBE-SEP-SXIVWICOYRO3J4NJ -m comment --comment ns1/svc1:p80 -m tcp -p tcp -j DNAT --to-destination 10.180.0.1:80
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 21 14:39:54 UTC 2024
    - 249.9K bytes
    - Viewed (0)
  5. src/go/ast/example_test.go

    // in a Go program while maintaining correct comment association
    // using an ast.CommentMap.
    func ExampleCommentMap() {
    	// src is the input for which we create the AST that we
    	// are going to manipulate.
    	src := `
    // This is the package comment.
    package main
    
    // This comment is associated with the hello constant.
    const hello = "Hello, World!" // line comment 1
    
    // This comment is associated with the foo variable.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 21:44:50 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  6. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/util/PropertiesUtils.java

         * <ul>
         *     <li>provided comment</li>
         *     <li>line separator {@literal '\n'}</li>
         *     <li>charset ISO-8859-1</li>
         * </ul>
         */
        public static void store(Properties properties, File propertyFile, @Nullable String comment) throws IOException {
            store(properties, propertyFile, comment, Charsets.ISO_8859_1, "\n");
        }
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 14:17:21 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  7. src/go/ast/import.go

    				if g.left {
    					c.Slash = pos[i].Start - 1
    				} else {
    					// An import spec can have both block comment and a line comment
    					// to its right. In that case, both of them will have the same pos.
    					// But while formatting the AST, the line comment gets moved to
    					// after the block comment.
    					c.Slash = pos[i].End
    				}
    			}
    		}
    	}
    
    	slices.SortFunc(comments, func(a, b *CommentGroup) 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)
  8. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/buildtag/buildtag_old.go

    		if fields[0] != "+build" {
    			// Comment is something like +buildasdf not +build.
    			return fmt.Errorf("possible malformed +build comment")
    		}
    		if pastCutoff {
    			return fmt.Errorf("+build comment must appear before package clause and be followed by a blank line")
    		}
    		if err := checkArguments(fields); err != nil {
    			return err
    		}
    	} else {
    		// Comment with +build but not at beginning.
    		if !pastCutoff {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/buildtag/buildtag.go

    		// A +build comment is ignored after or adjoining the package declaration.
    		if group.End()+1 >= f.Package {
    			check.plusBuildOK = false
    		}
    		// A //go:build comment is ignored after the package declaration
    		// (but adjoining it is OK, in contrast to +build comments).
    		if group.Pos() >= f.Package {
    			check.goBuildOK = false
    		}
    
    		// Check each line of a //-comment.
    		for _, c := range group.List {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  10. cni/pkg/ipset/ipset.go

    	}
    	return err
    }
    
    func (m *IPSet) AddIP(ip netip.Addr, ipProto uint8, comment string, replace bool) error {
    	ipToInsert := ip.Unmap()
    
    	// We have already Unmap'd, so we can do a simple IsV6 y/n check now
    	if ipToInsert.Is6() {
    		return m.Deps.addIP(m.V6Name, ipToInsert, ipProto, comment, replace)
    	}
    	return m.Deps.addIP(m.V4Name, ipToInsert, ipProto, comment, replace)
    }
    
    func (m *IPSet) DeleteIP(ip netip.Addr, ipProto uint8) error {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 22:24:38 UTC 2024
    - 3.9K bytes
    - Viewed (0)
Back to top