Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 104 for mexpr (0.2 sec)

  1. src/cmd/compile/internal/types2/expr.go

    func (check *Checker) binary(x *operand, e syntax.Expr, lhs, rhs syntax.Expr, op syntax.Operator) {
    	var y operand
    
    	check.expr(nil, x, lhs)
    	check.expr(nil, &y, rhs)
    
    	if x.mode == invalid {
    		return
    	}
    	if y.mode == invalid {
    		x.mode = invalid
    		x.expr = y.expr
    		return
    	}
    
    	if isShift(op) {
    		check.shift(x, &y, e, op)
    		return
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 51.7K bytes
    - Viewed (0)
  2. src/go/types/expr.go

    func (check *Checker) binary(x *operand, e ast.Expr, lhs, rhs ast.Expr, op token.Token, opPos token.Pos) {
    	var y operand
    
    	check.expr(nil, x, lhs)
    	check.expr(nil, &y, rhs)
    
    	if x.mode == invalid {
    		return
    	}
    	if y.mode == invalid {
    		x.mode = invalid
    		x.expr = y.expr
    		return
    	}
    
    	if isShift(op) {
    		check.shift(x, &y, e, op)
    		return
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 49.7K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. src/go/types/operand.go

    		}
    	}
    
    	var buf bytes.Buffer
    
    	var expr string
    	if x.expr != nil {
    		expr = ExprString(x.expr)
    	} else {
    		switch x.mode {
    		case builtin:
    			expr = predeclaredFuncs[x.id].name
    		case typexpr:
    			expr = TypeString(x.typ, qf)
    		case constant_:
    			expr = x.val.String()
    		}
    	}
    
    	// <expr> (
    	if expr != "" {
    		buf.WriteString(expr)
    		buf.WriteString(" (")
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 21:17:10 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  8. platforms/core-configuration/declarative-dsl-core/src/main/kotlin/org/gradle/internal/declarativedsl/dom/fromLanguageTree/LanguageTreeToDom.kt

            data class Failed(val errors: Collection<DocumentError>) : ExprConversion
        }
    
    
        private
        fun exprToValue(expr: Expr): ExprConversion = when (expr) {
            is Literal<*> -> ExprConversion.Converted(literalNode(expr))
            is FunctionCall -> run {
                val errors = mutableListOf<DocumentError>()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 31 13:47:09 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/types2/operand.go

    		}
    	}
    
    	var buf bytes.Buffer
    
    	var expr string
    	if x.expr != nil {
    		expr = ExprString(x.expr)
    	} else {
    		switch x.mode {
    		case builtin:
    			expr = predeclaredFuncs[x.id].name
    		case typexpr:
    			expr = TypeString(x.typ, qf)
    		case constant_:
    			expr = x.val.String()
    		}
    	}
    
    	// <expr> (
    	if expr != "" {
    		buf.WriteString(expr)
    		buf.WriteString(" (")
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 21:17:10 UTC 2024
    - 11K bytes
    - Viewed (0)
  10. platforms/core-configuration/declarative-dsl-core/src/main/kotlin/org/gradle/internal/declarativedsl/language/LanguageTree.kt

    }
    
    
    sealed interface FunctionArgument : LanguageTreeElement {
        sealed interface ValueArgument : FunctionArgument {
            val expr: Expr
        }
    
        data class Positional(override val expr: Expr, override val sourceData: SourceData) : ValueArgument
        data class Named(val name: String, override val expr: Expr, override val sourceData: SourceData) : ValueArgument
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 14 10:08:01 UTC 2024
    - 3K bytes
    - Viewed (0)
Back to top