Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for findStructType (0.12 sec)

  1. src/go/types/sizes_test.go

    // This file contains tests for sizes.
    
    package types_test
    
    import (
    	"go/ast"
    	"go/importer"
    	"go/types"
    	"internal/testenv"
    	"testing"
    )
    
    // findStructType typechecks src and returns the first struct type encountered.
    func findStructType(t *testing.T, src string) *types.Struct {
    	return findStructTypeConfig(t, src, &types.Config{})
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 16 21:00:48 UTC 2023
    - 4K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/sizes_test.go

    package types2_test
    
    import (
    	"cmd/compile/internal/syntax"
    	"cmd/compile/internal/types2"
    	"internal/testenv"
    	"testing"
    )
    
    // findStructType typechecks src and returns the first struct type encountered.
    func findStructType(t *testing.T, src string) *types2.Struct {
    	return findStructTypeConfig(t, src, &types2.Config{})
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 16 21:00:48 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/cel/mutation/typeprovider.go

    	return p.underlyingTypeProvider.FindIdent(identName)
    }
    
    // FindStructType returns the Type give a qualified type name, by looking it up with
    // the TypeResolver and translating it to CEL Type.
    // If the type is not known to the TypeResolver, the lookup falls back to the underlying
    // TypeProvider instead.
    func (p *TypeProvider) FindStructType(structType string) (*types.Type, bool) {
    	t, ok := p.typeResolver.Resolve(structType)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 15 21:02:36 UTC 2024
    - 3.7K bytes
    - Viewed (0)
Back to top