Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for fmtNode (2.77 sec)

  1. src/cmd/compile/internal/ir/mini.go

    // must at the least provide:
    //
    //	func (n *MyNode) String() string { return fmt.Sprint(n) }
    //	func (n *MyNode) rawCopy() Node { c := *n; return &c }
    //	func (n *MyNode) Format(s fmt.State, verb rune) { FmtNode(n, s, verb) }
    //
    // The embedding struct should also fill in n.op in its constructor,
    // for more useful panic messages when invalid methods are called,
    // instead of implementing Op itself.
    type miniNode struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 31 22:09:44 UTC 2022
    - 2.8K bytes
    - Viewed (0)
  2. src/encoding/xml/typeinfo.go

    		valid := true
    		switch mode := finfo.flags & fMode; mode {
    		case 0:
    			finfo.flags |= fElement
    		case fAttr, fCDATA, fCharData, fInnerXML, fComment, fAny, fAny | fAttr:
    			if f.Name == xmlName || tag != "" && mode != fAttr {
    				valid = false
    			}
    		default:
    			// This will also catch multiple modes in a single field.
    			valid = false
    		}
    		if finfo.flags&fMode == fAny {
    			finfo.flags |= fElement
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 07 00:23:29 UTC 2023
    - 9.6K bytes
    - Viewed (0)
Back to top