Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for RelFilename (0.25 sec)

  1. src/cmd/internal/src/pos.go

    func (p Pos) Filename() string { return p.base.Pos().RelFilename() }
    
    // Base returns the position base.
    func (p Pos) Base() *PosBase { return p.base }
    
    // SetBase sets the position base.
    func (p *Pos) SetBase(base *PosBase) { p.base = base }
    
    // RelFilename returns the filename recorded with the position's base.
    func (p Pos) RelFilename() string { return p.base.Filename() }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 01 15:52:41 UTC 2023
    - 15.5K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/resolver.go

    	file := check.files[fileNo]
    	if pos := file.Pos(); pos.IsKnown() {
    		// return check.fset.File(pos).Name()
    		// TODO(gri) do we need the actual file name here?
    		return pos.RelFilename()
    	}
    	return fmt.Sprintf("file[%d]", fileNo)
    }
    
    func (check *Checker) importPackage(pos syntax.Pos, path, dir string) *Package {
    	// If we already have a package for the given (path, dir)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 14:10:44 UTC 2024
    - 26.3K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/syntax/parser_test.go

    			continue
    		}
    		if msg := perr.Msg; msg != test.msg {
    			t.Errorf("%s: got msg = %q; want %q", test.src, msg, test.msg)
    		}
    
    		pos := perr.Pos
    		if filename := pos.RelFilename(); filename != test.filename {
    			t.Errorf("%s: got filename = %q; want %q", test.src, filename, test.filename)
    		}
    		if line := pos.RelLine(); line != test.line {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 14 16:30:19 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/dwarfgen/dwinl.go

    	dcl := preInliningDcls(fnsym)
    	m := make(map[varPos]int)
    	for i, n := range dcl {
    		pos := base.Ctxt.InnermostPos(n.Pos())
    		vp := varPos{
    			DeclName: n.Sym().Name,
    			DeclFile: pos.RelFilename(),
    			DeclLine: pos.RelLine(),
    			DeclCol:  pos.RelCol(),
    		}
    		if _, found := m[vp]; found {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:45:07 UTC 2024
    - 12.8K bytes
    - Viewed (0)
Back to top