- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 1,098 for SYNTAX (0.26 sec)
-
src/cmd/go/internal/imports/read_test.go
"syntax error", }, { `package p; import _ "`, "syntax error", }, { `package p; import _ "x`, "syntax error", }, { `package p; import .`, "syntax error", }, { `package p; import . "`, "syntax error", }, { `package p; import . "x`, "syntax error", }, { `package p; import (`, "syntax error", }, { `package p; import ("`,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 15 18:42:11 UTC 2021 - 4.2K bytes - Viewed (0) -
src/cmd/compile/internal/types2/resolver_test.go
// from the uses and defs maps) because syntax.Walk traverses shared nodes multiple // times (e.g. types in field lists such as "a, b, c int"). foundUses := make(map[*syntax.Name]bool) foundDefs := make(map[*syntax.Name]bool) var both []string for _, f := range files { syntax.Inspect(f, func(n syntax.Node) bool { if x, ok := n.(*syntax.Name); ok { var objects int if _, found := uses[x]; found {
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/cmd/compile/internal/types2/api.go
// function's syntax ([*ast.FuncDecl] or [*ast.FuncLit]). // The Scopes mapping does not contain an entry for the // function body ([*ast.BlockStmt]); the function's scope is // associated with the [*ast.FuncType]. // // The following node types may appear in Scopes: // // *syntax.File // *syntax.FuncType // *syntax.TypeDecl // *syntax.BlockStmt // *syntax.IfStmt
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 10 13:48:53 UTC 2024 - 17.4K bytes - Viewed (0) -
platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/NamedDomainObjectCollectionExtensionsTest.kt
container { // invoke syntax val domainObject by getting inOrder(container) { verify(container).getByName("domainObject") verifyNoMoreInteractions() } assertThat(domainObject, sameInstance(element)) } container.apply { // regular syntax val domainObject by getting
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Aug 02 08:06:49 UTC 2023 - 19.1K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/mod/modfile/rule.go
} func (f *File) AddModuleStmt(path string) error { if f.Syntax == nil { f.Syntax = new(FileSyntax) } if f.Module == nil { f.Module = &Module{ Mod: module.Version{Path: path}, Syntax: f.Syntax.addLine(nil, "module", AutoQuote(path)), } } else { f.Module.Mod.Path = path f.Syntax.updateLine(f.Module.Syntax, "module", AutoQuote(path)) } return nil }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 14 18:34:56 UTC 2024 - 46.5K bytes - Viewed (0) -
src/regexp/backtrack.go
} else { b.push(re, pc, pos, true) pc = inst.Out goto CheckAndLoop } case syntax.InstAltMatch: // One opcode consumes runes; the other leads to match. switch re.prog.Inst[inst.Out].Op { case syntax.InstRune, syntax.InstRune1, syntax.InstRuneAny, syntax.InstRuneAnyNotNL: // inst.Arg is the match. b.push(re, inst.Arg, pos, false) pc = inst.Arg pos = b.end
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 14 17:25:39 UTC 2023 - 8.8K bytes - Viewed (0) -
src/cmd/compile/internal/types2/expr.go
*syntax.IndexExpr, *syntax.SliceExpr, *syntax.AssertExpr, *syntax.ListExpr, //*syntax.StarExpr, *syntax.KeyValueExpr, *syntax.ArrayType, *syntax.StructType, *syntax.FuncType, *syntax.InterfaceType, *syntax.MapType, *syntax.ChanType: // These expression are never untyped - nothing to do. // The respective sub-expressions got their final types // upon assignment or use. if debug {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 02:09:54 UTC 2024 - 51.7K bytes - Viewed (0) -
src/cmd/compile/internal/types2/stmt.go
valid = true case *syntax.AssignStmt: if _, ok := s.Rhs.(*syntax.ListExpr); !ok { rhs = s.Rhs } case *syntax.ExprStmt: rhs = s.X } // if present, rhs must be a receive operation if rhs != nil { if x, _ := syntax.Unparen(rhs).(*syntax.Operation); x != nil && x.Y == nil && x.Op == syntax.Recv { valid = true } } if !valid {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 30.7K bytes - Viewed (0) -
src/cmd/go/testdata/script/generate_invalid.txt
package +d+ //go:generate echo Fail $GOPACKAGE -- syntax/a.go -- // Go file with syntax error after package clause. // Go generate should process this file. package syntax 123 //go:generate echo Success a -- syntax/b.go -- // Go file with syntax error after package clause. // Go generate should process this file. package syntax; 123 //go:generate echo Success b -- syntax/c.go --
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Sep 09 01:48:44 UTC 2023 - 4.3K bytes - Viewed (0) -
src/cmd/compile/internal/types2/self_test.go
} var info *Info if writeInfo { info = &Info{ Types: make(map[syntax.Expr]TypeAndValue), Defs: make(map[*syntax.Name]Object), Uses: make(map[*syntax.Name]Object), Implicits: make(map[syntax.Node]Object), Selections: make(map[*syntax.SelectorExpr]*Selection), Scopes: make(map[syntax.Node]*Scope), } } if _, err := conf.Check(path, files, info); err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 23 19:39:00 UTC 2023 - 2.8K bytes - Viewed (0)