Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 44 for Rbrace (0.12 sec)

  1. src/cmd/compile/internal/syntax/positions.go

    			return n.Pos()
    		case *IfStmt:
    			if n.Else != nil {
    				m = n.Else
    				continue
    			}
    			m = n.Then
    		case *ForStmt:
    			m = n.Body
    		case *SwitchStmt:
    			return n.Rbrace
    		case *SelectStmt:
    			return n.Rbrace
    
    		// helper nodes
    		case *RangeClause:
    			m = n.X
    		case *CaseClause:
    			if l := lastStmt(n.Body); l != nil {
    				m = l
    				continue
    			}
    			return n.Colon
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 17:49:19 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  2. src/go/ast/example_test.go

    	//     20  .  .  .  .  .  Opening: 3:10
    	//     21  .  .  .  .  .  Closing: 3:11
    	//     22  .  .  .  .  }
    	//     23  .  .  .  }
    	//     24  .  .  .  Body: *ast.BlockStmt {
    	//     25  .  .  .  .  Lbrace: 3:13
    	//     26  .  .  .  .  List: []ast.Stmt (len = 1) {
    	//     27  .  .  .  .  .  0: *ast.ExprStmt {
    	//     28  .  .  .  .  .  .  X: *ast.CallExpr {
    	//     29  .  .  .  .  .  .  .  Fun: *ast.Ident {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 21:44:50 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/stmt.go

    func (check *Checker) funcBody(decl *declInfo, name string, sig *Signature, body *syntax.BlockStmt, iota constant.Value) {
    	if check.conf.IgnoreFuncBodies {
    		panic("function body not ignored")
    	}
    
    	if check.conf.Trace {
    		check.trace(body.Pos(), "-- %s: %s", name, sig)
    	}
    
    	// save/restore current environment and set up function environment
    	// (and use 0 indentation at function start)
    	defer func(env environment, indent int) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 30.7K bytes
    - Viewed (0)
  4. platforms/core-configuration/declarative-dsl-core/src/main/kotlin/org/gradle/internal/declarativedsl/parsing/GrammarToTree.kt

            check(blockNodes.size >= 2) // first and last nodes are the opening an¡¡d closing braces
    
            val openBrace = blockNodes.first()
            openBrace.expectKind(LBRACE)
    
            val closingBrace = blockNodes.last()
            closingBrace.expectKind(RBRACE)
    
            return blockNodes.slice(1..blockNodes.size - 2)
        }
    
        private
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 14 22:06:18 UTC 2024
    - 31.2K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/syntax/parser.go

    		s.Body = append(s.Body, p.caseClause())
    	}
    	s.Rbrace = p.pos()
    	p.want(_Rbrace)
    
    	return s
    }
    
    func (p *parser) selectStmt() *SelectStmt {
    	if trace {
    		defer p.trace("selectStmt")()
    	}
    
    	s := new(SelectStmt)
    	s.pos = p.pos()
    
    	p.want(_Select)
    	if !p.got(_Lbrace) {
    		p.syntaxError("missing { after select clause")
    		p.advance(_Case, _Default, _Rbrace)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 62.9K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/rangefunc/rewrite.go

    	}
    	syntax.Inspect(x, func(n syntax.Node) bool {
    		if n == nil || n.Pos() != nopos {
    			return false
    		}
    		n.SetPos(pos)
    		switch n := n.(type) {
    		case *syntax.BlockStmt:
    			if n.Rbrace == nopos {
    				n.Rbrace = pos
    			}
    		}
    		return true
    	})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:05:44 UTC 2024
    - 41.6K bytes
    - Viewed (0)
  7. src/cmd/cover/cover.go

    					clause := n.(*ast.CommClause)
    					f.addCounters(clause.Colon+1, clause.Colon+1, clause.End(), clause.Body, false)
    				}
    				return f
    			}
    		}
    		f.addCounters(n.Lbrace, n.Lbrace+1, n.Rbrace+1, n.List, true) // +1 to step past closing brace.
    	case *ast.IfStmt:
    		if n.Init != nil {
    			ast.Walk(f, n.Init)
    		}
    		ast.Walk(f, n.Cond)
    		ast.Walk(f, n.Body)
    		if n.Else == nil {
    			return nil
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 34.5K bytes
    - Viewed (0)
  8. src/go/doc/example.go

    	if last == nil || !outputPrefix.MatchString(last.Text()) {
    		return body, comments
    	}
    
    	// Copy body and comments, as the originals may be used elsewhere.
    	newBody := &ast.BlockStmt{
    		Lbrace: body.Lbrace,
    		List:   body.List,
    		Rbrace: last.Pos(),
    	}
    	newComments := make([]*ast.CommentGroup, len(comments)-1)
    	copy(newComments, comments[:i])
    	copy(newComments[i:], comments[i+1:])
    	return newBody, newComments
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 21.4K bytes
    - Viewed (0)
  9. src/go/types/stmt.go

    func (check *Checker) funcBody(decl *declInfo, name string, sig *Signature, body *ast.BlockStmt, iota constant.Value) {
    	if check.conf.IgnoreFuncBodies {
    		panic("function body not ignored")
    	}
    
    	if check.conf._Trace {
    		check.trace(body.Pos(), "-- %s: %s", name, sig)
    	}
    
    	// save/restore current environment and set up function environment
    	// (and use 0 indentation at function start)
    	defer func(env environment, indent int) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 30.6K bytes
    - Viewed (0)
  10. src/go/types/expr.go

    // parameterized type or function value.
    func (check *Checker) rawExpr(T *target, x *operand, e ast.Expr, hint Type, allowGeneric bool) exprKind {
    	if check.conf._Trace {
    		check.trace(e.Pos(), "-- expr %s", e)
    		check.indent++
    		defer func() {
    			check.indent--
    			check.trace(e.Pos(), "=> %s", x)
    		}()
    	}
    
    	kind := check.exprInternal(T, x, e, hint)
    
    	if !allowGeneric {
    		check.nonGeneric(T, x)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 49.7K bytes
    - Viewed (0)
Back to top