Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for FmtNode (0.12 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/cmd/compile/internal/ir/fmt.go

    		}
    		io.WriteString(s, o.GoString())
    	}
    }
    
    // Node
    
    // fmtNode implements formatting for a Node n.
    // Every Node implementation must define a Format method that calls fmtNode.
    // The valid formats are:
    //
    //	%v	Go syntax
    //	%L	Go syntax followed by " (type T)" if type is known.
    //	%+v	Debug syntax, as in Dump.
    func fmtNode(n Node, s fmt.State, verb rune) {
    	// %+v prints Dump.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 05 15:20:28 UTC 2023
    - 26K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types/fmt.go

    var NumImport = make(map[string]int)
    
    // fmtMode represents the kind of printing being done.
    // The default is regular Go syntax (fmtGo).
    // fmtDebug is like fmtGo but for debugging dumps and prints the type kind too.
    // fmtTypeID and fmtTypeIDName are for generating various unique representations
    // of types used in hashes, the linker, and function/method instantiations.
    type fmtMode int
    
    const (
    	fmtGo fmtMode = iota
    	fmtDebug
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 12 15:41:17 UTC 2023
    - 15.7K bytes
    - Viewed (0)
Back to top