- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 631 for _Assign (0.36 sec)
-
src/cmd/compile/internal/syntax/token_string.go
// Re-run the stringer command to generate them again. var x [1]struct{} _ = x[_EOF-1] _ = x[_Name-2] _ = x[_Literal-3] _ = x[_Operator-4] _ = x[_AssignOp-5] _ = x[_IncOp-6] _ = x[_Assign-7] _ = x[_Define-8] _ = x[_Arrow-9] _ = x[_Star-10] _ = x[_Lparen-11] _ = x[_Lbrack-12] _ = x[_Lbrace-13] _ = x[_Rparen-14] _ = x[_Rbrack-15] _ = x[_Rbrace-16] _ = x[_Comma-17]
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Dec 29 02:28:24 UTC 2020 - 1.7K bytes - Viewed (0) -
src/cmd/compile/internal/syntax/tokens.go
// names and literals _Name // name _Literal // literal // operators and operations // _Operator is excluding '*' (_Star) _Operator // op _AssignOp // op= _IncOp // opop _Assign // = _Define // := _Arrow // <- _Star // * // delimiters _Lparen // ( _Lbrack // [ _Lbrace // { _Rparen // ) _Rbrack // ] _Rbrace // } _Comma // ,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 20 14:52:38 UTC 2023 - 2.6K bytes - Viewed (0) -
src/cmd/compile/internal/syntax/printer.go
p.print(blank, n.Type) } if n.Values != nil { p.print(blank, _Assign, blank, n.Values) } case *TypeDecl: if n.Group == nil { p.print(_Type, blank) } p.print(n.Name) if n.TParamList != nil { p.printParameterList(n.TParamList, _Type) } p.print(blank) if n.Alias { p.print(_Assign, blank) } p.print(n.Type) case *VarDecl: if n.Group == nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Aug 24 07:17:27 UTC 2023 - 21.5K bytes - Viewed (0) -
src/cmd/compile/internal/syntax/parser.go
p.syntaxError("expected " + tokstring(tok)) p.advance() } } // gotAssign is like got(_Assign) but it also accepts ":=" // (and reports an error) for better parser error recovery. func (p *parser) gotAssign() bool { switch p.tok { case _Define: p.syntaxError("expected =") fallthrough case _Assign: p.next() return true } return false }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 62.9K bytes - Viewed (0) -
src/cmd/compile/internal/syntax/scanner.go
s.op, s.prec = Gtr, precCmp s.tok = _Operator case '=': s.nextch() if s.ch == '=' { s.nextch() s.op, s.prec = Eql, precCmp s.tok = _Operator break } s.tok = _Assign case '!': s.nextch() if s.ch == '=' { s.nextch() s.op, s.prec = Neq, precCmp s.tok = _Operator break } s.op, s.prec = Not, 0 s.tok = _Operator case '~':
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 28 18:17:41 UTC 2022 - 17.1K bytes - Viewed (0) -
src/cmd/compile/internal/syntax/scanner_test.go
{_AssignOp, "&^=", AndNot, precMul}, {_AssignOp, "<<=", Shl, precMul}, {_AssignOp, ">>=", Shr, precMul}, // other operations {_IncOp, "++", Add, precAdd}, {_IncOp, "--", Sub, precAdd}, {_Assign, "=", 0, 0}, {_Define, ":=", 0, 0}, {_Arrow, "<-", 0, 0}, // delimiters {_Lparen, "(", 0, 0}, {_Lbrack, "[", 0, 0}, {_Lbrace, "{", 0, 0}, {_Rparen, ")", 0, 0}, {_Rbrack, "]", 0, 0},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 14 16:11:21 UTC 2022 - 21.9K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/assign/assign.go
"golang.org/x/tools/go/ast/inspector" ) //go:embed doc.go var doc string var Analyzer = &analysis.Analyzer{ Name: "assign", Doc: analysisutil.MustExtractDoc(doc, "assign"), URL: "https://pkg.go.dev/golang.org/x/tools/go/analysis/passes/assign", Requires: []*analysis.Analyzer{inspect.Analyzer}, Run: run, } func run(pass *analysis.Pass) (interface{}, error) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:33 UTC 2023 - 2.4K bytes - Viewed (0) -
src/cmd/vet/testdata/assign/assign.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // This file contains tests for the useless-assignment checker. package assign import "math/rand" type ST struct { x int l []int } func (s *ST) SetX(x int, ch chan int) { // Accidental self-assignment; it should be "s.x = x" x = x // ERROR "self-assignment of x to x"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 20 15:46:42 UTC 2019 - 804 bytes - Viewed (0) -
tensorflow/cc/framework/gradients_test.cc
auto z_assign = Assign(scope_test_, z, z_const); auto diff_m = Const(scope_test_, {{0.5}, {0.5}}); std::vector<Output> grad_outputs; TF_ASSERT_OK( AddSymbolicGradients(scope_test_, {m}, {y}, {diff_m}, &grad_outputs)); std::vector<Tensor> outputs; test::GetTensors(scope_test_, {x_assign, y_assign, z_assign}, {grad_outputs[0]}, &outputs);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Apr 15 15:13:38 UTC 2023 - 25K bytes - Viewed (0) -
src/cmd/compile/internal/walk/assign.go
dsts[i] = typecheck.AssignExpr(v.Nname.(*ir.Name)) } n.Results = ascompatee(n.Op(), dsts, n.Results) return n } // check assign type list to // an expression list. called in // // expr-list = func() func ascompatet(nl ir.Nodes, nr *types.Type) []ir.Node { if len(nl) != nr.NumFields() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 08 17:09:06 UTC 2024 - 20.3K bytes - Viewed (0)