Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 42 for parenthesized (0.47 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/go/printer/testdata/expressions.input

    		a...,
    	)
    	_ = append(
    		s,
    		a...,
    	)
    }
    
    // Literal function types in conversions must be parenthesized;
    // for now go/parser accepts the unparenthesized form where it
    // is non-ambiguous.
    func _() {
    	// these conversions should be rewritten to look
    	// the same as the parenthesized conversions below
    	_ = func()()(nil)
    	_ = func(x int)(float)(nil)
    	_ = func() func() func()()(nil)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 03 16:41:54 UTC 2017
    - 12.1K bytes
    - Viewed (0)
  3. src/go/printer/testdata/expressions.golden

    		a...,
    	)
    	_ = append(
    		s,
    		a...,
    	)
    }
    
    // Literal function types in conversions must be parenthesized;
    // for now go/parser accepts the unparenthesized form where it
    // is non-ambiguous.
    func _() {
    	// these conversions should be rewritten to look
    	// the same as the parenthesized conversions below
    	_ = (func())(nil)
    	_ = (func(x int) float)(nil)
    	_ = (func() func() func())(nil)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 03 16:41:54 UTC 2017
    - 12.4K bytes
    - Viewed (0)
  4. src/go/printer/testdata/expressions.raw

    		a...,
    	)
    	_ = append(
    		s,
    		a...,
    	)
    }
    
    // Literal function types in conversions must be parenthesized;
    // for now go/parser accepts the unparenthesized form where it
    // is non-ambiguous.
    func _() {
    	// these conversions should be rewritten to look
    	// the same as the parenthesized conversions below
    	_ = (func())(nil)
    	_ = (func(x int) float)(nil)
    	_ = (func() func() func())(nil)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 03 16:41:54 UTC 2017
    - 12.4K bytes
    - Viewed (0)
  5. src/go/parser/short_test.go

    	`package p; type _ struct{ ( /* ERROR "cannot parenthesize embedded type" */ int) }`,
    	`package p; type _ struct{ ( /* ERROR "cannot parenthesize embedded type" */ []byte) }`,
    	`package p; type _ struct{ *( /* ERROR "cannot parenthesize embedded type" */ int) }`,
    	`package p; type _ struct{ *( /* ERROR "cannot parenthesize embedded type" */ []byte) }`,
    
    	// go.dev/issue/8656
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 02 12:56:53 UTC 2023
    - 10.1K bytes
    - Viewed (0)
  6. src/go/types/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: Wed Apr 03 18:48:38 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  7. src/go/ast/ast.go

    		Incomplete bool      // true if (source) expressions are missing in the Elts list
    	}
    
    	// A ParenExpr node represents a parenthesized expression.
    	ParenExpr struct {
    		Lparen token.Pos // position of "("
    		X      Expr      // parenthesized expression
    		Rparen token.Pos // position of ")"
    	}
    
    	// A SelectorExpr node represents an expression followed by a selector.
    	SelectorExpr struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 28 21:32:41 UTC 2024
    - 35.6K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. 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)
Back to top