Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 22 of 22 for inScope (0.08 sec)

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

    		t.Fatal(err)
    	}
    
    	lookup := func(name string) Type { return pkg.Scope().Lookup(name).Type() }
    	fnScope := pkg.Scope().Lookup("fn").(*Func).Scope()
    
    	tests := []struct {
    		name string
    		obj  Object
    	}{
    		// Struct fields
    		{"field", lookup("t").Underlying().(*Struct).Field(0)},
    		{"field", fnScope.Lookup("r").Type().Underlying().(*Struct).Field(0)},
    
    		// Methods and method fields
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 93.3K bytes
    - Viewed (0)
  2. src/go/types/api_test.go

    		t.Fatal(err)
    	}
    
    	lookup := func(name string) Type { return pkg.Scope().Lookup(name).Type() }
    	fnScope := pkg.Scope().Lookup("fn").(*Func).Scope()
    
    	tests := []struct {
    		name string
    		obj  Object
    	}{
    		// Struct fields
    		{"field", lookup("t").Underlying().(*Struct).Field(0)},
    		{"field", fnScope.Lookup("r").Type().Underlying().(*Struct).Field(0)},
    
    		// Methods and method fields
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 94.2K bytes
    - Viewed (0)
Back to top