Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 64 for Rbrace (0.23 sec)

  1. 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)
  2. src/go/scanner/scanner_test.go

    	{token.DEFINE, ":=", operator},
    	{token.ELLIPSIS, "...", operator},
    
    	{token.LPAREN, "(", operator},
    	{token.LBRACK, "[", operator},
    	{token.LBRACE, "{", operator},
    	{token.COMMA, ",", operator},
    	{token.PERIOD, ".", operator},
    
    	{token.RPAREN, ")", operator},
    	{token.RBRACK, "]", operator},
    	{token.RBRACE, "}", operator},
    	{token.SEMICOLON, ";", operator},
    	{token.COLON, ":", operator},
    	{token.TILDE, "~", operator},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 28 15:38:31 UTC 2023
    - 34.6K bytes
    - Viewed (0)
  3. src/go/scanner/scanner.go

    		case '(':
    			tok = token.LPAREN
    		case ')':
    			insertSemi = true
    			tok = token.RPAREN
    		case '[':
    			tok = token.LBRACK
    		case ']':
    			insertSemi = true
    			tok = token.RBRACK
    		case '{':
    			tok = token.LBRACE
    		case '}':
    			insertSemi = true
    			tok = token.RBRACE
    		case '+':
    			tok = s.switch3(token.ADD, token.ADD_ASSIGN, '+', token.INC)
    			if tok == token.INC {
    				insertSemi = true
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 24.3K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/syntax/printer.go

    		p.print(n.Type, blank)
    		if n.Body != nil {
    			if p.form == ShortForm {
    				p.print(_Lbrace)
    				if len(n.Body.List) > 0 {
    					p.print(_Name, "…")
    				}
    				p.print(_Rbrace)
    			} else {
    				p.print(n.Body)
    			}
    		}
    
    	case *CompositeLit:
    		if n.Type != nil {
    			p.print(n.Type)
    		}
    		p.print(_Lbrace)
    		if p.form == ShortForm {
    			if len(n.ElemList) > 0 {
    				p.print(_Name, "…")
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 24 07:17:27 UTC 2023
    - 21.5K bytes
    - Viewed (0)
  5. src/runtime/trace.go

    		buf.link = trace.empty
    		trace.empty = buf
    		trace.reading = nil
    	}
    	// Write trace header.
    	if !trace.headerWritten {
    		trace.headerWritten = true
    		unlock(&trace.lock)
    		return []byte("go 1.23 trace\x00\x00\x00"), false
    	}
    
    	// Read the next buffer.
    
    	if trace.readerGen.Load() == 0 {
    		trace.readerGen.Store(1)
    	}
    	var gen uintptr
    	for {
    		assertLockHeld(&trace.lock)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 37.1K bytes
    - Viewed (0)
  6. src/testing/testing_test.go

    			t.Run("subsub1", func(t *testing.T) {
    				t.Parallel()
    				doRace()
    				c1 <- true
    			})
    			t.Run("subsub2", func(t *testing.T) {
    				t.Parallel()
    				doRace()
    				<-c1
    			})
    		})
    		doRace()
    		return
    	}
    
    	out := runTest(t, "TestRaceSubReports")
    
    	// There should be three race reports: one for each subtest, and one for the
    	// race after the subtests complete. Note that because the subtests run in
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 19:10:41 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  7. src/runtime/race.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build race
    
    package runtime
    
    import (
    	"internal/abi"
    	"unsafe"
    )
    
    // Public race detection API, present iff build with -race.
    
    func RaceRead(addr unsafe.Pointer)
    func RaceWrite(addr unsafe.Pointer)
    func RaceReadRange(addr unsafe.Pointer, len int)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:37:29 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apimachinery/pkg/util/yaml/decoder.go

    // for an open brace indicating this is JSON. It will return the
    // bufio.Reader it creates for the consumer.
    func GuessJSONStream(r io.Reader, size int) (io.Reader, []byte, bool) {
    	buffer := bufio.NewReaderSize(r, size)
    	b, _ := buffer.Peek(size)
    	return buffer, b, hasJSONPrefix(b)
    }
    
    // IsJSONBuffer scans the provided buffer, looking
    // for an open brace indicating this is JSON.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 19 21:24:36 UTC 2021
    - 10.2K bytes
    - Viewed (0)
  9. src/go/printer/testdata/comments.golden

    	i < 9;		/* comment after semicolon */
    	i++ {		// comment after opening curly brace
    	}
    
    	// TODO(gri) the last comment in this example should be aligned */
    	for i = 0;	// comment after semicolon
    	i < 9;		/* comment before semicolon - ok to move after semicolon */
    	i++ /* comment before opening curly brace */ {
    	}
    }
    
    // If there is no newline following punctuation, commas move before the punctuation.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 25 23:11:14 UTC 2022
    - 11.3K bytes
    - Viewed (0)
  10. platforms/jvm/code-quality/src/test/groovy/org/gradle/api/plugins/quality/PmdPluginTest.groovy

            project.sourceSets {
                main
                test
                other
            }
    
            project.pmd {
                sourceSets = [project.sourceSets.main]
                ruleSets = ["java-braces", "java-unusedcode"]
                ruleSetConfig = project.resources.text.fromString("ruleset contents")
                ruleSetFiles = project.getLayout().files("my-ruleset.xml")
                reportsDir = project.file("pmd-reports")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Dec 01 14:47:31 UTC 2023
    - 12.4K bytes
    - Viewed (0)
Back to top