Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 75 for typecheck (0.13 sec)

  1. hack/verify-typecheck.sh

    # Usage: `hack/verify-typecheck.sh`.
    
    set -o errexit
    set -o nounset
    set -o pipefail
    
    KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
    source "${KUBE_ROOT}/hack/lib/init.sh"
    cd "${KUBE_ROOT}"
    
    kube::golang::setup_env
    
    ret=0
    TYPECHECK_SERIAL="${TYPECHECK_SERIAL:-false}"
    go run ./test/typecheck "$@" "--serial=$TYPECHECK_SERIAL" || ret=$?
    
    if [[ $ret -ne 0 ]]; then
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:07:00 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  2. test/typecheck.go

    Dan Scales <******@****.***> 1638576610 -0800
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 11 02:26:58 UTC 2022
    - 543 bytes
    - Viewed (0)
  3. src/cmd/compile/internal/walk/select.go

    			dflt = cas
    			continue
    		}
    		switch n.Op() {
    		case ir.OSEND:
    			n := n.(*ir.SendStmt)
    			n.Value = typecheck.NodAddr(n.Value)
    			n.Value = typecheck.Expr(n.Value)
    
    		case ir.OSELRECV2:
    			n := n.(*ir.AssignListStmt)
    			if !ir.IsBlank(n.Lhs[0]) {
    				n.Lhs[0] = typecheck.NodAddr(n.Lhs[0])
    				n.Lhs[0] = typecheck.Expr(n.Lhs[0])
    			}
    		}
    	}
    
    	// optimization: two-case select but one is default: single non-blocking op.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 01:53:41 UTC 2023
    - 7.8K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/pkginit/initAsanGlobals.go

    	asanName.Class = ir.PEXTERN
    	symL.Def = asanName
    	typecheck.Target.Externs = append(typecheck.Target.Externs, asanName)
    
    	symL = lname(".asanModulename")
    	asanModulename := ir.NewNameAt(base.Pos, symL, types.Types[types.TSTRING])
    	asanModulename.Class = ir.PEXTERN
    	symL.Def = asanModulename
    	typecheck.Target.Externs = append(typecheck.Target.Externs, asanModulename)
    
    	symL = lname(".asanFilename")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 17 19:36:24 UTC 2023
    - 8.7K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/walk/temp.go

    	appendWalkStmt(init, ir.NewAssignStmt(base.Pos, tmp, val))
    	return typecheck.Expr(typecheck.NodAddr(tmp)).(*ir.AddrExpr)
    }
    
    // stackTempAddr returns the expression &tmp, where tmp is a newly
    // allocated temporary variable of the given type. Statements to
    // zero-initialize tmp are appended to init.
    func stackTempAddr(init *ir.Nodes, typ *types.Type) *ir.AddrExpr {
    	n := typecheck.TempAt(base.Pos, ir.CurFunc, typ)
    	n.SetNonMergeable(true)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 09 16:41:23 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/walk/closure.go

    		check := ir.NewUnaryExpr(base.Pos, ir.OCHECKNIL, tab)
    		init.Append(typecheck.Stmt(check))
    	}
    
    	typ := typecheck.MethodValueType(n)
    
    	clos := ir.NewCompLitExpr(base.Pos, ir.OCOMPLIT, typ, nil)
    	clos.SetEsc(n.Esc())
    	clos.List = []ir.Node{ir.NewUnaryExpr(base.Pos, ir.OCFUNC, methodValueWrapper(n)), n.X}
    
    	addr := typecheck.NodAddr(clos)
    	addr.SetEsc(n.Esc())
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 20 15:56:08 UTC 2023
    - 6.5K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/coverage/cover.go

    	mdax := typecheck.NodAddr(cnames.MetaVar)
    	mdauspx := typecheck.ConvNop(mdax, types.Types[types.TUNSAFEPTR])
    
    	// Materialize expression for length.
    	lenx := ir.NewInt(base.Pos, int64(mdlen)) // untyped
    
    	// Generate a call to runtime.addCovMeta, e.g.
    	//
    	//   pkgIdVar = runtime.addCovMeta(&sym, len, hash, pkgpath, pkid, cmode, cgran)
    	//
    	fn := typecheck.LookupRuntime("addCovMeta")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 29 21:55:46 UTC 2024
    - 6K bytes
    - Viewed (0)
  8. test/fixedbugs/bug343.go

    }
    
    func main() {
    	x := getArgs(map[string]interface{}{"x":"y"}, "x")
    	if x["x"] != "y" {
    		println("BUG bug343", x)
    	}
    }
    	
    
    /*
    typecheck [1008592b0]
    .   INDREG a(1) l(15) x(24) tc(2) runtime.ret G0 string
    bug343.go:15: internal compiler error: typecheck INDREG
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 721 bytes
    - Viewed (0)
  9. test/fixedbugs/issue28926.go

    	switch e := e.(type) {
    	case G: // ERROR "undefined: G|undefined type .*G"
    		e.M() // ok: this error should be ignored because the case failed its typecheck
    	case E: // ERROR "undefined: E|undefined type .*E"
    		e.D() // ok: this error should be ignored because the case failed its typecheck
    	case Stringer:
    		// ok: this error should not be ignored to prove that passing legs aren't left out
    		_ = e.(T) // ERROR "undefined: T|undefined type .*T"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 15 02:35:59 UTC 2020
    - 721 bytes
    - Viewed (0)
  10. src/cmd/cgo/internal/testerrors/testdata/err2.go

    		C.fppi(p) // ERROR HERE
    	}
    
    	// issue 26745
    	_ = func(i int) int {
    		// typecheck reports at column 14 ('+'), but types2 reports at
    		// column 10 ('C').
    		// TODO(mdempsky): Investigate why, and see if types2 can be
    		// updated to match typecheck behavior.
    		return C.i + 1 // ERROR HERE: \b(10|14)\b
    	}
    	_ = func(i int) {
    		// typecheck reports at column 7 ('('), but types2 reports at
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 2.5K bytes
    - Viewed (0)
Back to top