Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for safeCall (0.14 sec)

  1. src/text/template/funcs.go

    			return reflect.Value{}, fmt.Errorf("arg %d: %w", i, err)
    		}
    	}
    	return safeCall(fn, argv)
    }
    
    // safeCall runs fun.Call(args), and returns the resulting value and error, if
    // any. If the call panics, the panic value is returned as an error.
    func safeCall(fun reflect.Value, args []reflect.Value) (val reflect.Value, err error) {
    	defer func() {
    		if r := recover(); r != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 22:23:55 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  2. src/text/template/exec.go

    	if isBuiltin && name == "call" {
    		calleeName := args[0].String()
    		argv = append([]reflect.Value{reflect.ValueOf(calleeName)}, argv...)
    		fun = reflect.ValueOf(call)
    	}
    
    	v, err := safeCall(fun, argv)
    	// If we have an error that is not nil, stop execution and return that
    	// error to the caller.
    	if err != nil {
    		s.at(node)
    		s.errorf("error calling %s: %w", name, err)
    	}
    	return unwrap(v)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:22:24 UTC 2024
    - 32K bytes
    - Viewed (0)
  3. analysis/analysis-api/testData/components/compilerFacility/compilation/codeFragments/capturing/valueParameter.ir.txt

            VALUE_PARAMETER name:p0 index:0 type:<root>.Foo?
            EXPRESSION_BODY
              BLOCK type=kotlin.Unit? origin=null
                BLOCK type=kotlin.Unit? origin=SAFE_CALL
                  VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:<root>.Foo? [val]
                    GET_VAR 'p0: <root>.Foo? declared in <root>.CodeFragment.run' type=<root>.Foo? origin=null
                  WHEN type=kotlin.Unit? origin=null
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed Aug 30 06:38:44 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  4. analysis/analysis-api/testData/components/compilerFacility/compilation/codeFragments/duplicateLibrary.ir.txt

            VALUE_PARAMETER name:p0 index:0 type:kotlin.String
            EXPRESSION_BODY
              BLOCK type=kotlin.Int? origin=null
                BLOCK type=kotlin.Int? origin=SAFE_CALL
                  VAR IR_TEMPORARY_VARIABLE name:tmp_0 type:kotlin.String? [val]
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed Aug 30 06:38:44 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  5. src/cmd/cgo/ast.go

    func (f *File) saveExprs(x interface{}, context astContext) {
    	switch x := x.(type) {
    	case *ast.Expr:
    		switch (*x).(type) {
    		case *ast.SelectorExpr:
    			f.saveRef(x, context)
    		}
    	case *ast.CallExpr:
    		f.saveCall(x, context)
    	}
    }
    
    // Save references to C.xxx for later processing.
    func (f *File) saveRef(n *ast.Expr, context astContext) {
    	sel := (*n).(*ast.SelectorExpr)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 07 16:54:27 UTC 2023
    - 14.3K bytes
    - Viewed (0)
  6. ChangeLog.md

    - [`KT-67307`](https://youtrack.jetbrains.com/issue/KT-67307) K2: "Cannot find cached type parameter by FIR symbol" in JpaRepository.saveAll
    - [`KT-67185`](https://youtrack.jetbrains.com/issue/KT-67185) K2: Incorrect coercion-to-Unit leading to CCE at runtime
    - [`KT-64891`](https://youtrack.jetbrains.com/issue/KT-64891) K2: consider supporting/forbidding foo.(bar)() syntax
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Mon May 27 17:14:23 UTC 2024
    - 292.1K bytes
    - Viewed (0)
Back to top