@@ -175,7 +175,7 @@ static void test_parser(const String &p_code, const String &p_script_path, const
175175 if (err != OK ) {
176176 const List<GDScriptParser::ParserError> &errors = parser.get_errors ();
177177 for (const GDScriptParser::ParserError &error : errors) {
178- print_line (vformat (" %02d:%02d: %s" , error.line , error.column , error.message ));
178+ print_line (vformat (" %02d:%02d: %s" , error.start_line , error.start_column , error.message ));
179179 }
180180 }
181181
@@ -185,7 +185,7 @@ static void test_parser(const String &p_code, const String &p_script_path, const
185185 if (err != OK ) {
186186 const List<GDScriptParser::ParserError> &errors = parser.get_errors ();
187187 for (const GDScriptParser::ParserError &error : errors) {
188- print_line (vformat (" %02d:%02d: %s" , error.line , error.column , error.message ));
188+ print_line (vformat (" %02d:%02d: %s" , error.start_line , error.start_column , error.message ));
189189 }
190190 }
191191
@@ -261,7 +261,7 @@ static void test_compiler(const String &p_code, const String &p_script_path, con
261261 print_line (" Error in parser:" );
262262 const List<GDScriptParser::ParserError> &errors = parser.get_errors ();
263263 for (const GDScriptParser::ParserError &error : errors) {
264- print_line (vformat (" %02d:%02d: %s" , error.line , error.column , error.message ));
264+ print_line (vformat (" %02d:%02d: %s" , error.start_line , error.start_column , error.message ));
265265 }
266266 return ;
267267 }
@@ -273,7 +273,7 @@ static void test_compiler(const String &p_code, const String &p_script_path, con
273273 print_line (" Error in analyzer:" );
274274 const List<GDScriptParser::ParserError> &errors = parser.get_errors ();
275275 for (const GDScriptParser::ParserError &error : errors) {
276- print_line (vformat (" %02d:%02d: %s" , error.line , error.column , error.message ));
276+ print_line (vformat (" %02d:%02d: %s" , error.start_line , error.start_column , error.message ));
277277 }
278278 return ;
279279 }
0 commit comments