Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for subexpressions (0.25 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. src/regexp/testdata/nullsubexpr.dat

    NOTE	null subexpression matches : 2002-06-06
    
    E	(a*)*		a		(0,1)(0,1)
    E	SAME		x		(0,0)(0,0)
    E	SAME		aaaaaa		(0,6)(0,6)
    E	SAME		aaaaaax		(0,6)(0,6)
    E	(a*)+		a		(0,1)(0,1)
    E	SAME		x		(0,0)(0,0)
    E	SAME		aaaaaa		(0,6)(0,6)
    E	SAME		aaaaaax		(0,6)(0,6)
    E	(a+)*		a		(0,1)(0,1)
    E	SAME		x		(0,0)
    E	SAME		aaaaaa		(0,6)(0,6)
    E	SAME		aaaaaax		(0,6)(0,6)
    E	(a+)+		a		(0,1)(0,1)
    E	SAME		x		NOMATCH
    E	SAME		aaaaaa		(0,6)(0,6)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jul 18 19:55:29 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. cmd/kubeadm/app/apis/bootstraptoken/v1/utils.go

    	// regexp functions which contains 'Submatch' in their names will be 3.
    	// Submatch 0 is the match of the entire expression, submatch 1 is
    	// the match of the first parenthesized subexpression, and so on.
    	// e.g.:
    	// result := bootstraputil.BootstrapTokenRegexp.FindStringSubmatch("abcdef.1234567890123456")
    	// result == []string{"abcdef.1234567890123456","abcdef","1234567890123456"}
    	// len(result) == 3
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 26 15:51:39 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ssa/cse.go

    // license that can be found in the LICENSE file.
    
    package ssa
    
    import (
    	"cmd/compile/internal/types"
    	"cmd/internal/src"
    	"fmt"
    	"sort"
    )
    
    // cse does common-subexpression elimination on the Function.
    // Values are just relinked, nothing is deleted. A subsequent deadcode
    // pass is required to actually remove duplicate expressions.
    func cse(f *Func) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 31 21:41:20 UTC 2022
    - 9.6K bytes
    - Viewed (0)
Back to top