Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 42 for IsStmt (0.15 sec)

  1. src/go/format/format.go

    // Node formats node in canonical gofmt style and writes the result to dst.
    //
    // The node type must be *[ast.File], *[printer.CommentedNode], [][ast.Decl],
    // [][ast.Stmt], or assignment-compatible to [ast.Expr], [ast.Decl], [ast.Spec],
    // or [ast.Stmt]. Node does not modify node. Imports are not sorted for
    // nodes representing partial source files (for instance, if the node is
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  2. tests/connpool_test.go

    	"gorm.io/driver/mysql"
    	"gorm.io/gorm"
    	. "gorm.io/gorm/utils/tests"
    )
    
    type wrapperTx struct {
    	*sql.Tx
    	conn *wrapperConnPool
    }
    
    func (c *wrapperTx) PrepareContext(ctx context.Context, query string) (*sql.Stmt, error) {
    	c.conn.got = append(c.conn.got, query)
    	return c.Tx.PrepareContext(ctx, query)
    }
    
    func (c *wrapperTx) ExecContext(ctx context.Context, query string, args ...interface{}) (sql.Result, error) {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Tue Feb 06 02:54:40 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  3. platforms/core-configuration/model-groovy/src/main/java/org/gradle/model/dsl/internal/transform/ModelBlockTransformer.java

     * limitations under the License.
     */
    
    package org.gradle.model.dsl.internal.transform;
    
    import org.codehaus.groovy.ast.expr.MethodCallExpression;
    import org.codehaus.groovy.ast.stmt.Statement;
    import org.codehaus.groovy.control.CompilationFailedException;
    import org.codehaus.groovy.control.Phases;
    import org.codehaus.groovy.control.SourceUnit;
    import org.codehaus.groovy.syntax.SyntaxException;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  4. platforms/core-configuration/base-services-groovy/src/main/java/org/gradle/groovy/scripts/internal/StatementReplacingVisitorSupport.java

     */
    
    package org.gradle.groovy.scripts.internal;
    
    import java.util.List;
    import java.util.ListIterator;
    
    import org.codehaus.groovy.ast.ClassCodeVisitorSupport;
    import org.codehaus.groovy.ast.stmt.*;
    import org.codehaus.groovy.control.SourceUnit;
    
    /**
     * Adds the ability to replace statements.
     */
    // Implementation note: It is only necessary to override visit methods
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 10:00:26 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  5. platforms/core-configuration/base-services-groovy/src/main/java/org/gradle/groovy/scripts/internal/RestrictiveCodeVisitor.java

     */
    
    package org.gradle.groovy.scripts.internal;
    
    import org.codehaus.groovy.ast.ASTNode;
    import org.codehaus.groovy.ast.CodeVisitorSupport;
    import org.codehaus.groovy.ast.expr.*;
    import org.codehaus.groovy.ast.stmt.*;
    import org.codehaus.groovy.classgen.BytecodeExpression;
    import org.codehaus.groovy.control.SourceUnit;
    import org.codehaus.groovy.syntax.SyntaxException;
    
    public class RestrictiveCodeVisitor extends CodeVisitorSupport {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 10:00:26 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/httpresponse/httpresponse.go

    // block and returns the suffix of its statements starting with the current
    // node, along with the number of call expressions encountered.
    func restOfBlock(stack []ast.Node) ([]ast.Stmt, int) {
    	var ncalls int
    	for i := len(stack) - 1; i >= 0; i-- {
    		if b, ok := stack[i].(*ast.BlockStmt); ok {
    			for j, v := range b.List {
    				if v == stack[i+1] {
    					return b.List[j:], ncalls
    				}
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 5K bytes
    - Viewed (0)
  7. src/go/ast/example_test.go

    	//     21  .  .  .  .  .  Closing: 3:11
    	//     22  .  .  .  .  }
    	//     23  .  .  .  }
    	//     24  .  .  .  Body: *ast.BlockStmt {
    	//     25  .  .  .  .  Lbrace: 3:13
    	//     26  .  .  .  .  List: []ast.Stmt (len = 1) {
    	//     27  .  .  .  .  .  0: *ast.ExprStmt {
    	//     28  .  .  .  .  .  .  X: *ast.CallExpr {
    	//     29  .  .  .  .  .  .  .  Fun: *ast.Ident {
    	//     30  .  .  .  .  .  .  .  .  NamePos: 4:2
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 21:44:50 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/coverage/cover.go

    	callx := typecheck.Call(pos, fn, []ir.Node{mdauspx, lenx, hashx,
    		pkPathNode, pkIdNode, cmodeNode, cgranNode}, false)
    	assign := callx
    	if pkid == coverage.NotHardCoded {
    		assign = typecheck.Stmt(ir.NewAssignStmt(pos, cnames.PkgIdVar, callx))
    	}
    
    	// Tack the call onto the start of our init function. We do this
    	// early in the init since it's possible that instrumented function
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 29 21:55:46 UTC 2024
    - 6K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/walk/closure.go

    		n.X = cheapExpr(n.X, init)
    		n.X = walkExpr(n.X, nil)
    
    		tab := ir.NewUnaryExpr(base.Pos, ir.OITAB, n.X)
    		check := ir.NewUnaryExpr(base.Pos, ir.OCHECKNIL, tab)
    		init.Append(typecheck.Stmt(check))
    	}
    
    	typ := typecheck.MethodValueType(n)
    
    	clos := ir.NewCompLitExpr(base.Pos, ir.OCOMPLIT, typ, nil)
    	clos.SetEsc(n.Esc())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 20 15:56:08 UTC 2023
    - 6.5K bytes
    - Viewed (0)
  10. src/go/ast/walk.go

    	// Statements
    	case *BadStmt:
    		// nothing to do
    
    	case *DeclStmt:
    		Walk(v, n.Decl)
    
    	case *EmptyStmt:
    		// nothing to do
    
    	case *LabeledStmt:
    		Walk(v, n.Label)
    		Walk(v, n.Stmt)
    
    	case *ExprStmt:
    		Walk(v, n.X)
    
    	case *SendStmt:
    		Walk(v, n.Chan)
    		Walk(v, n.Value)
    
    	case *IncDecStmt:
    		Walk(v, n.X)
    
    	case *AssignStmt:
    		walkList(v, n.Lhs)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 16:34:10 UTC 2024
    - 6.4K bytes
    - Viewed (0)
Back to top