Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for OutermostPos (0.17 sec)

  1. src/cmd/internal/obj/inl.go

    	tree.nodes[inlIndex].ParentPC = pc
    }
    
    // OutermostPos returns the outermost position corresponding to xpos,
    // which is where xpos was ultimately inlined to. In the example for
    // InlTree, main() contains inlined AST nodes from h(), but the
    // outermost position for those nodes is line 2.
    func (ctxt *Link) OutermostPos(xpos src.XPos) src.Pos {
    	pos := ctxt.InnermostPos(xpos)
    
    	outerxpos := xpos
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 22 22:47:15 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  2. src/cmd/internal/obj/util.go

    	"internal/abi"
    	"internal/buildcfg"
    	"io"
    	"strings"
    )
    
    const REG_NONE = 0
    
    // Line returns a string containing the filename and line number for p
    func (p *Prog) Line() string {
    	return p.Ctxt.OutermostPos(p.Pos).Format(false, true)
    }
    func (p *Prog) InnermostLine(w io.Writer) {
    	p.Ctxt.InnermostPos(p.Pos).WriteTo(w, false, true)
    }
    
    // InnermostLineNumber returns a string containing the line number for the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 15:44:14 UTC 2024
    - 17.5K bytes
    - Viewed (0)
Back to top