- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 92 for SEMICOLON (0.19 sec)
-
test/fixedbugs/bug274.go
// 6g accepts the program below even though it is syntactically incorrect: // 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.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 13:43:18 UTC 2016 - 888 bytes - Viewed (0) -
src/go/parser/testdata/issue34946.src
// body's opening { on a new line. package p // accept Allman/BSD-style declaration but complain // (implicit semicolon between signature and body) func _() int { /* ERROR "unexpected semicolon or newline before {" */ { return 0 } } func _() {} func _(); { /* ERROR "unexpected semicolon or newline before {" */ }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 02 12:56:53 UTC 2023 - 608 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) -
src/go/types/commentMap_test.go
} case token.SEMICOLON: // ignore automatically inserted semicolon if lit == "\n" { continue } fallthrough default: prev = pos } } } func TestCommentMap(t *testing.T) { const src = `/* ERROR "0:0" */ /* ERROR "0:0" */ // ERROR "0:0" // ERROR "0:0" x /* ERROR "3:1" */ // ignore automatically inserted semicolon here
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 17 19:54:27 UTC 2023 - 3K bytes - Viewed (0) -
src/cmd/compile/internal/syntax/testdata/issue49205.go
package p // test case from issue type _ interface{ m /* ERROR unexpected name int in interface type; possibly missing semicolon or newline or } */ int } // other cases where the fix for this issue affects the error message const ( x int = 10 /* ERROR unexpected literal "foo" in grouped declaration; possibly missing semicolon or newline or \) */ "foo" )
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 952 bytes - Viewed (0) -
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) -
platforms/software/resources-http/src/main/java/org/gradle/internal/resource/transport/http/HttpResponseResource.java
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Oct 12 19:38:08 UTC 2023 - 5.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/bridge_logger.h
// filters that are specified with the `MLIR_BRIDGE_LOG_PASS_FILTER` and // `MLIR_BRIDGE_LOG_STRING_FILTER` environment variables. // `MLIR_BRIDGE_LOG_PASS_FILTER` takes a semicolon-separated list of pass class // names, `MLIR_BRIDGE_LOG_STRING_FILTER` takes a semicolon-separated list of // strings, and IR is only dumped for a pass invocation if the pass name exactly // matches any of the provided pass names and if the serialized operation on
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/cmd/compile/internal/syntax/testing_test.go
const src = `/* ERROR "0:0" */ /* ERROR "0:0" */ // ERROR "0:0" // ERROR "0:0" x /* ERROR "3:1" */ // ignore automatically inserted semicolon here /* ERROR "3:1" */ // position of x on previous line x /* ERROR "5:4" */ ; // do not ignore this semicolon /* ERROR "5:24" */ // position of ; on previous line package /* ERROR "7:2" */ // indented with tab
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 17 19:53:18 UTC 2023 - 1.4K bytes - Viewed (0) -
src/go/printer/testdata/comments.input
} for i=0;// comment after semicolon 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 */ { } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 25 23:11:14 UTC 2022 - 11.3K bytes - Viewed (0)