Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for EndPos (0.07 sec)

  1. src/cmd/compile/internal/types2/expr.go

    		if sig, ok := check.typ(e.Type).(*Signature); ok {
    			// Set the Scope's extent to the complete "func (...) {...}"
    			// so that Scope.Innermost works correctly.
    			sig.scope.pos = e.Pos()
    			sig.scope.end = syntax.EndPos(e)
    			if !check.conf.IgnoreFuncBodies && e.Body != nil {
    				// Anonymous functions are considered part of the
    				// init expression/func declaration which contains
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 51.7K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/api_test.go

    	makePkg("main", mainSrc)
    
    	for e, sel := range selections {
    		_ = sel.String() // assertion: must not panic
    
    		start := indexFor(mainSrc, syntax.StartPos(e))
    		end := indexFor(mainSrc, syntax.EndPos(e))
    		segment := mainSrc[start:end] // (all SelectorExprs are in main, not lib)
    
    		direct := "."
    		if sel.Indirect() {
    			direct = "->"
    		}
    		got := [2]string{
    			sel.String(),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 93.3K bytes
    - Viewed (0)
Back to top