Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for isExpr (0.09 sec)

  1. src/go/build/constraint/expr.go

    	Eval(ok func(tag string) bool) bool
    
    	// The presence of an isExpr method explicitly marks the type as an Expr.
    	// Only implementations in this package should be used as Exprs.
    	isExpr()
    }
    
    // A TagExpr is an [Expr] for the single tag Tag.
    type TagExpr struct {
    	Tag string // for example, “linux” or “cgo”
    }
    
    func (x *TagExpr) isExpr() {}
    
    func (x *TagExpr) Eval(ok func(tag string) bool) bool {
    	return ok(x.Tag)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 14.2K bytes
    - Viewed (0)
  2. src/go/printer/testdata/parser.go

    	}
    	p.expectSemi()
    
    	return &ast.BranchStmt{pos, tok, label}
    }
    
    func (p *parser) makeExpr(s ast.Stmt) ast.Expr {
    	if s == nil {
    		return nil
    	}
    	if es, isExpr := s.(*ast.ExprStmt); isExpr {
    		return p.checkExpr(es.X)
    	}
    	p.error(s.Pos(), "expected condition, found simple statement")
    	return &ast.BadExpr{s.Pos(), s.End()}
    }
    
    func (p *parser) parseIfStmt() *ast.IfStmt {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 20 20:19:51 UTC 2023
    - 50.5K bytes
    - Viewed (0)
  3. src/go/parser/parser.go

    	return &ast.BranchStmt{TokPos: pos, Tok: tok, Label: label}
    }
    
    func (p *parser) makeExpr(s ast.Stmt, want string) ast.Expr {
    	if s == nil {
    		return nil
    	}
    	if es, isExpr := s.(*ast.ExprStmt); isExpr {
    		return es.X
    	}
    	found := "simple statement"
    	if _, isAss := s.(*ast.AssignStmt); isAss {
    		found = "assignment"
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 08 20:07:50 UTC 2023
    - 72.2K 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/ssa/_gen/rulegen.go

    	"os"
    	"path"
    	"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}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Sep 02 22:09:21 UTC 2023
    - 48.7K bytes
    - Viewed (0)
  6. build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/tasks/AbstractCheckOrUpdateContributorsInReleaseNotes.kt

            return invokeGitHubApi(uri, GitHubUser::class.java)
        }
    
        private
        fun getMergedContributorPullRequests(pageNumber: Int): List<GitHubPullRequest> {
            val uri = "https://api.github.com/search/issues?q=is:pr+is:merged+repo:gradle/gradle+label:%22from:contributor%22&sort=updated&order=desc&per_page=$pageSize&page=$pageNumber"
            return invokeGitHubApi(uri, GitHubPullRequestSearchResult::class.java).items
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 16 05:03:11 UTC 2022
    - 5.7K bytes
    - Viewed (0)
  7. subprojects/core/src/integTest/groovy/org/gradle/api/CrossBuildScriptCachingIntegrationSpec.groovy

                }
                result.add(new ClassDetails(matcher.group(1), matcher.group(2), matcher.group(3)))
            }
            return result
        }
    
        String instrument(String idExpr) {
            return """println("script=" + $idExpr + "=" + getClass().name + "," + getClass().classLoader.getURLs().collect { new File(it.toURI()) })"""
        }
    
        String simpleBuild(String content = '') {
            """
                ${content}
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 17:32:21 UTC 2024
    - 24.2K bytes
    - Viewed (0)
  8. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirExpressionTypeProvider.kt

            unwrapQualified<KtWhileExpressionBase> { whileExpr, cond -> whileExpr.condition == cond } != null
    
        private fun PsiElement.isIfCondition() =
            unwrapQualified<KtIfExpression> { ifExpr, cond -> ifExpr.condition == cond } != null
    
        override fun isDefinitelyNull(expression: KtExpression): Boolean =
            getDefiniteNullability(expression) == DefiniteNullability.DEFINITELY_NULL
    
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jun 11 15:45:42 UTC 2024
    - 24.4K bytes
    - Viewed (0)
Back to top