Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for subexpressions (0.22 sec)

  1. src/go/build/constraint/vers.go

    //	GoVersion(!go1.22) = ""
    //
    // GoVersion assumes that any tag or negated tag may independently be true,
    // so that its analysis can be purely structural, without SAT solving.
    // “Impossible” subexpressions may therefore affect the result.
    //
    // For example:
    //
    //	GoVersion((linux && !linux && go1.20) || go1.21) = "go1.20"
    func GoVersion(x Expr) string {
    	v := minVersion(x, +1)
    	if v < 0 {
    		return ""
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 27 14:19:00 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  2. src/regexp/syntax/simplify_test.go

    	{`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)
  3. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/bools/bools.go

    			if efmt != prev {
    				pass.ReportRangef(e, "suspect %s: %s %s %s", op.name, efmt, op.tok, prev)
    			}
    		} else {
    			seen[xfmt] = efmt
    		}
    	}
    }
    
    // split returns a slice of all subexpressions in e that are connected by op.
    // For example, given 'a || (b || c) || d' with the or op,
    // split returns []{d, c, b, a}.
    // seen[e] is already true; any newly processed exprs are added to seen.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/tools/go/cfg/cfg.go

    //
    // The blocks of the CFG contain all the function's non-control
    // statements.  The CFG does not contain control statements such as If,
    // Switch, Select, and Branch, but does contain their subexpressions;
    // also, each block records the control statement (Block.Stmt) that
    // gave rise to it and its relationship (Block.Kind) to that statement.
    //
    // For example, this source code:
    //
    //	if x := f(); x != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  5. internal/s3select/sql/aggregation.go

    }
    
    func (e *PrimaryTerm) aggregateRow(r Record, tableAlias string) error {
    	switch {
    	case e.ListExpr != nil:
    		return e.ListExpr.aggregateRow(r, tableAlias)
    	case e.SubExpression != nil:
    		return e.SubExpression.aggregateRow(r, tableAlias)
    	case e.FuncCall != nil:
    		return e.FuncCall.aggregateRow(r, tableAlias)
    	}
    	return nil
    }
    
    func (e *FuncExpr) aggregateRow(r Record, tableAlias string) error {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sat Dec 23 07:19:11 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  6. internal/s3select/sql/analysis.go

    				result = qProp{err: errInvalidKeypath}
    				return
    			}
    		}
    		result = qProp{isRowFunc: true}
    
    	case e.ListExpr != nil:
    		result = e.ListExpr.analyze(s)
    
    	case e.SubExpression != nil:
    		result = e.SubExpression.analyze(s)
    
    	case e.FuncCall != nil:
    		result = e.FuncCall.analyze(s)
    
    	default:
    		result = qProp{err: errUnexpectedInvalidNode}
    	}
    	return
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sat Dec 23 07:19:11 UTC 2023
    - 8.5K bytes
    - Viewed (0)
Back to top