- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 1,384 for idents (0.1 sec)
-
src/cmd/cgo/internal/testerrors/testdata/issue42580.go
doublePointerChecked = []byte{1} singleInnerPointerChecked = []byte{1} ) // This test checks the positions of variable identifiers. // Changing the positions of the test variables idents after this point will break the test. func TestSingleArgumentCast() C.int { retcode := C.func_with_char((*C.char)(unsafe.Pointer(&checkedPointer[0])), unsafe.Pointer(C.strarg)) return retcode }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 1.3K bytes - Viewed (0) -
src/go/types/resolver_test.go
files = append(files, mustParse(fset, src)) } // resolve and type-check package AST importer := new(resolveTestImporter) conf := Config{Importer: importer} uses := make(map[*ast.Ident]Object) defs := make(map[*ast.Ident]Object) _, err := conf.Check("testResolveIdents", fset, files, &Info{Defs: defs, Uses: uses}) if err != nil { t.Fatal(err) } // check that all packages were imported
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 4.5K bytes - Viewed (0) -
src/go/ast/scope.go
return d.Name.Pos() } case *LabeledStmt: if d.Label.Name == name { return d.Label.Pos() } case *AssignStmt: for _, x := range d.Lhs { if ident, isIdent := x.(*Ident); isIdent && ident.Name == name { return ident.Pos() } } case *Scope: // predeclared object - nothing to do for now } return token.NoPos } // ObjKind describes what an [Object] represents.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 28 21:32:41 UTC 2024 - 4.6K bytes - Viewed (0) -
src/cmd/compile/internal/types2/resolver_test.go
t.Errorf("%s: unresolved identifier %s", x.Pos(), x.Value) case 3: both = append(both, x.Value) } return false } return true }) } // check the expected set of idents that are simultaneously uses and defs sort.Strings(both) if got, want := fmt.Sprint(both), "[Mutex Stringer error]"; got != want { t.Errorf("simultaneous uses/defs = %s, want %s", got, want) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 10 12:59:20 UTC 2023 - 4.7K bytes - Viewed (0) -
src/encoding/json/indent.go
// if src ends in a trailing newline, so will dst. func Indent(dst *bytes.Buffer, src []byte, prefix, indent string) error { dst.Grow(indentGrowthFactor * len(src)) b := dst.AvailableBuffer() b, err := appendIndent(b, src, prefix, indent) dst.Write(b) return err } func appendIndent(dst, src []byte, prefix, indent string) ([]byte, error) { origLen := len(dst) scan := newScanner()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 06 20:19:31 UTC 2023 - 5.4K bytes - Viewed (0) -
pkg/kube/kclient/events.go
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Oct 31 22:23:28 UTC 2023 - 1.9K bytes - Viewed (0) -
docs/features/events.md
![Events Diagram](../assets/images/events@2x.png)
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Sun Feb 06 02:19:09 UTC 2022 - 7.7K bytes - Viewed (0) -
docs/en/docs/advanced/events.md
```Python hl_lines="22" {!../../../docs_src/events/tutorial003.py!} ``` ## Alternative Events (deprecated) !!! warning The recommended way to handle the *startup* and *shutdown* is using the `lifespan` parameter of the `FastAPI` app as described above. If you provide a `lifespan` parameter, `startup` and `shutdown` event handlers will no longer be called. It's all `lifespan` or all events, not both. You can probably skip this part.
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Thu Apr 18 19:53:19 UTC 2024 - 7.8K bytes - Viewed (0) -
docs/zh/docs/advanced/events.md
使用 `startup` 事件声明 `app` 启动前运行的函数: ```Python hl_lines="8" {!../../../docs_src/events/tutorial001.py!} ``` 本例中,`startup` 事件处理器函数为项目数据库(只是**字典**)提供了一些初始值。 **FastAPI** 支持多个事件处理器函数。 只有所有 `startup` 事件处理器运行完毕,**FastAPI** 应用才开始接收请求。 ## `shutdown` 事件 使用 `shutdown` 事件声明 `app` 关闭时运行的函数: ```Python hl_lines="6" {!../../../docs_src/events/tutorial002.py!} ```
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Thu Apr 18 19:53:19 UTC 2024 - 1.7K bytes - Viewed (0) -
docs/de/docs/advanced/events.md
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Sat Mar 30 20:30:59 UTC 2024 - 9.1K bytes - Viewed (0)