Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. src/cmd/compile/internal/ssa/rewrite.go

    					// the data flow, it is the better choice.
    					if a.Pos.IsStmt() == src.PosIsStmt {
    						if aa.Block == a.Block && aa.Pos.Line() == a.Pos.Line() && aa.Pos.IsStmt() != src.PosNotStmt {
    							aa.Pos = aa.Pos.WithIsStmt()
    						} else if v.Block == a.Block && v.Pos.Line() == a.Pos.Line() && v.Pos.IsStmt() != src.PosNotStmt {
    							v.Pos = v.Pos.WithIsStmt()
    						} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:02:52 UTC 2024
    - 64.2K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssagen/ssa.go

    }
    
    // newValue1Apos adds a new value with one argument and an aux value to the current block.
    // isStmt determines whether the created values may be a statement or not
    // (i.e., false means never, yes means maybe).
    func (s *state) newValue1Apos(op ssa.Op, t *types.Type, aux ssa.Aux, arg *ssa.Value, isStmt bool) *ssa.Value {
    	if isStmt {
    		return s.curBlock.NewValue1A(s.peekPos(), op, t, aux, arg)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 19:44:43 UTC 2024
    - 284.9K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/tools/internal/analysisinternal/analysis.go

    			return expr
    		}
    	}
    	return enclosingStmt.(ast.Stmt)
    }
    
    // baseIfStmt walks up the if/else-if chain until we get to
    // the top of the current if chain.
    func baseIfStmt(path []ast.Node, index int) ast.Stmt {
    	stmt := path[index]
    	for i := index + 1; i < len(path); i++ {
    		if node, ok := path[i].(*ast.IfStmt); ok && node.Else == stmt {
    			stmt = node
    			continue
    		}
    		break
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  4. callbacks/query.go

    				}
    			}
    
    			if queryFields {
    				stmt := gorm.Statement{DB: db}
    				// smaller struct
    				if err := stmt.Parse(db.Statement.Dest); err == nil && (db.QueryFields || stmt.Schema.ModelType != db.Statement.Schema.ModelType) {
    					clauseSelect.Columns = make([]clause.Column, len(stmt.Schema.DBNames))
    
    					for idx, dbName := range stmt.Schema.DBNames {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 09:51:44 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  5. tests/joins_test.go

    	if !regexp.MustCompile("SELECT .* FROM .users. left join pets.*join accounts.*").MatchString(stmt.SQL.String()) {
    		t.Errorf("joins should be ordered, but got %v", stmt.SQL.String())
    	}
    
    	iv := DB.Table(`table_invoices`).Select(`seller, SUM(total) as total, SUM(paid) as paid, SUM(balance) as balance`).Group(`seller`)
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 10:52:33 UTC 2024
    - 15K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/syntax/positions.go

    		return list[l-1]
    	}
    	return nil
    }
    
    func lastExpr(list []Expr) Expr {
    	if l := len(list); l > 0 {
    		return list[l-1]
    	}
    	return nil
    }
    
    func lastStmt(list []Stmt) Stmt {
    	if l := len(list); l > 0 {
    		return list[l-1]
    	}
    	return nil
    }
    
    func lastField(list []*Field) *Field {
    	if l := len(list); l > 0 {
    		return list[l-1]
    	}
    	return nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 17:49:19 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  7. common/config/.golangci.yml

            # - name: get-return
            # - name: confusing-naming
            # - name: unexported-naming
            # - name: early-return
            # - name: unused-parameter
            # - name: unnecessary-stmt
            # - name: deep-exit
            # - name: import-shadowing
            # - name: modifies-value-receiver
            # - name: unused-receiver
            # - name: bare-return
            # - name: flag-parameter
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jun 04 20:03:06 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  8. subprojects/core/src/main/java/org/gradle/groovy/scripts/internal/DefaultScriptCompilationHandler.java

    import groovy.lang.GroovyClassLoader;
    import groovy.lang.GroovyCodeSource;
    import groovy.lang.GroovyResourceLoader;
    import groovy.lang.Script;
    import org.codehaus.groovy.ast.ClassNode;
    import org.codehaus.groovy.ast.stmt.Statement;
    import org.codehaus.groovy.control.CompilationFailedException;
    import org.codehaus.groovy.control.CompilationUnit;
    import org.codehaus.groovy.control.CompilerConfiguration;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:51:15 UTC 2024
    - 20.6K bytes
    - Viewed (0)
Back to top