Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for pragcgobuf (0.12 sec)

  1. src/cmd/compile/internal/noder/lex_test.go

    	}
    
    	var p noder
    	var nopos syntax.Pos
    	for _, tt := range tests {
    
    		p.err = make(chan syntax.Error)
    		gotch := make(chan [][]string, 1)
    		go func() {
    			p.pragcgobuf = nil
    			p.pragcgo(nopos, tt.in)
    			if p.pragcgobuf != nil {
    				gotch <- p.pragcgobuf
    			}
    		}()
    
    		select {
    		case e := <-p.err:
    			want := tt.want[0]
    			if e.Error() != want {
    				t.Errorf("pragcgo(%q) = %q; want %q", tt.in, e, want)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 23 06:39:06 UTC 2020
    - 3.6K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/noder/noder.go

    	}
    	return filename
    }
    
    // noder transforms package syntax's AST into a Node tree.
    type noder struct {
    	file       *syntax.File
    	linknames  []linkname
    	pragcgobuf [][]string
    	err        chan syntax.Error
    }
    
    // linkname records a //go:linkname directive.
    type linkname struct {
    	pos    syntax.Pos
    	local  string
    	remote string
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 11 20:40:57 UTC 2023
    - 12.5K bytes
    - Viewed (0)
Back to top