Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for plusBuild (0.16 sec)

  1. src/go/printer/gobuild.go

    	if len(p.goBuild) > 0 && p.goBuild[0] < insert {
    		insert = p.goBuild[0]
    	} else if len(p.plusBuild) > 0 && p.plusBuild[0] < insert {
    		insert = p.plusBuild[0]
    	}
    
    	var x constraint.Expr
    	switch len(p.goBuild) {
    	case 0:
    		// Synthesize //go:build expression from // +build lines.
    		for _, pos := range p.plusBuild {
    			y, err := constraint.Parse(p.commentTextAt(pos))
    			if err != nil {
    				x = nil
    				break
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/buildtag/buildtag.go

    			// Even so, report.
    			check.pass.Reportf(pos, "%v", err)
    			check.crossCheck = false
    			return
    		}
    		if check.plusBuild == nil {
    			check.plusBuild = y
    		} else {
    			check.plusBuild = &constraint.AndExpr{X: check.plusBuild, Y: y}
    		}
    	}
    }
    
    func (check *checker) finish() {
    	if !check.crossCheck || check.plusBuildPos == token.NoPos || check.goBuildPos == token.NoPos {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 9.3K bytes
    - Viewed (0)
Back to top