- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 52 for typecheck (0.72 sec)
-
src/cmd/vendor/golang.org/x/tools/go/analysis/unitchecker/unitchecker.go
return os.WriteFile(cfg.VetxOutput, data, 0666) } ) func run(fset *token.FileSet, cfg *Config, analyzers []*analysis.Analyzer) ([]result, error) { // Load, parse, typecheck. var files []*ast.File for _, name := range cfg.GoFiles { f, err := parser.ParseFile(fset, name, nil, parser.ParseComments) if err != nil { if cfg.SucceedOnTypecheckFailure {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 02:38:00 UTC 2024 - 13K bytes - Viewed (0) -
src/cmd/compile/internal/typecheck/builtin.go
// Code generated by mkbuiltin.go. DO NOT EDIT. package typecheck import ( "cmd/compile/internal/types" "cmd/internal/src" ) // Not inlining this function removes a significant chunk of init code. // //go:noinline func newSig(params, results []*types.Field) *types.Type { return types.NewSignature(nil, params, results) } func params(tlist ...*types.Type) []*types.Field { flist := make([]*types.Field, len(tlist))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 21 21:08:03 UTC 2024 - 16.2K bytes - Viewed (0) -
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) -
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) -
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) -
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) -
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) -
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) -
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) -
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)