Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 63 for syntaxerr (2.68 sec)

  1. src/cmd/go/testdata/script/list_test_err.txt

    ! stderr 'import cycle not allowed in test'
    
    -- syntaxerr/syntaxerr.go --
    package syntaxerr
    
    import _ "pkgdep"
    
    -- syntaxerr/syntaxerr_ie_test.go --
    package syntaxerr
    
    !!!syntax error
    
    -- syntaxerr/syntaxerr_xe_test.go --
    package syntaxerr_test
    
    !!!syntax error
    
    -- syntaxerr/syntaxerr_i_test.go --
    package syntaxerr
    
    import _ "testdep_a"
    
    -- syntaxerr/syntaxerr_x_test.go --
    package syntaxerr
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 04 23:08:19 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  2. analysis/analysis-api/testData/components/compilerFacility/compilation/codeFragments/syntaxError.txt

    Yan Zhulanow <******@****.***> 1706514463 +0900
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jan 30 11:41:26 UTC 2024
    - 50 bytes
    - Viewed (0)
  3. analysis/analysis-api/testData/components/compilerFacility/compilation/codeFragments/syntaxError.kt

    Yan Zhulanow <******@****.***> 1706514463 +0900
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jan 30 11:41:26 UTC 2024
    - 240 bytes
    - Viewed (0)
  4. src/cmd/go/testdata/script/mod_get_errors.txt

    -- importsyntax/importsyntax.go --
    package importsyntax
    
    import _ "example.com/badimport/syntaxerror"
    -- badimport/go.mod --
    module example.com/badimport
    
    go 1.16
    -- badimport/badimport.go --
    package badimport
    
    import "example.net/oops"
    -- badimport/syntaxerror/syntaxerror.go --
    pack-age syntaxerror // sic
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Jun 03 21:13:11 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  5. src/cmd/go/testdata/script/test_syntax_error_says_fail.txt

    # says FAIL.
    
    env GO111MODULE=off
    ! go test syntaxerror
    stderr 'x_test.go:' # check that the error is diagnosed
    stdout 'FAIL' # check that go test says FAIL
    
    env GO111MODULE=on
    cd syntaxerror
    ! go test syntaxerror
    stderr 'x_test.go:' # check that the error is diagnosed
    stdout 'FAIL' # check that go test says FAIL
    
    -- syntaxerror/go.mod --
    module syntaxerror
    
    go 1.16
    -- syntaxerror/x.go --
    package p
    -- syntaxerror/x_test.go --
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 17 13:25:29 UTC 2020
    - 534 bytes
    - Viewed (0)
  6. src/cmd/go/testdata/script/test_match_no_tests_build_failure.txt

    # that the error for not matching tests does not override the error for
    # the build failure.
    
    ! go test -run ThisWillNotMatch syntaxerror
    ! stderr '(?m)^ok.*\[no tests to run\]'
    stdout 'FAIL'
    
    -- go.mod --
    module syntaxerror
    
    go 1.16
    -- x.go --
    package p
    -- x_test.go --
    package p
    
    func f() (x.y, z int) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 17 13:25:29 UTC 2020
    - 385 bytes
    - Viewed (0)
  7. src/strconv/atoi.go

    			continue
    		case '0' <= c && c <= '9':
    			d = c - '0'
    		case 'a' <= lower(c) && lower(c) <= 'z':
    			d = lower(c) - 'a' + 10
    		default:
    			return 0, syntaxError(fnParseUint, s0)
    		}
    
    		if d >= byte(base) {
    			return 0, syntaxError(fnParseUint, s0)
    		}
    
    		if n >= cutoff {
    			// n*base overflows
    			return maxVal, rangeError(fnParseUint, s0)
    		}
    		n *= uint64(base)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun May 05 00:24:26 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  8. src/go/build/read.go

    		if r.nextByte(false) != kw[i] {
    			r.syntaxError()
    			return
    		}
    	}
    	if isIdent(r.peekByte(false)) {
    		r.syntaxError()
    	}
    }
    
    // readIdent reads an identifier from the input.
    // If an identifier is not present, readIdent records a syntax error.
    func (r *importReader) readIdent() {
    	c := r.peekByte(true)
    	if !isIdent(c) {
    		r.syntaxError()
    		return
    	}
    	for isIdent(r.peekByte(false)) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  9. src/go/build/constraint/expr_test.go

    	in  string
    	err error
    }{
    	{"x && ", &SyntaxError{Offset: 5, Err: "unexpected end of expression"}},
    	{"x && (", &SyntaxError{Offset: 6, Err: "missing close paren"}},
    	{"x && ||", &SyntaxError{Offset: 5, Err: "unexpected token ||"}},
    	{"x && !", &SyntaxError{Offset: 6, Err: "unexpected end of expression"}},
    	{"x && !!", &SyntaxError{Offset: 6, Err: "double negation not allowed"}},
    	{"x !", &SyntaxError{Offset: 2, Err: "unexpected token !"}},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 18 22:36:55 UTC 2021
    - 7.6K bytes
    - Viewed (0)
  10. src/cmd/go/internal/imports/read.go

    		if r.nextByte(false) != kw[i] {
    			r.syntaxError()
    			return
    		}
    	}
    	if isIdent(r.peekByte(false)) {
    		r.syntaxError()
    	}
    }
    
    // readIdent reads an identifier from the input.
    // If an identifier is not present, readIdent records a syntax error.
    func (r *importReader) readIdent() {
    	c := r.peekByte(true)
    	if !isIdent(c) {
    		r.syntaxError()
    		return
    	}
    	for isIdent(r.peekByte(false)) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 15 18:42:11 UTC 2021
    - 6.1K bytes
    - Viewed (0)
Back to top