Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 116 for comments (0.31 sec)

  1. src/cmd/asm/internal/asm/endtoend_test.go

    		//	// comment
    		//	INST args [// printed form] [// hex encoding]
    		parts := strings.Split(line, "//")
    		printed := strings.TrimSpace(parts[0])
    		if printed == "" || strings.HasSuffix(printed, ":") { // empty or label
    			continue
    		}
    		seq++
    
    		var hexes string
    		switch len(parts) {
    		default:
    			t.Errorf("%s:%d: unable to understand comments: %s", input, lineno, line)
    		case 1:
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Dec 07 18:42:59 GMT 2023
    - 11.6K bytes
    - Viewed (0)
  2. src/cmd/asm/internal/asm/parse.go

    	}
    	return p.errorCount == 0
    }
    
    // nextToken returns the next non-build-comment token from the lexer.
    // It reports misplaced //go:build comments but otherwise discards them.
    func (p *Parser) nextToken() lex.ScanToken {
    	for {
    		tok := p.lex.Next()
    		if tok == lex.BuildComment {
    			if p.sawCode {
    				p.errorf("misplaced //go:build comment")
    			}
    			continue
    		}
    		if tok != '\n' {
    			p.sawCode = true
    		}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Feb 21 14:34:57 GMT 2024
    - 36.9K bytes
    - Viewed (0)
  3. internal/s3select/csv/args.go

    	FieldDelimiter             string `xml:"FieldDelimiter"`
    	QuoteCharacter             string `xml:"QuoteCharacter"`
    	QuoteEscapeCharacter       string `xml:"QuoteEscapeCharacter"`
    	CommentCharacter           string `xml:"Comments"`
    	AllowQuotedRecordDelimiter bool   `xml:"AllowQuotedRecordDelimiter"`
    	unmarshaled                bool
    }
    
    // IsEmpty - returns whether reader args is empty or not.
    func (args *ReaderArgs) IsEmpty() bool {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Mar 06 16:56:10 GMT 2023
    - 5.4K bytes
    - Viewed (0)
  4. src/cmd/cgo/ast.go

    	var pieces []string
    	for _, com := range g.List {
    		c := com.Text
    		// Remove comment markers.
    		// The parser has given us exactly the comment text.
    		switch c[1] {
    		case '/':
    			//-style comment (no newline at the end)
    			c = c[2:] + "\n"
    		case '*':
    			/*-style comment */
    			c = c[2 : len(c)-2]
    		}
    		pieces = append(pieces, c)
    	}
    	return strings.Join(pieces, "")
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jun 07 16:54:27 GMT 2023
    - 14.3K bytes
    - Viewed (0)
  5. cni/pkg/ipset/nldeps_linux.go

    	if ipsetErr, ok := err.(nl.IPSetError); ok && ipsetErr == nl.IPSET_ERR_EXIST {
    		return nil
    	}
    
    	return err
    }
    
    func (m *realDeps) destroySet(name string) error {
    	err := netlink.IpsetDestroy(name)
    	return err
    }
    
    func (m *realDeps) addIP(name string, ip netip.Addr, ipProto uint8, comment string, replace bool) error {
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Tue Apr 30 22:24:38 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  6. src/cmd/asm/internal/lex/tokenizer.go

    func NewTokenizer(name string, r io.Reader, file *os.File) *Tokenizer {
    	var s scanner.Scanner
    	s.Init(r)
    	// Newline is like a semicolon; other space characters are fine.
    	s.Whitespace = 1<<'\t' | 1<<'\r' | 1<<' '
    	// Don't skip comments: we need to count newlines.
    	s.Mode = scanner.ScanChars |
    		scanner.ScanFloats |
    		scanner.ScanIdents |
    		scanner.ScanInts |
    		scanner.ScanStrings |
    		scanner.ScanComments
    	s.Position.Filename = name
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Aug 04 20:35:21 GMT 2022
    - 3K bytes
    - Viewed (0)
  7. src/cmd/cgo/godefs.go

    	//	// +godefs map struct_in_addr6 [16]byte
    	//
    	for _, g := range f.Comments {
    		for _, c := range g.List {
    			i := strings.Index(c.Text, "+godefs map")
    			if i < 0 {
    				continue
    			}
    			s := strings.TrimSpace(c.Text[i+len("+godefs map"):])
    			i = strings.Index(s, " ")
    			if i < 0 {
    				fmt.Fprintf(os.Stderr, "invalid +godefs map comment: %s\n", c.Text)
    				continue
    			}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Sep 08 14:33:35 GMT 2022
    - 4.5K bytes
    - Viewed (0)
  8. cni/pkg/repair/netns.go

    // * /var/lib/cni/results shows the outputs of CNI plugins; this containers the bind-mounted network namespace file.
    //
    // Instead, we traverse the procfs. Comments on this method are inline.
    func getPodNetNs(pod *corev1.Pod) (string, error) {
    	// First, find the network namespace id by looking the interface with the given Pod IP.
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Wed Dec 20 22:14:13 GMT 2023
    - 4.8K bytes
    - Viewed (0)
  9. migrator.go

    	Option() string
    }
    
    // TableType table type interface
    type TableType interface {
    	Schema() string
    	Name() string
    	Type() string
    	Comment() (comment string, ok bool)
    }
    
    // Migrator migrator interface
    type Migrator interface {
    	// AutoMigrate
    	AutoMigrate(dst ...interface{}) error
    
    	// Database
    	CurrentDatabase() string
    	FullDataTypeOf(*schema.Field) clause.Expr
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Oct 30 09:15:49 GMT 2023
    - 3.1K bytes
    - Viewed (0)
  10. migrator/column_type.go

    func (ct ColumnType) ScanType() reflect.Type {
    	if ct.ScanTypeValue != nil {
    		return ct.ScanTypeValue
    	}
    	return ct.SQLColumnType.ScanType()
    }
    
    // Comment returns the comment of current column.
    func (ct ColumnType) Comment() (value string, ok bool) {
    	return ct.CommentValue.String, ct.CommentValue.Valid
    }
    
    // DefaultValue returns the default value of current column.
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Thu Mar 24 01:31:58 GMT 2022
    - 3.3K bytes
    - Viewed (0)
Back to top