Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for Colon (0.13 sec)

  1. src/go/parser/parser.go

    	return x
    }
    
    func (p *parser) parseElement() ast.Expr {
    	if p.trace {
    		defer un(trace(p, "Element"))
    	}
    
    	x := p.parseValue()
    	if p.tok == token.COLON {
    		colon := p.pos
    		p.next()
    		x = &ast.KeyValueExpr{Key: x, Colon: colon, Value: p.parseValue()}
    	}
    
    	return x
    }
    
    func (p *parser) parseElementList() (list []ast.Expr) {
    	if p.trace {
    		defer un(trace(p, "ElementList"))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 08 20:07:50 UTC 2023
    - 72.2K bytes
    - Viewed (0)
  2. src/go/printer/testdata/parser.go

    	}
    
    	if p.tok == token.LBRACE {
    		return p.parseLiteralValue(nil)
    	}
    
    	x := p.parseExpr(keyOk) // don't resolve if map key
    	if keyOk {
    		if p.tok == token.COLON {
    			colon := p.pos
    			p.next()
    			return &ast.KeyValueExpr{x, colon, p.parseElement(false)}
    		}
    		p.resolve(x) // not a map key
    	}
    
    	return x
    }
    
    func (p *parser) parseElementList() (list []ast.Expr) {
    	if p.trace {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 20 20:19:51 UTC 2023
    - 50.5K bytes
    - Viewed (0)
  3. src/go/printer/nodes.go

    			}
    		}
    
    	case *ast.CaseClause:
    		if s.List != nil {
    			p.print(token.CASE, blank)
    			p.exprList(s.Pos(), s.List, 1, 0, s.Colon, false)
    		} else {
    			p.print(token.DEFAULT)
    		}
    		p.setPos(s.Colon)
    		p.print(token.COLON)
    		p.stmtList(s.Body, 1, nextIsRBrace)
    
    	case *ast.SwitchStmt:
    		p.print(token.SWITCH)
    		p.controlClause(false, s.Init, s.Tag, nil)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 17 18:53:17 UTC 2023
    - 52.6K bytes
    - Viewed (0)
  4. src/net/url/url_test.go

    		{"http://[::1]/", false},
    		{"http://[::1]a", true},
    		{"http://[::1]%23", true},
    		{"http://[::1%25en0]", false},    // valid zone id
    		{"http://[::1]:", false},         // colon, but no port OK
    		{"http://x:", false},             // colon, but no port OK
    		{"http://[::1]:%38%30", true},    // not allowed: % encoding only for non-ASCII
    		{"http://[::1%25%41]", false},    // RFC 6874 allows over-escaping in zone
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:52:38 UTC 2024
    - 52.1K bytes
    - Viewed (0)
  5. src/net/netip/netip_test.go

    		// IPv6 with invalid embedded IPv4.
    		"::ffff:192.168.140.bad",
    		// IPv6 with multiple ellipsis ::.
    		"fe80::1::1",
    		// IPv6 with invalid non hex/colon character.
    		"fe80:1?:1",
    		// IPv6 with truncated bytes after single colon.
    		"fe80:",
    		// IPv6 with 5 zeros in last group
    		"0:0:0:0:0:ffff:0:00000",
    		// IPv6 with 5 zeros in one group and embedded IPv4
    		"0:0:0:0:00000:ffff:127.1.2.3",
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 17:10:01 UTC 2024
    - 54.3K bytes
    - Viewed (0)
  6. src/testing/testing.go

    	// under the management of go test.
    	if runtime.GOOS == "windows" && len(path) >= 2 {
    		letter, colon := path[0], path[1]
    		if ('a' <= letter && letter <= 'z' || 'A' <= letter && letter <= 'Z') && colon == ':' {
    			// If path starts with a drive letter we're stuck with it regardless.
    			return path
    		}
    	}
    	if os.IsPathSeparator(path[0]) {
    		return path
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 76.1K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/syntax/parser.go

    		p.next()
    		c.Cases = p.exprList()
    
    	case _Default:
    		p.next()
    
    	default:
    		p.syntaxError("expected case or default or }")
    		p.advance(_Colon, _Case, _Default, _Rbrace)
    	}
    
    	c.Colon = p.pos()
    	p.want(_Colon)
    	c.Body = p.stmtList()
    
    	return c
    }
    
    func (p *parser) commClause() *CommClause {
    	if trace {
    		defer p.trace("commClause")()
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 62.9K bytes
    - Viewed (0)
  8. src/cmd/internal/testdir/testdir_test.go

    	rxAsmComment = regexp.MustCompile(`^\s*(.*?)\s*(?://\s*(.+)\s*)?$`)
    
    	// Regexp to extract an architecture check: architecture name (or triplet),
    	// followed by semi-colon, followed by a comma-separated list of opcode checks.
    	// Extraneous spaces are ignored.
    	//
    	// An example: arm64/v8.1 : -`ADD` , `SUB`
    	//	"(\w+)" matches "arm64" (architecture name)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 20:08:06 UTC 2024
    - 57.5K bytes
    - Viewed (0)
  9. platforms/documentation/docs/src/snippets/native-binaries/google-test/groovy/libs/googleTest/1.7.0/include/gtest/gtest.h

      // The full name of a test Bar in test case Foo is defined as
      // "Foo.Bar".  Only the tests that match the filter will run.
      //
      // A filter is a colon-separated list of glob (not regex) patterns,
      // optionally followed by a '-' and a colon-separated list of
      // negative patterns (tests to exclude).  A test is run if it
      // matches one of the positive patterns and does not match any of
      // the negative patterns.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 86.4K bytes
    - Viewed (0)
  10. hack/local-up-cluster.sh

        warning_log "etcd terminated unexpectedly"
        ETCD_PID=
      fi
    }
    
    function print_color {
      message=$1
      prefix=${2:+$2: } # add colon only if defined
      color=${3:-1}     # default is red
      echo -n "$(tput bold)$(tput setaf "${color}")"
      echo "${prefix}${message}"
      echo -n "$(tput sgr0)"
    }
    
    function warning_log {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 25 02:33:52 UTC 2024
    - 53.3K bytes
    - Viewed (0)
Back to top