Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for InitOrder (0.16 sec)

  1. src/go/types/initorder.go

    // Source: ../../cmd/compile/internal/types2/initorder.go
    
    // Copyright 2014 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package types
    
    import (
    	"container/heap"
    	"fmt"
    	. "internal/types/errors"
    	"sort"
    )
    
    // initOrder computes the Info.InitOrder for package variables.
    func (check *Checker) initOrder() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/initorder.go

    import (
    	"container/heap"
    	"fmt"
    	. "internal/types/errors"
    	"sort"
    )
    
    // initOrder computes the Info.InitOrder for package variables.
    func (check *Checker) initOrder() {
    	// An InitOrder may already have been computed if a package is
    	// built from several calls to (*Checker).Files. Clear it.
    	check.Info.InitOrder = check.Info.InitOrder[:0]
    
    	// Compute the object dependency graph and initialize
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 28 22:06:51 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  3. src/go/types/api.go

    	//
    	Scopes map[ast.Node]*Scope
    
    	// InitOrder is the list of package-level initializers in the order in which
    	// they must be executed. Initializers referring to variables related by an
    	// initialization dependency appear in topological order, the others appear
    	// in source order. Variables without an initialization expression do not
    	// appear in this list.
    	InitOrder []*Initializer
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  4. src/go/types/generate_test.go

    	"hilbert_test.go": func(f *ast.File) { renameImportPath(f, `"cmd/compile/internal/types2"->"go/types"`) },
    	"infer.go":        func(f *ast.File) { fixTokenPos(f); fixInferSig(f) },
    	"initorder.go":    nil,
    	// "initorder.go": fixErrErrorfCall, // disabled for now due to unresolved error_ use implications for gopls
    	"instantiate.go":      func(f *ast.File) { fixTokenPos(f); fixCheckErrorfCall(f) },
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/types2/api.go

    	//
    	Scopes map[syntax.Node]*Scope
    
    	// InitOrder is the list of package-level initializers in the order in which
    	// they must be executed. Initializers referring to variables related by an
    	// initialization dependency appear in topological order, the others appear
    	// in source order. Variables without an initialization expression do not
    	// appear in this list.
    	InitOrder []*Initializer
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 13:48:53 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/check.go

    	check.packageObjects()
    
    	print("== processDelayed ==")
    	check.processDelayed(0) // incl. all functions
    
    	print("== cleanup ==")
    	check.cleanup()
    
    	print("== initOrder ==")
    	check.initOrder()
    
    	if !check.conf.DisableUnusedImportCheck {
    		print("== unusedImports ==")
    		check.unusedImports()
    	}
    
    	print("== recordUntyped ==")
    	check.recordUntyped()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 23.3K bytes
    - Viewed (0)
  7. src/go/types/check.go

    	check.packageObjects()
    
    	print("== processDelayed ==")
    	check.processDelayed(0) // incl. all functions
    
    	print("== cleanup ==")
    	check.cleanup()
    
    	print("== initOrder ==")
    	check.initOrder()
    
    	if !check.conf.DisableUnusedImportCheck {
    		print("== unusedImports ==")
    		check.unusedImports()
    	}
    
    	print("== recordUntyped ==")
    	check.recordUntyped()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/staticinit/sched.go

    		return false
    	}
    	if rn.Embed != nil {
    		return false
    	}
    	orig := rn
    	r := rn.Defn.(*ir.AssignStmt).Y
    	if r == nil {
    		// types2.InitOrder doesn't include default initializers.
    		base.Fatalf("unexpected initializer: %v", rn.Defn)
    	}
    
    	// Variable may have been reassigned by a user-written function call
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 17:16:14 UTC 2024
    - 30.7K bytes
    - Viewed (0)
  9. api/go1.5.txt

    pkg go/types, type Info struct
    pkg go/types, type Info struct, Defs map[*ast.Ident]Object
    pkg go/types, type Info struct, Implicits map[ast.Node]Object
    pkg go/types, type Info struct, InitOrder []*Initializer
    pkg go/types, type Info struct, Scopes map[ast.Node]*Scope
    pkg go/types, type Info struct, Selections map[*ast.SelectorExpr]*Selection
    pkg go/types, type Info struct, Types map[ast.Expr]TypeAndValue
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 30 21:14:09 UTC 2015
    - 46.6K bytes
    - Viewed (0)
Back to top