Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 28 for NewBar (0.13 sec)

  1. subprojects/composite-builds/src/integTest/groovy/org/gradle/integtests/composite/plugins/PluginBuildsIntegrationTest.groovy

                }
                dependencies {
                    implementation("${build.group}:${build.buildName}")
                }
            """
            file("src/main/java/Foo.java") << """
                class Foo { Bar newBar() { return new Bar(); }}
            """
    
            then:
            succeeds("build")
            executed(":${build.buildName}:compileJava")
            executed(":compileJava")
            build.assertProjectPluginApplied()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 06 08:15:28 UTC 2023
    - 18.4K bytes
    - Viewed (0)
  2. test/escape2.go

    	**xxx = *yy
    }
    
    func foo18(y int) { // ERROR "moved to heap: y$"
    	*xxx = &y
    }
    
    func foo19(y int) {
    	**xxx = y
    }
    
    type Bar struct {
    	i  int
    	ii *int
    }
    
    func NewBar() *Bar {
    	return &Bar{42, nil} // ERROR "&Bar{...} escapes to heap$"
    }
    
    func NewBarp(x *int) *Bar { // ERROR "leaking param: x$"
    	return &Bar{42, x} // ERROR "&Bar{...} escapes to heap$"
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 14 17:22:18 UTC 2023
    - 35.1K bytes
    - Viewed (0)
  3. test/escape2n.go

    	**xxx = *yy
    }
    
    func foo18(y int) { // ERROR "moved to heap: y$"
    	*xxx = &y
    }
    
    func foo19(y int) {
    	**xxx = y
    }
    
    type Bar struct {
    	i  int
    	ii *int
    }
    
    func NewBar() *Bar {
    	return &Bar{42, nil} // ERROR "&Bar{...} escapes to heap$"
    }
    
    func NewBarp(x *int) *Bar { // ERROR "leaking param: x$"
    	return &Bar{42, x} // ERROR "&Bar{...} escapes to heap$"
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 14 17:22:18 UTC 2023
    - 35.1K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/check.go

    	if m := check.Types; m != nil {
    		for {
    			tv := m[x]
    			assert(tv.Type != nil) // should have been recorded already
    			pos := x.Pos()
    			tv.Type = NewTuple(
    				NewVar(pos, check.pkg, "", t0),
    				NewVar(pos, check.pkg, "", t1),
    			)
    			m[x] = tv
    			// if x is a parenthesized expression (p.X), update p.X
    			p, _ := x.(*syntax.ParenExpr)
    			if p == nil {
    				break
    			}
    			x = p.X
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 23.3K bytes
    - Viewed (0)
  5. src/go/internal/gcimporter/iimport.go

    		// completely set up all types in ImportData.
    		r.p.later = append(r.p.later, setConstraintArgs{t: t, constraint: constraint})
    
    	case 'V':
    		typ := r.typ()
    
    		r.declare(types.NewVar(pos, r.currPkg, name, typ))
    
    	default:
    		errorf("unexpected tag: %v", tag)
    	}
    }
    
    func (r *importReader) declare(obj types.Object) {
    	obj.Pkg().Scope().Insert(obj)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  6. src/go/types/stmt.go

    				// declare new variable
    				name := identName(ident)
    				obj = NewVar(ident.Pos(), check.pkg, name, nil)
    				check.recordDef(ident, obj)
    				// _ variables don't count as new variables
    				if name != "_" {
    					vars = append(vars, obj)
    				}
    			} else {
    				check.errorf(lhs, InvalidSyntaxTree, "cannot declare %s", lhs)
    				obj = NewVar(lhs.Pos(), check.pkg, "_", nil) // dummy variable
    			}
    			assert(obj.typ == nil)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 30.6K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/types2/assignments.go

    			}
    			continue
    		}
    
    		// declare new variable
    		obj := NewVar(ident.Pos(), check.pkg, name, nil)
    		lhsVars[i] = obj
    		if name != "_" {
    			newVars = append(newVars, obj)
    		}
    		check.recordDef(ident, obj)
    	}
    
    	// create dummy variables where the lhs is invalid
    	for i, obj := range lhsVars {
    		if obj == nil {
    			lhsVars[i] = NewVar(lhs[i].Pos(), check.pkg, "_", nil)
    		}
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 23 21:21:43 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  8. src/go/types/assignments.go

    			}
    			continue
    		}
    
    		// declare new variable
    		obj := NewVar(ident.Pos(), check.pkg, name, nil)
    		lhsVars[i] = obj
    		if name != "_" {
    			newVars = append(newVars, obj)
    		}
    		check.recordDef(ident, obj)
    	}
    
    	// create dummy variables where the lhs is invalid
    	for i, obj := range lhsVars {
    		if obj == nil {
    			lhsVars[i] = NewVar(lhs[i].Pos(), check.pkg, "_", nil)
    		}
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  9. src/go/internal/gcimporter/ureader.go

    				methods := make([]*types.Func, iface.NumExplicitMethods())
    				for i := range methods {
    					fn := iface.ExplicitMethod(i)
    					sig := fn.Type().(*types.Signature)
    
    					recv := types.NewVar(fn.Pos(), fn.Pkg(), "", named)
    					methods[i] = types.NewFunc(fn.Pos(), fn.Pkg(), fn.Name(), types.NewSignature(recv, sig.Params(), sig.Results(), sig.Variadic()))
    				}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/tests/tpu-variable-runtime-reformatting.mlir

              "tf._Unknown_"(%id0) : (!tf_res_md_f32) -> ()
              %newvar = "tf._SomeOp"() : () -> !tf_res_f32
              %rep:2 = tf_device.replicate([%arg0, %arg1] as %arg30: !tf_res_f32,
                                           [%arg2, %arg3] as %arg31: !tf_res_md_f32,
                                           [%newvar, %arg4] as %arg32 : !tf_res_f32)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 31 08:59:10 UTC 2023
    - 25.4K bytes
    - Viewed (0)
Back to top