- Sort Score
- Result 10 results
- Languages All
Results 31 - 38 of 38 for NewBar (0.16 sec)
-
src/go/types/resolver.go
// for a later phase. d1 = &declInfo{file: fileScope, lhs: lhs, vtyp: d.spec.Type, init: d.spec.Values[0]} } // declare all variables for i, name := range d.spec.Names { obj := NewVar(name.Pos(), pkg, name.Name, nil) lhs[i] = obj di := d1 if di == nil { // individual assignments var init ast.Expr if i < len(d.spec.Values) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 16:22:59 UTC 2024 - 26.1K bytes - Viewed (0) -
src/cmd/compile/internal/types2/decl.go
check.declare(check.scope, name, lhs[i], scopePos) } case *syntax.VarDecl: top := len(check.delayed) lhs0 := make([]*Var, len(s.NameList)) for i, name := range s.NameList { lhs0[i] = NewVar(name.Pos(), pkg, name.Value, nil) } // initialize all variables values := syntax.UnpackListExpr(s.Values) for i, obj := range lhs0 { var lhs []*Var var init syntax.Expr
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 29.6K bytes - Viewed (0) -
src/go/types/issues_test.go
t.Error("comparable not assignable to any") } } func TestIssue55030(t *testing.T) { // makeSig makes the signature func(typ...) makeSig := func(typ Type) { par := NewVar(nopos, nil, "", typ) params := NewTuple(par) NewSignatureType(nil, nil, nil, params, nil, true) } // makeSig must not panic for the following (example) types: // []int makeSig(NewSlice(Typ[Int]))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 28.1K bytes - Viewed (0) -
src/cmd/compile/internal/types2/issues_test.go
t.Error("comparable not assignable to any") } } func TestIssue55030(t *testing.T) { // makeSig makes the signature func(typ...) makeSig := func(typ Type) { par := NewVar(nopos, nil, "", typ) params := NewTuple(par) NewSignatureType(nil, nil, nil, params, nil, true) } // makeSig must not panic for the following (example) types: // []int makeSig(NewSlice(Typ[Int]))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 28.1K bytes - Viewed (0) -
src/go/internal/gccgoimporter/parser.go
} param = types.NewParam(token.NoPos, pkg, name, typ) return } // Var = Name Type . func (p *parser) parseVar(pkg *types.Package) *types.Var { name := p.parseName() v := types.NewVar(token.NoPos, pkg, name, p.parseType(pkg)) if name[0] == '.' || name[0] == '<' { // This is an unexported variable, // or a variable defined in a different package. // We only want to record exported variables.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 02 23:14:07 UTC 2024 - 31.2K bytes - Viewed (0) -
src/go/types/decl.go
check.declare(check.scope, name, lhs[i], scopePos) } case varDecl: top := len(check.delayed) lhs0 := make([]*Var, len(d.spec.Names)) for i, name := range d.spec.Names { lhs0[i] = NewVar(name.Pos(), pkg, name.Name, nil) } // initialize all variables for i, obj := range lhs0 { var lhs []*Var var init ast.Expr switch len(d.spec.Values) { case len(d.spec.Names):
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 31K bytes - Viewed (0) -
api/go1.5.txt
pkg go/types, func NewStruct([]*Var, []string) *Struct pkg go/types, func NewTuple(...*Var) *Tuple pkg go/types, func NewTypeName(token.Pos, *Package, string, Type) *TypeName pkg go/types, func NewVar(token.Pos, *Package, string, Type) *Var pkg go/types, func ObjectString(Object, Qualifier) string pkg go/types, func RelativeTo(*Package) Qualifier pkg go/types, func SelectionString(*Selection, Qualifier) string
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jul 30 21:14:09 UTC 2015 - 46.6K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go
{"NewSlice", Func, 5}, {"NewStruct", Func, 5}, {"NewTerm", Func, 18}, {"NewTuple", Func, 5}, {"NewTypeName", Func, 5}, {"NewTypeParam", Func, 18}, {"NewUnion", Func, 18}, {"NewVar", Func, 5}, {"Nil", Type, 5}, {"Object", Type, 5}, {"ObjectString", Func, 5}, {"Package", Type, 5}, {"PkgName", Type, 5}, {"Pointer", Type, 5}, {"Qualifier", Type, 5},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 534.2K bytes - Viewed (0)