- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 108 for decls (0.23 sec)
-
src/internal/types/testdata/check/decls5.go
Robert Griesemer <******@****.***> 1662082688 -0700
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 02 02:58:32 UTC 2022 - 363 bytes - Viewed (0) -
test/decl.go
Alan Donovan <******@****.***> 1360693069 -0500
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 12 18:17:49 UTC 2013 - 926 bytes - Viewed (0) -
src/go/doc/testdata/template.txt
CONSTANTS {{range .}} {{synopsis .Doc}} {{node .Decl $.FSet}} {{end}}{{end}}{{/* */}}{{with .Vars}} VARIABLES {{range .}} {{synopsis .Doc}} {{node .Decl $.FSet}} {{end}}{{end}}{{/* */}}{{with .Funcs}} FUNCTIONS {{range .}} {{synopsis .Doc}} {{node .Decl $.FSet}} {{end}}{{end}}{{/* */}}{{with .Types}} TYPES {{range .}} {{synopsis .Doc}} {{node .Decl $.FSet}}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 08 04:08:51 UTC 2014 - 1.1K bytes - Viewed (0) -
src/cmd/compile/internal/syntax/nodes.go
Name *Name TParamList []*Field // nil means no type parameters Type *FuncType Body *BlockStmt // nil means no body (forward declaration) decl } ) type decl struct{ node } func (*decl) aDecl() {} // All declarations belonging to the same group point to the same Group node. type Group struct { _ int // not empty so we are guaranteed different Group instances }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 20 14:52:38 UTC 2023 - 9K bytes - Viewed (0) -
src/internal/types/testdata/check/const0.go
var ( _ = iota /* ERROR "iota outside constant decl" */ _ = unsafe.Sizeof(iota /* ERROR "iota outside constant decl" */ ) _ = unsafe.Sizeof(func() { _ = iota /* ERROR "iota outside constant decl" */ }) _ = unsafe.Sizeof(func() { var _ = iota /* ERROR "iota outside constant decl" */ }) _ = unsafe.Sizeof(func() { type _ [iota /* ERROR "iota outside constant decl" */ ]byte })
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 17 19:54:25 UTC 2023 - 9.2K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/sigchanyzer/sigchanyzer.go
call := n.(*ast.CallExpr) if !isSignalNotify(pass.TypesInfo, call) { return } var chanDecl *ast.CallExpr switch arg := call.Args[0].(type) { case *ast.Ident: if decl, ok := findDecl(arg).(*ast.CallExpr); ok { chanDecl = decl } case *ast.CallExpr: // Only signal.Notify(make(chan os.Signal), os.Interrupt) is safe, // conservatively treat others as not safe, see golang/go#45043
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 09 01:28:01 UTC 2023 - 3.8K bytes - Viewed (0) -
src/go/doc/filter.go
if matchFields(t.Methods, f) { return true } } } } return false } func filterValues(a []*Value, f Filter) []*Value { w := 0 for _, vd := range a { if matchDecl(vd.Decl, f) { a[w] = vd w++ } } return a[0:w] } func filterFuncs(a []*Func, f Filter) []*Func { w := 0 for _, fd := range a { if f(fd.Name) { a[w] = fd w++ } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 01 18:18:07 UTC 2022 - 2.2K bytes - Viewed (0) -
src/go/ast/scope.go
} // Pos computes the source position of the declaration of an object name. // The result may be an invalid position if it cannot be computed // (obj.Decl may be nil or not correct). func (obj *Object) Pos() token.Pos { name := obj.Name switch d := obj.Decl.(type) { case *Field: for _, n := range d.Names { if n.Name == name { return n.Pos() } } case *ImportSpec:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 28 21:32:41 UTC 2024 - 4.6K bytes - Viewed (0) -
test/codegen/fuse.go
// amd64:"CMPQ\t.+, [$]251","ADDQ\t[$]-5," // s390x:"CLGIJ\t[$]4, R[0-9]+, [$]251","ADD\t[$]-5," for x := <-c; x < 256 && x > 4; x = <-c { } } func si6c(c <-chan int32) { // amd64:"CMPL\t.+, [$]255","DECL\t" // s390x:"CLIJ\t[$]12, R[0-9]+, [$]255","ADDW\t[$]-1," for x := <-c; x > 0 && x <= 256; x = <-c { } } func si7c(c <-chan int16) { // amd64:"CMPW\t.+, [$]60","ADDL\t[$]10,"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 03 14:30:26 UTC 2020 - 4.8K bytes - Viewed (0) -
src/go/doc/doc_test.go
t.Fatal(err) } for _, f := range doc.Funcs { f.Decl = nil } for _, ty := range doc.Types { for _, f := range ty.Funcs { f.Decl = nil } for _, m := range ty.Methods { m.Decl = nil } } compareFuncs := func(t *testing.T, msg string, got, want *Func) { // ignore Decl and Examples got.Decl = nil got.Examples = nil if !(got.Doc == want.Doc &&
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 11 16:31:52 UTC 2022 - 6.7K bytes - Viewed (0)