- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 58 for typesDoc (0.28 sec)
-
src/go/types/api.go
// associated with the [*ast.FuncType]. // // The following node types may appear in Scopes: // // *ast.File // *ast.FuncType // *ast.TypeSpec // *ast.BlockStmt // *ast.IfStmt // *ast.SwitchStmt // *ast.TypeSwitchStmt // *ast.CaseClause // *ast.CommClause // *ast.ForStmt // *ast.RangeStmt //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 19:57:43 UTC 2024 - 17.2K bytes - Viewed (0) -
src/go/printer/testdata/parser.go
if p.trace { defer un(trace(p, "TypeSpec")) } ident := p.parseIdent() // Go spec: The scope of a type identifier declared inside a function begins // at the identifier in the TypeSpec and ends at the end of the innermost // containing block. // (Global identifiers are resolved in a separate phase after parsing.) spec := &ast.TypeSpec{doc, ident, nil, nil}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jul 20 20:19:51 UTC 2023 - 50.5K bytes - Viewed (0) -
src/go/printer/printer.go
func getDoc(n ast.Node) *ast.CommentGroup { switch n := n.(type) { case *ast.Field: return n.Doc case *ast.ImportSpec: return n.Doc case *ast.ValueSpec: return n.Doc case *ast.TypeSpec: return n.Doc case *ast.GenDecl: return n.Doc case *ast.FuncDecl: return n.Doc case *ast.File: return n.Doc } return nil }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 12:02:03 UTC 2023 - 41.6K bytes - Viewed (0) -
src/cmd/fix/typecheck.go
} } // gather struct declarations for _, decl := range f.Decls { d, ok := decl.(*ast.GenDecl) if ok { for _, s := range d.Specs { switch s := s.(type) { case *ast.TypeSpec: if cfg1.Type[s.Name.Name] != nil { break } if !copied { copied = true // Copy map lazily: it's time. cfg1.Type = make(map[string]*Type)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 16 22:02:42 UTC 2022 - 20.1K bytes - Viewed (0) -
src/go/parser/parser.go
} spec.Type = p.parseType() } func (p *parser) parseTypeSpec(doc *ast.CommentGroup, _ token.Token, _ int) ast.Spec { if p.trace { defer un(trace(p, "TypeSpec")) } name := p.parseIdent() spec := &ast.TypeSpec{Doc: doc, Name: name} if p.tok == token.LBRACK { // spec.Name "[" ... // array/slice type or type parameter list lbrack := p.pos p.next()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Dec 08 20:07:50 UTC 2023 - 72.2K bytes - Viewed (0) -
src/go/types/resolver.go
init ast.Expr // init/orig expression, or nil (for const and var declarations only) inherited bool // if set, the init expression is inherited from a previous constant declaration tdecl *ast.TypeSpec // type declaration, or nil fdecl *ast.FuncDecl // func declaration, or nil // The deps field tracks initialization expression dependencies. deps map[Object]bool // lazily initialized }
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
} case *syntax.TypeDecl: obj := NewTypeName(s.Name.Pos(), pkg, s.Name.Value, nil) // spec: "The scope of a type identifier declared inside a function // begins at the identifier in the TypeSpec and ends at the end of // the innermost containing block." scopePos := s.Name.Pos() check.declare(check.scope, s.Name, obj, scopePos)
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
if err != nil { if _, ok := err.(Error); !ok { t.Fatal(err) } } ast.Inspect(f, func(n ast.Node) bool { if spec, _ := n.(*ast.TypeSpec); spec != nil { if tv, ok := info.Types[spec.Type]; ok && spec.Name.Name == "T" { want := strings.Count(src, ";") + 1 if got := tv.Type.(*Struct).NumFields(); got != want {
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/vendor/golang.org/x/tools/internal/stdlib/manifest.go
{"TypeAssertExpr.Rparen", Field, 2}, {"TypeAssertExpr.Type", Field, 0}, {"TypeAssertExpr.X", Field, 0}, {"TypeSpec", Type, 0}, {"TypeSpec.Assign", Field, 9}, {"TypeSpec.Comment", Field, 0}, {"TypeSpec.Doc", Field, 0}, {"TypeSpec.Name", Field, 0}, {"TypeSpec.Type", Field, 0}, {"TypeSpec.TypeParams", Field, 18}, {"TypeSwitchStmt", Type, 0}, {"TypeSwitchStmt.Assign", Field, 0},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 534.2K bytes - Viewed (0) -
src/cmd/compile/internal/syntax/parser.go
d.NameList = p.nameList(p.name()) if p.tok != _EOF && p.tok != _Semi && p.tok != _Rparen { d.Type = p.typeOrNil() if p.gotAssign() { d.Values = p.exprList() } } return d } // TypeSpec = identifier [ TypeParams ] [ "=" ] Type . func (p *parser) typeDecl(group *Group) Decl { if trace { defer p.trace("typeDecl")() } d := new(TypeDecl) d.pos = p.pos() d.Group = group
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 62.9K bytes - Viewed (0)