Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 83 for parenthesized (0.33 sec)

  1. 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)
  2. 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)
  3. src/go/printer/nodes.go

    	case *ast.ParenExpr:
    		// name(x) combines but we are making sure at
    		// the call site that x is never parenthesized.
    		panic("unexpected parenthesized expression")
    	}
    	return false
    }
    
    // isTypeElem reports whether x is a (possibly parenthesized) type element expression.
    // The result is false if x could be a type element OR an ordinary (value) expression.
    func isTypeElem(x ast.Expr) bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 17 18:53:17 UTC 2023
    - 52.6K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/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 syntax.Expr) Type {
    	// Determine if the lhs is a (possibly parenthesized) identifier.
    	ident, _ := syntax.Unparen(lhs).(*syntax.Name)
    
    	// Don't evaluate lhs if it is the blank identifier.
    	if ident != nil && ident.Value == "_" {
    		check.recordDef(ident, nil)
    		return nil
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 23 21:21:43 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  5. src/internal/types/testdata/check/stmt0.go

    	go ( /* ERROR "expression in go must not be parenthesized" */ gos())
    	go gos()
    	var c chan int
    	go close(c)
    	go len /* ERROR "go discards result" */ (c)
    }
    
    func defers() {
    	defer 1; /* ERROR "must be function call" */
    	defer int /* ERROR "defer requires function call, not conversion" */ (0)
    	defer ( /* ERROR "expression in defer must not be parenthesized" */ defers())
    	defer defers()
    	var c chan int
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 19K bytes
    - Viewed (0)
  6. src/regexp/regexp.go

    // successive submatches of the expression. Submatches are matches of
    // parenthesized subexpressions (also known as capturing groups) within the
    // regular expression, numbered from left to right in order of opening
    // parenthesis. Submatch 0 is the match of the entire expression, submatch 1 is
    // the match of the first parenthesized subexpression, and so on.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:50:01 UTC 2024
    - 38.5K bytes
    - Viewed (0)
  7. src/text/template/doc.go

    		fun
    	  The result is the value of invoking the function, fun(). The return
    	  types and values behave as in methods. Functions and function
    	  names are described below.
    	- A parenthesized instance of one the above, for grouping. The result
    	  may be accessed by a field or map key invocation.
    		print (.F1 arg1) (.F2 arg2)
    		(.StructValuedMethod "arg").Field
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 24 21:59:12 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  8. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/execution/Combinators.kt

     * Can be combined with other parsers in the usual way and its delegate can be set at a later moment in time.
     *
     * It can also be used to create recursive parsers.
     * For example, a parser for a balanced parenthesized symbolic expression can be defined as:
     * ```kotlin
     * var parser by reference<String>()
     * parser = paren(parser) + token(IDENTIFIER) { tokenText }
     * ```
     *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 12.9K bytes
    - Viewed (0)
  9. src/go/types/check.go

    	}
    	if m := check.Types; m != nil {
    		m[x] = TypeAndValue{mode, typ, val}
    	}
    }
    
    func (check *Checker) recordBuiltinType(f ast.Expr, sig *Signature) {
    	// f must be a (possibly parenthesized, possibly qualified)
    	// identifier denoting a built-in (including unsafe's non-constant
    	// functions Add and Slice): record the signature for f and possible
    	// children.
    	for {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  10. src/text/template/parse/lex_test.go

    		tSpace,
    		mkItem(itemChar, ","),
    		tSpace,
    		mkItem(itemVariable, "$w"),
    		tSpace,
    		mkItem(itemDeclare, ":="),
    		tSpace,
    		mkItem(itemNumber, "3"),
    		tRight,
    		tEOF,
    	}},
    	{"field of parenthesized expression", "{{(.X).Y}}", []item{
    		tLeft,
    		tLpar,
    		mkItem(itemField, ".X"),
    		tRpar,
    		mkItem(itemField, ".Y"),
    		tRight,
    		tEOF,
    	}},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 23 15:03:43 UTC 2022
    - 13.9K bytes
    - Viewed (0)
Back to top