- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 104 for Semicolons (0.2 sec)
-
src/go/printer/testdata/statements.golden
// Formatting around labels. func _() { L: } func _() { // this comment should be indented L: // no semicolon needed } func _() { switch 0 { case 0: L0: ; // semicolon required case 1: L1: ; // semicolon required default: L2: // no semicolon needed } } func _() { f() L1: f() L2: ; L3: } func _() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 12 18:18:12 UTC 2014 - 8K bytes - Viewed (0) -
src/go/printer/testdata/statements.input
func _() { if true {} if; true {} // no semicolon printed if expr{} if;expr{} // no semicolon printed if (expr){} // no parens printed if;((expr)){} // no semicolon and parens printed if x:=expr;true{ use(x)} if x:=expr; expr {use(x)} } // Formatting of switch-statement headers. func _() { switch {} switch;{} // no semicolon printed switch expr {}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 08 04:08:51 UTC 2014 - 8.3K bytes - Viewed (0) -
test/fixedbugs/bug157.go
package main func f() {} func main() { x := 0; // this compiles switch x { case 0: f(); default: f(); } // this doesn't but it should // (semicolons are not needed at the end of a statement list) switch x { case 0: f() default: f() } } /* bug157.go:20: syntax error near default bug157.go:20: first switch statement must be a case
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Feb 18 21:15:42 UTC 2012 - 524 bytes - Viewed (0) -
test/fixedbugs/bug274.go
// Each statement in the list of statements for each case clause must be // terminated with a semicolon. No semicolon is present for the labeled // statements and because the last token is a colon ":", no semicolon is // inserted automatically. // // Both gccgo and gofmt correctly refuse this program as is and accept it // when the semicolons are present. // This is a test case for issue 777 ( https://golang.org/issue/777 ).
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 13:43:18 UTC 2016 - 888 bytes - Viewed (0) -
src/cmd/compile/internal/syntax/testing.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 17 19:53:18 UTC 2023 - 2.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/bridge_logger.h
// checking where a certain attribute gets lost. Note that we use a semicolon // instead of comma as the separator to allow strings that contain commas (which // frequently appear in MLIR). The strings can contain any characters (including // spaces) except semicolons. // // Example: Setting the environment variables // `MLIR_BRIDGE_LOG_PASS_FILTER="LegalizeTF;Canonicalizer"` and
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jul 06 22:29:51 UTC 2023 - 4.9K bytes - Viewed (0) -
src/go/parser/error_test.go
pos += token.Pos(len(lit)) // end of comment } else { pos = prev // token prior to comment } errors[pos] = s[2] } case token.SEMICOLON: // don't use the position of auto-inserted (invisible) semicolons if lit != ";" { break } fallthrough default: prev = pos var l int // token length if tok.IsLiteral() { l = len(lit) } else {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 27 19:47:49 UTC 2022 - 5.9K bytes - Viewed (0) -
okhttp-idna-mapping-table/src/main/kotlin/okhttp3/internal/idn/SimpleIdnaMappingTable.kt
* * Comment lines are either blank or start with a `#` character. Lines may also end with a comment. * All comments are ignored. * * Regular lines contain fields separated by semicolons. * * The first element on each line is a single hex code point (like 0041) or a hex code point range * (like 0030..0039). * * The second element on each line is a mapping type, like `valid` or `mapped`. *
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 6.8K bytes - Viewed (0) -
guava/src/com/google/common/net/UrlEscapers.java
* <p>This escaper is suitable for escaping parameter names and values even when <a * href="https://goo.gl/utn6M">using the non-standard semicolon</a>, rather than the ampersand, as * a parameter delimiter. Nevertheless, we recommend using the ampersand unless you must * interoperate with systems that require semicolons. * * <p><b>Note:</b> Unlike other escapers, URL escapers produce <a
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Apr 28 15:04:33 UTC 2021 - 6.9K bytes - Viewed (0) -
android/guava/src/com/google/common/net/UrlEscapers.java
* <p>This escaper is suitable for escaping parameter names and values even when <a * href="https://goo.gl/utn6M">using the non-standard semicolon</a>, rather than the ampersand, as * a parameter delimiter. Nevertheless, we recommend using the ampersand unless you must * interoperate with systems that require semicolons. * * <p><b>Note:</b> Unlike other escapers, URL escapers produce <a
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Apr 28 15:04:33 UTC 2021 - 6.9K bytes - Viewed (0)