Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 80 for parenthesized (0.3 sec)

  1. src/cmd/compile/internal/types2/builtins_test.go

    			fun = call.Fun
    			n++
    		}
    	}
    	if n != 1 {
    		t.Errorf("%s: got %d CallExprs; want 1", src0, n)
    		return
    	}
    
    	// check recorded types for fun and descendents (may be parenthesized)
    	for {
    		// the recorded type for the built-in must match the wanted signature
    		typ := types[fun].Type
    		if typ == nil {
    			t.Errorf("%s: no type recorded for %s", src0, ExprString(fun))
    			return
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 20 18:06:31 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  2. src/text/template/exec_test.go

    	{"field on interface", "{{.foo}}", "<no value>", nil, true},
    	{"field on parenthesized interface", "{{(.).foo}}", "<no value>", nil, true},
    
    	// Issue 31810: Parenthesized first element of pipeline with arguments.
    	// See also TestIssue31810.
    	{"unparenthesized non-function", "{{1 2}}", "", nil, false},
    	{"parenthesized non-function", "{{(1) 2}}", "", nil, false},
    	{"parenthesized non-function with no args", "{{(1)}}", "1", nil, true}, // This is fine.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 22:23:55 UTC 2024
    - 60.1K bytes
    - Viewed (0)
  3. src/html/template/exec_test.go

    	{"field on parenthesized interface", "{{(.).foo}}", "", nil, true}, // NOTE: <no value> in text/template
    
    	// Issue 31810: Parenthesized first element of pipeline with arguments.
    	// See also TestIssue31810.
    	{"unparenthesized non-function", "{{1 2}}", "", nil, false},
    	{"parenthesized non-function", "{{(1) 2}}", "", nil, false},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 24 21:59:12 UTC 2024
    - 57.6K bytes
    - Viewed (0)
  4. src/internal/types/testdata/examples/types.go

    	I0
    	I1[bool]
    	m(string)
    }
    
    func _() {
    	var x I3
    	x.m0()
    	x.m1(true)
    	x.m("foo")
    }
    
    type _ struct {
    	( /* ERROR "cannot parenthesize" */ int8)
    	( /* ERROR "cannot parenthesize" */ *int16)
    	*( /* ERROR "cannot parenthesize" */ int32)
    	List[int]
    
    	int8 /* ERROR "int8 redeclared" */
    	*int16 /* ERROR "int16 redeclared" */
    	List /* ERROR "List redeclared" */ [int]
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 24 23:16:04 UTC 2023
    - 8.4K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/debug_lines_test.go

    	"internal/testenv"
    	"os"
    	"path/filepath"
    	"reflect"
    	"regexp"
    	"runtime"
    	"sort"
    	"strconv"
    	"strings"
    	"testing"
    )
    
    // Matches lines in genssa output that are marked "isstmt", and the parenthesized plus-prefixed line number is a submatch
    var asmLine *regexp.Regexp = regexp.MustCompile(`^\s[vb]\d+\s+\d+\s\(\+(\d+)\)`)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 20:24:52 UTC 2023
    - 8.4K bytes
    - Viewed (0)
  6. src/go/types/assignments.go

    // that identifier. The result is nil if it is the blank identifier,
    // and Typ[Invalid] if it is an invalid lhs expression.
    func (check *Checker) lhsVar(lhs ast.Expr) Type {
    	// Determine if the lhs is a (possibly parenthesized) identifier.
    	ident, _ := ast.Unparen(lhs).(*ast.Ident)
    
    	// Don't evaluate lhs if it is the blank identifier.
    	if ident != nil && ident.Name == "_" {
    		check.recordDef(ident, nil)
    		return nil
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  7. cmd/kubeadm/app/apis/bootstraptoken/v1/utils.go

    	// regexp functions which contains 'Submatch' in their names will be 3.
    	// Submatch 0 is the match of the entire expression, submatch 1 is
    	// the match of the first parenthesized subexpression, and so on.
    	// e.g.:
    	// result := bootstraputil.BootstrapTokenRegexp.FindStringSubmatch("abcdef.1234567890123456")
    	// result == []string{"abcdef.1234567890123456","abcdef","1234567890123456"}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 26 15:51:39 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/types2/api.go

    // be incomplete.
    type Info struct {
    	// Types maps expressions to their types, and for constant
    	// expressions, also their values. Invalid expressions are
    	// omitted.
    	//
    	// For (possibly parenthesized) identifiers denoting built-in
    	// functions, the recorded signatures are call-site specific:
    	// if the call result is not a constant, the recorded type is
    	// an argument-specific signature. Otherwise, the recorded type
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 13:48:53 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  9. src/fmt/doc.go

    and %#g is 6; for %g it is the smallest number of digits necessary to identify
    the value uniquely.
    
    For complex numbers, the width and precision apply to the two
    components independently and the result is parenthesized, so %f applied
    to 1.2+3.4i produces (1.200000+3.400000i).
    
    When formatting a single integer code point or a rune string (type []rune)
    with %q, invalid Unicode code points are changed to the Unicode replacement
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 21:56:20 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  10. src/go/types/api.go

    // be incomplete.
    type Info struct {
    	// Types maps expressions to their types, and for constant
    	// expressions, also their values. Invalid expressions are
    	// omitted.
    	//
    	// For (possibly parenthesized) identifiers denoting built-in
    	// functions, the recorded signatures are call-site specific:
    	// if the call result is not a constant, the recorded type is
    	// an argument-specific signature. Otherwise, the recorded type
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 17.2K bytes
    - Viewed (0)
Back to top