Go: Update frontend error messages for Go 1.23

This commit is contained in:
Michael B. Gale 2024-07-24 11:49:55 +01:00
Родитель 4dead2bd8d
Коммит c8e732468a
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: FF5E2765BD00628F
5 изменённых файлов: 5 добавлений и 5 удалений

Просмотреть файл

@ -1,4 +1,4 @@
| -:0:0:0:0 | package ; expected main |
| -:0:0:0:0 | package ; expected package main |
| broken2/test1.go:4:2:4:2 | undefined: fmt |
| broken2/test1.go:5:2:5:2 | undefined: fmt |
| broken2/test1.go:5:14:5:14 | undefined: a |

Просмотреть файл

@ -1,4 +1,4 @@
| -:0:0:0:0 | package ; expected nonexistent |
| -:0:0:0:0 | package ; expected package nonexistent |
| vendor/github.com/github/nonexistent/bad.go:1:57:1:57 | expected ';', found 'EOF' |
| vendor/github.com/github/nonexistent/bad.go:1:57:1:57 | expected 'IDENT', found 'EOF' |
| vendor/github.com/github/nonexistent/bad.go:1:57:1:57 | expected 'package', found 'EOF' |

Просмотреть файл

@ -1,5 +1,5 @@
| -:0:0:0:0 | malformed import path "github.com/github/codeql-go/ql/test/query-tests/Diagnostics/invalid{": invalid char '{' |
| -:0:0:0:0 | package ; expected main |
| -:0:0:0:0 | package ; expected package main |
| bad.go:3:1:3:1 | expected 'package', found avvu |
| bad.go:3:1:3:1 | expected 'package', found avvu |
| bad.go:3:5:3:5 | expected 'IDENT', found newline |

Просмотреть файл

@ -4,4 +4,4 @@
| Extraction failed with error expected 'IDENT', found newline | 2 |
| Extraction failed with error expected 'package', found avvu | 2 |
| Extraction failed with error malformed import path "github.com/github/codeql-go/ql/test/query-tests/Diagnostics/invalid{": invalid char '{' | 2 |
| Extraction failed with error package ; expected main | 2 |
| Extraction failed with error package ; expected package main | 2 |

Просмотреть файл

@ -1,4 +1,4 @@
| -:0:0:0:0 | package ; expected main |
| -:0:0:0:0 | package ; expected package main |
| empty-file.go:1:1:1:1 | expected ';', found 'EOF' |
| empty-file.go:1:1:1:1 | expected 'IDENT', found 'EOF' |
| empty-file.go:1:1:1:1 | expected 'package', found 'EOF' |