Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 51 for parenthesize (0.22 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. src/cmd/compile/internal/ssa/_gen/rulegen.go

    	"regexp"
    	"sort"
    	"strconv"
    	"strings"
    
    	"golang.org/x/tools/go/ast/astutil"
    )
    
    // rule syntax:
    //  sexpr [&& extra conditions] => [@block] sexpr
    //
    // sexpr are s-expressions (lisp-like parenthesized groupings)
    // sexpr ::= [variable:](opcode sexpr*)
    //         | variable
    //         | <type>
    //         | [auxint]
    //         | {aux}
    //
    // aux      ::= variable | {code}
    // type     ::= variable | {code}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Sep 02 22:09:21 UTC 2023
    - 48.7K 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. android/guava/src/com/google/common/collect/Range.java

     * side, this yields nine basic types of ranges, enumerated below. (Notation: a square bracket
     * ({@code [ ]}) indicates that the range is closed on that side; a parenthesis ({@code ( )}) means
     * it is either open or unbounded. The construct {@code {x | statement}} is read "the set of all
     * <i>x</i> such that <i>statement</i>.")
     *
     * <blockquote>
     *
     * <table>
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/Range.java

     * side, this yields nine basic types of ranges, enumerated below. (Notation: a square bracket
     * ({@code [ ]}) indicates that the range is closed on that side; a parenthesis ({@code ( )}) means
     * it is either open or unbounded. The construct {@code {x | statement}} is read "the set of all
     * <i>x</i> such that <i>statement</i>.")
     *
     * <blockquote>
     *
     * <table>
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  10. 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)
Back to top