Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for parenthesized (0.69 sec)

  1. platforms/core-configuration/declarative-dsl-core/src/main/kotlin/org/gradle/internal/declarativedsl/parsing/GrammarToTree.kt

                PREFIX_EXPRESSION -> tree.unsupported(node, UnsupportedLanguageFeature.PrefixExpression)
                OPERATION_REFERENCE -> tree.unsupported(node, UnsupportedLanguageFeature.UnsupportedOperator)
                PARENTHESIZED -> parenthesized(tree, node)
                LAMBDA_EXPRESSION -> tree.unsupported(node, UnsupportedLanguageFeature.FunctionDeclaration)
                THIS_EXPRESSION -> Element(This(tree.sourceData(node)))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 14 22:06:18 UTC 2024
    - 31.2K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. src/cmd/compile/internal/types2/check.go

    			stv.SetAssignable()
    		}
    		if tv.HasOk() {
    			stv.SetHasOk()
    		}
    		x.SetTypeInfo(stv)
    	}
    }
    
    func (check *Checker) recordBuiltinType(f syntax.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.3K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/mod/modfile/read.go

    }
    
    // An LParen represents the beginning of a parenthesized line block.
    // It is a place to store suffix comments.
    type LParen struct {
    	Comments
    	Pos Position
    }
    
    func (x *LParen) Span() (start, end Position) {
    	return x.Pos, x.Pos.add(")")
    }
    
    // An RParen represents the end of a parenthesized line block.
    // It is a place to store whole-line (before) comments.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/types2/typexpr.go

    		return check.instantiatedType(e.X, syntax.UnpackListExpr(e.Index), def)
    
    	case *syntax.ParenExpr:
    		// Generic types must be instantiated before they can be used in any form.
    		// Consequently, generic types cannot be parenthesized.
    		return check.definedType(e.X, def)
    
    	case *syntax.ArrayType:
    		typ := new(Array)
    		setDefType(def, typ)
    		if e.Len != nil {
    			typ.len = check.arrayLength(e.Len)
    		} else {
    			// [...]array
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  9. src/go/types/typexpr.go

    		return check.instantiatedType(ix, def)
    
    	case *ast.ParenExpr:
    		// Generic types must be instantiated before they can be used in any form.
    		// Consequently, generic types cannot be parenthesized.
    		return check.definedType(e.X, def)
    
    	case *ast.ArrayType:
    		if e.Len == nil {
    			typ := new(Slice)
    			setDefType(def, typ)
    			typ.elem = check.varType(e.Elt)
    			return typ
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 16.3K bytes
    - Viewed (0)
  10. src/go/printer/printer_test.go

    	_, err = parser.ParseFile(fset, "", got, 0)
    	if err != nil {
    		t.Errorf("%v\norig: %q\ngot : %q", err, src, got)
    	}
    }
    
    // If a declaration has multiple specifications, a parenthesized
    // declaration must be printed even if Lparen is token.NoPos.
    func TestParenthesizedDecl(t *testing.T) {
    	// a package with multiple specs in a single declaration
    	const src = "package p; var ( a float64; b int )"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 03 14:56:25 UTC 2024
    - 20.4K bytes
    - Viewed (0)
Back to top