Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 2,457 for parens (0.25 sec)

  1. src/cmd/compile/internal/inline/interleaved/interleaved.go

    			n = paren
    		}
    
    		return n
    	}
    	ir.EditChildren(fn, mark)
    
    	// Edit until stable.
    	for {
    		done := true
    
    		for i := 0; i < len(parens); i++ { // can't use "range parens" here
    			paren := parens[i]
    			if new := edit(paren.X); new != nil {
    				// Update AST and recursively mark nodes.
    				paren.X = new
    				ir.EditChildren(new, mark) // mark may append to parens
    				done = false
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 20:42:52 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  2. common/config/tslint.json

    {
        "defaultSeverity": "error",
        "extends": [
            "tslint:recommended"
        ],
        "rules": {
            "max-line-length": {
                "options": [160]
            },
            "arrow-parens": false,
            "new-parens": true,
            "no-arg": true,
            "no-bitwise": true,
            "no-conditional-assignment": true,
            "no-consecutive-blank-lines": true,
            "no-console": {
                "severity": "warning",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Sep 11 23:32:21 UTC 2019
    - 631 bytes
    - Viewed (0)
  3. src/go/printer/testdata/statements.golden

    		use(x)
    	}	// no parens printed
    }
    
    // Formatting of for-statement headers for multi-line for-loops.
    func _() {
    	for {
    	}
    	for expr {
    	}
    	for expr {
    	}	// no parens printed
    	for {
    	}	// no semicolons printed
    	for x := expr; ; {
    		use(x)
    	}
    	for expr {
    	}	// no semicolons printed
    	for expr {
    	}	// no semicolons and parens printed
    	for ; ; expr = false {
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 12 18:18:12 UTC 2014
    - 8K bytes
    - Viewed (0)
  4. src/go/printer/testdata/statements.input

    	if (expr){}  // no parens printed
    	if;((expr)){}  // no semicolon and parens printed
    	if x:=expr;true{
    	use(x)}
    	if x:=expr; expr {use(x)}
    }
    
    
    // Formatting of switch-statement headers.
    func _() {
    	switch {}
    	switch;{}  // no semicolon printed
    	switch expr {}
    	switch;expr{}  // no semicolon printed
    	switch (expr) {}  // no parens printed
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 08 04:08:51 UTC 2014
    - 8.3K bytes
    - Viewed (0)
  5. src/regexp/syntax/simplify_test.go

    	// Posix repetitions
    	{`a{1}`, `a`},
    	{`a{2}`, `aa`},
    	{`a{5}`, `aaaaa`},
    	{`a{0,1}`, `a?`},
    	// The next three are illegible because Simplify inserts (?:)
    	// parens instead of () parens to avoid creating extra
    	// captured subexpressions. The comments show a version with fewer parens.
    	{`(a){0,2}`, `(?:(a)(a)?)?`},                       //       (aa?)?
    	{`(a){0,4}`, `(?:(a)(?:(a)(?:(a)(a)?)?)?)?`},       //   (a(a(aa?)?)?)?
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 16 16:02:30 UTC 2023
    - 4K bytes
    - Viewed (0)
  6. test/fixedbugs/issue4470.go

    // errorcheck
    
    // Copyright 2012 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Issue 4470: parens are not allowed around .(type) "expressions"
    
    package main
    
    func main() {
    	var i interface{}
    	switch (i.(type)) { // ERROR "outside type switch"
    	default:
    	}
    	_ = i
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 09 23:59:57 UTC 2020
    - 364 bytes
    - Viewed (0)
  7. src/cmd/compile/internal/types2/typestring.go

    		w.string("map[")
    		w.typ(t.key)
    		w.byte(']')
    		w.typ(t.elem)
    
    	case *Chan:
    		var s string
    		var parens bool
    		switch t.dir {
    		case SendRecv:
    			s = "chan "
    			// chan (<-chan T) requires parentheses
    			if c, _ := t.elem.(*Chan); c != nil && c.dir == RecvOnly {
    				parens = true
    			}
    		case SendOnly:
    			s = "chan<- "
    		case RecvOnly:
    			s = "<-chan "
    		default:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  8. common/config/sass-lint.yml

      single-line-per-selector: 0
      space-after-bang: 2
      space-after-colon: 2
      space-after-comma: 2
      space-around-operator: 2
      space-before-bang: 2
      space-before-brace: 2
      space-before-colon: 2
      space-between-parens: 2
      trailing-semicolon: 2
      url-quotes: 2
      variable-for-property:
        - 0
        -
          properties:
            - color
            - background-color
            - fill
      variable-name-format: 0
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Sep 11 23:32:21 UTC 2019
    - 2K bytes
    - Viewed (0)
  9. src/go/types/typestring.go

    		w.string("map[")
    		w.typ(t.key)
    		w.byte(']')
    		w.typ(t.elem)
    
    	case *Chan:
    		var s string
    		var parens bool
    		switch t.dir {
    		case SendRecv:
    			s = "chan "
    			// chan (<-chan T) requires parentheses
    			if c, _ := t.elem.(*Chan); c != nil && c.dir == RecvOnly {
    				parens = true
    			}
    		case SendOnly:
    			s = "chan<- "
    		case RecvOnly:
    			s = "<-chan "
    		default:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  10. src/cmd/asm/internal/lex/lex_test.go

    		"define without value",
    		"#define A",
    		"",
    	},
    	{
    		"macro without arguments",
    		"#define A() 1234\n" + "A()\n",
    		"1234.\n",
    	},
    	{
    		"macro with just parens as body",
    		"#define A () \n" + "A\n",
    		"(.).\n",
    	},
    	{
    		"macro with parens but no arguments",
    		"#define A (x) \n" + "A\n",
    		"(.x.).\n",
    	},
    	{
    		"macro with arguments",
    		"#define A(x, y, z) x+z+y\n" + "A(1, 2, 3)\n",
    		"1.+.3.+.2.\n",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 29 07:48:38 UTC 2023
    - 5.8K bytes
    - Viewed (0)
Back to top