- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for parseBody (0.21 sec)
-
src/go/printer/testdata/parser.go
} for p.tok != token.CASE && p.tok != token.DEFAULT && p.tok != token.RBRACE && p.tok != token.EOF { list = append(list, p.parseStmt()) } return } func (p *parser) parseBody(scope *ast.Scope) *ast.BlockStmt { if p.trace { defer un(trace(p, "Body")) } lbrace := p.expect(token.LBRACE) p.topScope = scope // open function scope p.openLabelScope()
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/parser/parser.go
var body *ast.BlockStmt switch p.tok { case token.LBRACE: body = p.parseBody() p.expectSemi() case token.SEMICOLON: p.next() if p.tok == token.LBRACE { // opening { of function declaration on next line p.error(p.pos, "unexpected semicolon or newline before {") body = p.parseBody() p.expectSemi() } default: p.expectSemi() }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Dec 08 20:07:50 UTC 2023 - 72.2K bytes - Viewed (0) -
pkg/controller/volume/pvcprotection/pvc_protection_controller.go
// where it is blocking deletion of a PVC not referenced by Y, otherwise // such PVC will never be deleted. if oldPod := c.parsePod(old); oldPod != nil && oldPod.UID != pod.UID { c.enqueuePVCs(logger, oldPod, true) } } } func (*Controller) parsePod(obj interface{}) *v1.Pod { if obj == nil { return nil } pod, ok := obj.(*v1.Pod) if !ok {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 14K bytes - Viewed (0) -
testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/resolve/ResolveTestFixture.groovy
return lines.findAll { it.startsWith(prefix + ":") }.collect { it.substring(prefix.length() + 1) } } List<ParsedNode> parseNodes(List<String> nodes) { nodes.collect { parseNode(it) } } ParsedNode parseNode(String line) { int start = 1 // we look for ][ instead of just ], because of that one test that checks that we can have random characters in id
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 37.8K bytes - Viewed (0)