Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 38 for typecheck (0.15 sec)

  1. src/cmd/compile/internal/ssa/func.go

    // license that can be found in the LICENSE file.
    
    package ssa
    
    import (
    	"cmd/compile/internal/abi"
    	"cmd/compile/internal/base"
    	"cmd/compile/internal/ir"
    	"cmd/compile/internal/typecheck"
    	"cmd/compile/internal/types"
    	"cmd/internal/obj"
    	"cmd/internal/src"
    	"fmt"
    	"math"
    	"strings"
    )
    
    // A Func represents a Go func declaration (or function literal) and its body.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 19:44:43 UTC 2024
    - 25.8K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types/size.go

    // If CalcSizeDisabled is set, and the size/alignment
    // have not already been calculated, it calls Fatal.
    // This is used to prevent data races in the back end.
    func CalcSize(t *Type) {
    	// Calling CalcSize when typecheck tracing enabled is not safe.
    	// See issue #33658.
    	if base.EnableTrace && SkipSizeForTracing {
    		return
    	}
    	if PtrSize == 0 {
    		// Assume this is a test.
    		return
    	}
    
    	if t == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 15K bytes
    - Viewed (0)
  3. build/root/Makefile

    #
    # Args:
    #   BRANCH: Branch to be passed to verify-vendor.sh script.
    #   WHAT: List of checks to run
    #
    # Example:
    #   make verify
    #   make verify BRANCH=branch_x
    #   make verify WHAT="gofmt typecheck"
    endef
    .PHONY: verify
    ifeq ($(PRINT_HELP),y)
    verify:
    	echo "$$VERIFY_HELP_INFO"
    else ifeq ($(origin KUBE_VERIFY_GIT_BRANCH), undefined)
    verify:
    	KUBE_VERIFY_GIT_BRANCH=$(BRANCH) hack/make-rules/verify.sh
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jun 01 16:43:08 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/rangefunc/rewrite.go

    	if rfunc.Params().Len() != 1 {
    		base.Fatalf("invalid typecheck of range func")
    	}
    	ftyp := types2.CoreType(rfunc.Params().At(0).Type()).(*types2.Signature) // func(...) bool
    	if ftyp.Results().Len() != 1 {
    		base.Fatalf("invalid typecheck of range func")
    	}
    
    	// Build X(bodyFunc)
    	call := &syntax.ExprStmt{
    		X: &syntax.CallExpr{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:05:44 UTC 2024
    - 41.6K bytes
    - Viewed (0)
  5. pkg/config/validation/envoyfilter/envoyfilter.go

    	}
    
    	for _, cp := range rule.ConfigPatches {
    		if cp == nil {
    			errs = validation.AppendValidation(errs, fmt.Errorf("Envoy filter: null config patch")) // nolint: stylecheck
    			continue
    		}
    		if cp.ApplyTo == networking.EnvoyFilter_INVALID {
    			errs = validation.AppendValidation(errs, fmt.Errorf("Envoy filter: missing applyTo")) // nolint: stylecheck
    			continue
    		}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Mar 30 00:31:03 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/validating/typechecking.go

    	"k8s.io/apiserver/pkg/cel/openapi/resolver"
    	"k8s.io/apiserver/pkg/features"
    	utilfeature "k8s.io/apiserver/pkg/util/feature"
    	"k8s.io/klog/v2"
    )
    
    const maxTypesToCheck = 10
    
    type TypeChecker struct {
    	SchemaResolver resolver.SchemaResolver
    	RestMapper     meta.RESTMapper
    }
    
    // TypeCheckingContext holds information about the policy being type-checked.
    // The struct is opaque to the caller.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/validating/typechecking_test.go

    				toHaveLengthOf(0),
    			},
    		},
    	} {
    		t.Run(tc.name, func(t *testing.T) {
    			typeChecker := buildTypeChecker(tc.schemaToReturn)
    			warnings := typeChecker.Check(tc.policy)
    			for _, a := range tc.assertions {
    				a(warnings, t)
    			}
    		})
    	}
    }
    
    func buildTypeChecker(schemaToReturn *spec.Schema) *TypeChecker {
    	restMapper := meta.NewDefaultRESTMapper([]schema.GroupVersion{
    		{
    			Group:   "",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 00:00:21 UTC 2024
    - 16.3K bytes
    - Viewed (0)
  8. hack/golangci.yaml

        # https://github.com/kubernetes/kubernetes/issues/117288#issuecomment-1507030071
        - linters:
            - stylecheck
          text: "ST1012: error var .* should have name of the form ErrFoo"
    
        # https://github.com/kubernetes/kubernetes/issues/117288#issuecomment-1507031224
        - linters:
            - stylecheck
          text: "ST1023: should omit type .* from declaration; it will be inferred from the right-hand side"
    
    linters:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 15 12:10:09 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  9. cni/pkg/plugin/plugin.go

    	types.CommonArgs
    	K8S_POD_NAME               types.UnmarshallableString // nolint: revive, stylecheck
    	K8S_POD_NAMESPACE          types.UnmarshallableString // nolint: revive, stylecheck
    	K8S_POD_INFRA_CONTAINER_ID types.UnmarshallableString // nolint: revive, stylecheck
    	K8S_POD_UID                types.UnmarshallableString // nolint: revive, stylecheck
    }
    
    // parseConfig parses the supplied configuration (and prevResult) from stdin.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 16:26:35 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/resolver.go

    			return ptr, tname
    		}
    
    		// otherwise, continue resolving
    		typ = tdecl.Type
    		if seen == nil {
    			seen = make(map[*TypeName]bool)
    		}
    		seen[tname] = true
    	}
    }
    
    // packageObjects typechecks all package objects, but not function bodies.
    func (check *Checker) packageObjects() {
    	// process package objects in source order for reproducible results
    	objList := make([]Object, len(check.objMap))
    	i := 0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 14:10:44 UTC 2024
    - 26.3K bytes
    - Viewed (0)
Back to top