Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 45 for parenthesized (0.45 sec)

  1. src/text/template/parse/parse_test.go

    		hasError, `unexpected . after term`},
    	{"wrongpipeline",
    		"{{12|false}}",
    		hasError, `non executable command in pipeline`},
    	{"emptypipeline",
    		`{{ ( ) }}`,
    		hasError, `missing value for parenthesized pipeline`},
    	{"multilinerawstring",
    		"{{ $v := `\n` }} {{",
    		hasError, `multilinerawstring:2: unclosed action`},
    	{"rangeundefvar",
    		"{{range $k}}{{end}}",
    		hasError, `undefined variable`},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 24 21:59:12 UTC 2024
    - 24K bytes
    - Viewed (0)
  2. src/text/template/parse/node.go

    	return p.CopyPipe()
    }
    
    // ActionNode holds an action (something bounded by delimiters).
    // Control actions have their own nodes; ActionNode represents simple
    // ones such as field evaluations and parenthesized pipelines.
    type ActionNode struct {
    	NodeType
    	Pos
    	tr   *Tree
    	Line int       // The line number in the input. Deprecated: Kept for compatibility.
    	Pipe *PipeNode // The pipeline in the action.
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:57:51 UTC 2024
    - 24.2K bytes
    - Viewed (0)
  3. doc/go_spec.html

    must be <a href="#Uniqueness_of_identifiers">unique</a>.
    If absent, each type stands for one item of that type.
    Parameter and result
    lists are always parenthesized except that if there is exactly
    one unnamed result it may be written as an unparenthesized type.
    </p>
    
    <p>
    The final incoming parameter in a function signature may have
    a type prefixed with <code>...</code>.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 21:07:21 UTC 2024
    - 281.5K bytes
    - Viewed (0)
  4. src/go/doc/reader.go

    			case token.TYPE:
    				// types are handled individually
    				if len(d.Specs) == 1 && !d.Lparen.IsValid() {
    					// common case: single declaration w/o parentheses
    					// (if a single declaration is parenthesized,
    					// create a new fake declaration below, so that
    					// go/doc type declarations always appear w/o
    					// parentheses)
    					if s, ok := d.Specs[0].(*ast.TypeSpec); ok {
    						r.readType(d, s)
    					}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 27.5K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/types2/stmt.go

    	case *syntax.ExprStmt:
    		// spec: "With the exception of specific built-in functions,
    		// function and method calls and receive operations can appear
    		// in statement context. Such statements may be parenthesized."
    		var x operand
    		kind := check.rawExpr(nil, &x, s.X, nil, false)
    		var msg string
    		var code Code
    		switch x.mode {
    		default:
    			if kind == statement {
    				return
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 30.7K bytes
    - Viewed (0)
  6. src/go/types/stmt.go

    	case *ast.ExprStmt:
    		// spec: "With the exception of specific built-in functions,
    		// function and method calls and receive operations can appear
    		// in statement context. Such statements may be parenthesized."
    		var x operand
    		kind := check.rawExpr(nil, &x, s.X, nil, false)
    		var msg string
    		var code Code
    		switch x.mode {
    		default:
    			if kind == statement {
    				return
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 30.6K bytes
    - Viewed (0)
  7. src/time/format_test.go

    	// This test checks nextStdChunk's behavior directly,
    	// instead of needing to test it only indirectly through Parse/Format.
    
    	// markChunks returns format with each detected
    	// 'format chunk' parenthesized.
    	// For example showChunks("2006-01-02") == "(2006)-(01)-(02)".
    	markChunks := func(format string) string {
    		// Note that NextStdChunk and StdChunkNames
    		// are not part of time's public API.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:58:29 UTC 2024
    - 36.4K bytes
    - Viewed (0)
  8. src/fmt/scan.go

    		// digits?
    		for s.accept(decimalDigits + "_") {
    		}
    	}
    	return string(s.buf)
    }
    
    // complexTokens returns the real and imaginary parts of the complex number starting here.
    // The number might be parenthesized and has the format (N+Ni) where N is a floating-point
    // number and there are no spaces within.
    func (s *ss) complexTokens() (real, imag string) {
    	// TODO: accept N and Ni independently?
    	parens := s.accept("(")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 21:56:20 UTC 2024
    - 31.9K bytes
    - Viewed (0)
  9. src/text/template/exec.go

    	case *parse.ChainNode:
    		return s.evalChainNode(dot, n, cmd.Args, final)
    	case *parse.IdentifierNode:
    		// Must be a function.
    		return s.evalFunction(dot, n, cmd, cmd.Args, final)
    	case *parse.PipeNode:
    		// Parenthesized pipeline. The arguments are all inside the pipeline; final must be absent.
    		s.notAFunction(cmd.Args, final)
    		return s.evalPipeline(dot, n)
    	case *parse.VariableNode:
    		return s.evalVariableNode(dot, n, cmd.Args, final)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:22:24 UTC 2024
    - 32K bytes
    - Viewed (0)
  10. src/cmd/vendor/github.com/ianlancetaylor/demangle/demangle.go

    	"az": {"alignof ", 1, precUnary},
    	"cc": {"const_cast", 2, precPostfix},
    	"cl": {"()", 2, precPostfix},
    	// cp is not in the ABI but is used by clang "when the call
    	// would use ADL except for being parenthesized."
    	"cp": {"()", 2, precPostfix},
    	"cm": {",", 2, precComma},
    	"co": {"~", 1, precUnary},
    	"dV": {"/=", 2, precAssign},
    	"dX": {"[...]=", 3, precAssign},
    	"da": {"delete[] ", 1, precUnary},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 94.1K bytes
    - Viewed (0)
Back to top