Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 136 for typecheck (0.36 sec)

  1. src/cmd/compile/internal/typecheck/_builtin/runtime.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // NOTE: If you change this file you must run "go generate"
    // in cmd/compile/internal/typecheck
    // to update builtin.go. This is not done automatically
    // to avoid depending on having a working compiler binary.
    
    //go:build ignore
    
    package runtime
    
    // emitted by compiler, not referred to by go programs
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 21:08:03 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/typecheck/const.go

    // Copyright 2009 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package typecheck
    
    import (
    	"fmt"
    	"go/constant"
    	"go/token"
    	"math"
    	"math/big"
    	"unicode"
    
    	"cmd/compile/internal/base"
    	"cmd/compile/internal/ir"
    	"cmd/compile/internal/types"
    )
    
    func roundFloat(v constant.Value, sz int64) constant.Value {
    	switch sz {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 05 15:20:28 UTC 2023
    - 10.5K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. src/cmd/compile/internal/types/type.go

    var (
    	typepkgmu sync.Mutex // protects typepkg lookups
    	typepkg   = NewPkg("type", "type")
    )
    
    var SimType [NTYPE]Kind
    
    // Fake package for shape types (see typecheck.Shapify()).
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:29:45 UTC 2024
    - 49.5K bytes
    - Viewed (0)
  10. src/cmd/internal/testdir/testdir_test.go

    // This list remains here just as a reference and for comparison - these files all pass.
    var _ = setOf(
    	"import1.go",      // types2 reports extra errors
    	"initializerr.go", // types2 reports extra error
    	"typecheck.go",    // types2 reports extra error at function call
    
    	"fixedbugs/bug176.go", // types2 reports all errors (pref: types2)
    	"fixedbugs/bug195.go", // types2 reports slight different errors, and an extra error
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 20:08:06 UTC 2024
    - 57.5K bytes
    - Viewed (0)
Back to top