@@ -31,111 +31,21 @@ random_keyword WrongEnum {
3131
3232//----
3333//- diagnostics
34- // Error: Expected top-level declaration, found identifier
34+ // Error: Unknown keyword 'classs'. Expected 'class', 'enum', 'function', 'client', 'generator', 'test', or 'type'.
3535// ╭─[ class_invalid_keyword_in_type_def.baml:10:1 ]
3636// │
3737// 10 │ classs WrongClass {
3838// │ ───┬──
39- // │ ╰──── Expected top-level declaration, found identifier
39+ // │ ╰──── Unknown keyword 'classs'. Expected 'class', 'enum', 'function', 'client', 'generator', 'test', or 'type'.
4040// │
4141// │ Note: Error code: E0010
4242// ────╯
43- // Error: Expected top-level declaration, found identifier
44- // ╭─[ class_invalid_keyword_in_type_def.baml:10:8 ]
45- // │
46- // 10 │ classs WrongClass {
47- // │ ─────┬────
48- // │ ╰────── Expected top-level declaration, found identifier
49- // │
50- // │ Note: Error code: E0010
51- // ────╯
52- // Error: Expected top-level declaration, found '{'
53- // ╭─[ class_invalid_keyword_in_type_def.baml:10:19 ]
54- // │
55- // 10 │ classs WrongClass {
56- // │ ┬
57- // │ ╰── Expected top-level declaration, found '{'
58- // │
59- // │ Note: Error code: E0010
60- // ────╯
61- // Error: Expected top-level declaration, found identifier
62- // ╭─[ class_invalid_keyword_in_type_def.baml:11:3 ]
63- // │
64- // 11 │ field string
65- // │ ──┬──
66- // │ ╰──── Expected top-level declaration, found identifier
67- // │
68- // │ Note: Error code: E0010
69- // ────╯
70- // Error: Expected top-level declaration, found identifier
71- // ╭─[ class_invalid_keyword_in_type_def.baml:11:9 ]
72- // │
73- // 11 │ field string
74- // │ ───┬──
75- // │ ╰──── Expected top-level declaration, found identifier
76- // │
77- // │ Note: Error code: E0010
78- // ────╯
79- // Error: Expected top-level declaration, found '}'
80- // ╭─[ class_invalid_keyword_in_type_def.baml:12:1 ]
81- // │
82- // 12 │ }
83- // │ ┬
84- // │ ╰── Expected top-level declaration, found '}'
85- // │
86- // │ Note: Error code: E0010
87- // ────╯
88- // Error: Expected top-level declaration, found identifier
43+ // Error: Unknown keyword 'random_keyword'. Expected 'class', 'enum', 'function', 'client', 'generator', 'test', or 'type'.
8944// ╭─[ class_invalid_keyword_in_type_def.baml:14:1 ]
9045// │
9146// 14 │ random_keyword WrongEnum {
9247// │ ───────┬──────
93- // │ ╰──────── Expected top-level declaration, found identifier
94- // │
95- // │ Note: Error code: E0010
96- // ────╯
97- // Error: Expected top-level declaration, found identifier
98- // ╭─[ class_invalid_keyword_in_type_def.baml:14:16 ]
99- // │
100- // 14 │ random_keyword WrongEnum {
101- // │ ────┬────
102- // │ ╰────── Expected top-level declaration, found identifier
103- // │
104- // │ Note: Error code: E0010
105- // ────╯
106- // Error: Expected top-level declaration, found '{'
107- // ╭─[ class_invalid_keyword_in_type_def.baml:14:26 ]
108- // │
109- // 14 │ random_keyword WrongEnum {
110- // │ ┬
111- // │ ╰── Expected top-level declaration, found '{'
112- // │
113- // │ Note: Error code: E0010
114- // ────╯
115- // Error: Expected top-level declaration, found identifier
116- // ╭─[ class_invalid_keyword_in_type_def.baml:15:3 ]
117- // │
118- // 15 │ A
119- // │ ┬
120- // │ ╰── Expected top-level declaration, found identifier
121- // │
122- // │ Note: Error code: E0010
123- // ────╯
124- // Error: Expected top-level declaration, found identifier
125- // ╭─[ class_invalid_keyword_in_type_def.baml:16:3 ]
126- // │
127- // 16 │ B
128- // │ ┬
129- // │ ╰── Expected top-level declaration, found identifier
130- // │
131- // │ Note: Error code: E0010
132- // ────╯
133- // Error: Expected top-level declaration, found '}'
134- // ╭─[ class_invalid_keyword_in_type_def.baml:17:1 ]
135- // │
136- // 17 │ }
137- // │ ┬
138- // │ ╰── Expected top-level declaration, found '}'
48+ // │ ╰──────── Unknown keyword 'random_keyword'. Expected 'class', 'enum', 'function', 'client', 'generator', 'test', or 'type'.
13949// │
14050// │ Note: Error code: E0010
14151// ────╯
0 commit comments