Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 2,729 for ninit (0.11 sec)

  1. src/go/parser/testdata/resolution/resolution.src

    // license that can be found in the LICENSE file.
    
    package resolution
    
    func f /* =@fdecl */(n /* =@narg */ ast.Node) bool {
    		if n /* =@ninit */, ok /* =@ok */ := n /* @narg */ .(*ast.SelectorExpr); ok /* @ok */ {
    			sel = n /* @ninit */
    	}
    }
    
    type c /* =@cdecl */ map[token.Pos]resolvedObj
    
    func (v /* =@vdecl */ c /* @cdecl */) Visit(node /* =@nodearg */ ast.Node) (w /* =@w */ ast.Visitor) {}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 16 21:19:23 UTC 2021
    - 1.5K bytes
    - Viewed (0)
  2. test/fixedbugs/issue17449.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Issue 17449: race instrumentation copies over previous instrumented nodes from parents block into child's Ninit block.
    // This code surfaces the duplication at compile time because of generated inline labels.
    
    package master
    
    type PriorityList struct {
        elems []interface{}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 1K bytes
    - Viewed (0)
  3. test/fixedbugs/issue15091.go

    // or (now, with the error caught earlier)
    //    Treating auto as if it were arg, func (*Html).xyzzy, node ...
    // caused by racewalker inserting instrumentation before an OAS where the Ninit
    // of the OAS defines part of its right-hand-side. (I.e., the race instrumentation
    // references a variable before it is defined.)
    func (options *Html) xyzzy(id string) string {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 989 bytes
    - Viewed (0)
  4. src/cmd/compile/internal/walk/order.go

    					if colas {
    						if len(init) > 0 && init[0].Op() == ir.ODCL && init[0].(*ir.Decl).X == n {
    							init = init[1:]
    
    							// iimport may have added a default initialization assignment,
    							// due to how it handles ODCL statements.
    							if len(init) > 0 && init[0].Op() == ir.OAS && init[0].(*ir.AssignStmt).X == n {
    								init = init[1:]
    							}
    						}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 02:00:33 UTC 2024
    - 42.7K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/walk/expr.go

    //
    //	n.Left = walkExpr(n.Left, init)
    func walkExpr(n ir.Node, init *ir.Nodes) ir.Node {
    	if n == nil {
    		return n
    	}
    
    	if n, ok := n.(ir.InitNode); ok && init == n.PtrInit() {
    		// not okay to use n->ninit when walking n,
    		// because we might replace n with some other node
    		// and would lose the init list.
    		base.Fatalf("walkExpr init == &n->ninit")
    	}
    
    	if len(n.Init()) != 0 {
    		walkStmtList(n.Init())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:34:01 UTC 2024
    - 27.6K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ir/fmt.go

    	const exportFormat = false
    
    	// some statements allow for an init, but at most one,
    	// but we may have an arbitrary number added, eg by typecheck
    	// and inlining. If it doesn't fit the syntax, emit an enclosing
    	// block starting with the init statements.
    
    	// if we can just say "for" n->ninit; ... then do so
    	simpleinit := len(n.Init()) == 1 && len(n.Init()[0].Init()) == 0 && StmtWithInit(n.Op())
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 05 15:20:28 UTC 2023
    - 26K bytes
    - Viewed (0)
  7. src/cmd/go/internal/modcmd/init.go

    must not already exist.
    
    Init accepts one optional argument, the module path for the new module. If the
    module path argument is omitted, init will attempt to infer the module path
    using import comments in .go files, vendoring tool configuration files (like
    Gopkg.lock), and the current directory (if in GOPATH).
    
    See https://golang.org/ref/mod#go-mod-init for more about 'go mod init'.
    `,
    	Run: runInit,
    }
    
    func init() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 19 15:51:46 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  8. test/noinit.go

    func gopherize(s string) string { return "gopher gopher gopher " + s }
    
    var animals = gopherize("badger")
    
    // These init funcs should optimize away.
    
    func init() {
    }
    
    func init() {
    	if false {
    	}
    }
    
    func init() {
    	for false {
    	}
    }
    
    // Actual test: check for init funcs in runtime data structures.
    
    type initTask struct {
    	state uint32
    	nfns  uint32
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 14 17:57:36 UTC 2023
    - 6.8K bytes
    - Viewed (0)
  9. test/init.go

    // license that can be found in the LICENSE file.
    
    // Verify that erroneous use of init is detected.
    // Does not compile.
    
    package main
    
    func init() {
    }
    
    func main() {
    	init()         // ERROR "undefined.*init"
    	runtime.init() // ERROR "undefined.*runtime\.init|reference to undefined name|undefined: runtime"
    	var _ = init   // ERROR "undefined.*init"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 14 20:13:36 UTC 2020
    - 479 bytes
    - Viewed (0)
  10. internal/init/init.go

    //
    // You should have received a copy of the GNU Affero General Public License
    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package init
    
    import "os"
    
    func init() {
    	// All MinIO operations must be under UTC.
    	os.Setenv("TZ", "UTC")
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Nov 04 23:44:38 UTC 2022
    - 874 bytes
    - Viewed (0)
Back to top