Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 925 for mexpr (0.06 sec)

  1. src/cmd/compile/internal/ssa/_gen/rulegen.go

    	}
    	if token.IsIdentifier(m) {
    		cnt[m]++
    		return
    	}
    	// Split up input.
    	name, expr := splitNameExpr(m)
    	if name != "" {
    		cnt[name]++
    	}
    	if expr[0] != '(' || expr[len(expr)-1] != ')' {
    		log.Fatalf("%s: non-compound expr in varCount1: %q", loc, expr)
    	}
    	s := split(expr[1 : len(expr)-1])
    	for _, arg := range s[1:] {
    		varCount1(loc, arg, cnt)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Sep 02 22:09:21 UTC 2023
    - 48.7K bytes
    - Viewed (0)
  2. src/go/types/union.go

    // Avoid excessive type-checking times due to quadratic termlist operations.
    const maxTermCount = 100
    
    // parseUnion parses uexpr as a union of expressions.
    // The result is a Union type, or Typ[Invalid] for some errors.
    func parseUnion(check *Checker, uexpr ast.Expr) Type {
    	blist, tlist := flattenUnion(nil, uexpr)
    	assert(len(blist) == len(tlist)-1)
    
    	var terms []*Term
    
    	var u Type
    	for i, x := range tlist {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/syntax/nodes.go

    		expr
    	}
    
    	// (X)
    	ParenExpr struct {
    		X Expr
    		expr
    	}
    
    	// X.Sel
    	SelectorExpr struct {
    		X   Expr
    		Sel *Name
    		expr
    	}
    
    	// X[Index]
    	// X[T1, T2, ...] (with Ti = Index.(*ListExpr).ElemList[i])
    	IndexExpr struct {
    		X     Expr
    		Index Expr
    		expr
    	}
    
    	// X[Index[0] : Index[1] : Index[2]]
    	SliceExpr struct {
    		X     Expr
    		Index [3]Expr
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 20 14:52:38 UTC 2023
    - 9K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/call.go

    	var inst *syntax.IndexExpr // function instantiation, if any
    	if iexpr, _ := call.Fun.(*syntax.IndexExpr); iexpr != nil {
    		if check.indexExpr(x, iexpr) {
    			// Delay function instantiation to argument checking,
    			// where we combine type and value arguments for type
    			// inference.
    			assert(x.mode == value)
    			inst = iexpr
    		}
    		x.expr = iexpr
    		check.record(x)
    	} else {
    		check.exprOrType(x, call.Fun, true)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 31.5K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/syntax/parser.go

    func (p *parser) pexpr(x Expr, keep_parens bool) Expr {
    	if trace {
    		defer p.trace("pexpr")()
    	}
    
    	if x == nil {
    		x = p.operand(keep_parens)
    	}
    
    loop:
    	for {
    		pos := p.pos()
    		switch p.tok {
    		case _Dot:
    			p.next()
    			switch p.tok {
    			case _Name:
    				// pexpr '.' sym
    				t := new(SelectorExpr)
    				t.pos = pos
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 62.9K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/tools/internal/analysisinternal/analysis.go

    	case *types.Struct:
    		texpr := TypeExpr(f, pkg, typ) // typ because we want the name here.
    		if texpr == nil {
    			return nil
    		}
    		return &ast.CompositeLit{
    			Type: texpr,
    		}
    	}
    	return nil
    }
    
    // IsZeroValue checks whether the given expression is a 'zero value' (as determined by output of
    // analysisinternal.ZeroValue)
    func IsZeroValue(expr ast.Expr) bool {
    	switch e := expr.(type) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/types2/resolver.go

    	for {
    		// check if we have a pointer type
    		// if pexpr, _ := typ.(*ast.StarExpr); pexpr != nil {
    		if pexpr, _ := typ.(*syntax.Operation); pexpr != nil && pexpr.Op == syntax.Mul && pexpr.Y == nil {
    			// if we've already seen a pointer, we're done
    			if ptr {
    				return false, nil
    			}
    			ptr = true
    			typ = syntax.Unparen(pexpr.X) // continue with pointer base type
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 14:10:44 UTC 2024
    - 26.3K bytes
    - Viewed (0)
  8. src/go/types/resolver.go

    		// var decl w/o init expr
    		if s.Type == nil {
    			check.error(s, code, "missing type or init expr")
    		}
    	case l < r:
    		if l < len(s.Values) {
    			// init exprs from s
    			n := s.Values[l]
    			check.errorf(n, code, "extra init expr %s", n)
    			// TODO(gri) avoid declared and not used error here
    		} else {
    			// init exprs "inherited"
    			check.errorf(s, code, "extra init expr at %s", check.fset.Position(init.Pos()))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 16:22:59 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  9. tensorflow/c/tf_status_helper.h

    }  // namespace tensorflow
    
    #define TF_STATUS_ASSIGN_OR_RETURN(lhs, rexpr, c_status) \
      _TF_STATUS_ASSIGN_OR_RETURN_IMPL(                      \
          _TF_STATUS_CONCAT(_status_or_value, __COUNTER__), lhs, rexpr, c_status);
    
    #define _TF_STATUS_ASSIGN_OR_RETURN_IMPL(statusor, lhs, rexpr, c_status) \
      auto statusor = (rexpr);                                               \
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Apr 14 21:57:32 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  10. src/go/printer/testdata/statements.golden

    	for expr {
    	}	// no semicolons and parens printed
    	for ; ; expr = false {
    	}
    	for x := expr; expr; {
    		use(x)
    	}
    	for x := expr; ; expr = false {
    		use(x)
    	}
    	for ; expr; expr = false {
    	}
    	for x := expr; expr; expr = false {
    		use(x)
    	}
    	for range []int{} {
    		println("foo")
    	}
    	for x := range []int{} {
    		use(x)
    	}
    	for x := range []int{} {
    		use(x)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 12 18:18:12 UTC 2014
    - 8K bytes
    - Viewed (0)
Back to top