Add columns to Language Server
This commit is contained in:
parent
5ad8b27d8d
commit
ea1cb8fe67
10 changed files with 68 additions and 50 deletions
|
|
@ -175,7 +175,7 @@ static void test_parser(const String &p_code, const String &p_script_path, const
|
|||
if (err != OK) {
|
||||
const List<GDScriptParser::ParserError> &errors = parser.get_errors();
|
||||
for (const GDScriptParser::ParserError &error : errors) {
|
||||
print_line(vformat("%02d:%02d: %s", error.line, error.column, error.message));
|
||||
print_line(vformat("%02d:%02d: %s", error.start_line, error.start_column, error.message));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -185,7 +185,7 @@ static void test_parser(const String &p_code, const String &p_script_path, const
|
|||
if (err != OK) {
|
||||
const List<GDScriptParser::ParserError> &errors = parser.get_errors();
|
||||
for (const GDScriptParser::ParserError &error : errors) {
|
||||
print_line(vformat("%02d:%02d: %s", error.line, error.column, error.message));
|
||||
print_line(vformat("%02d:%02d: %s", error.start_line, error.start_column, error.message));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -261,7 +261,7 @@ static void test_compiler(const String &p_code, const String &p_script_path, con
|
|||
print_line("Error in parser:");
|
||||
const List<GDScriptParser::ParserError> &errors = parser.get_errors();
|
||||
for (const GDScriptParser::ParserError &error : errors) {
|
||||
print_line(vformat("%02d:%02d: %s", error.line, error.column, error.message));
|
||||
print_line(vformat("%02d:%02d: %s", error.start_line, error.start_column, error.message));
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
|
@ -273,7 +273,7 @@ static void test_compiler(const String &p_code, const String &p_script_path, con
|
|||
print_line("Error in analyzer:");
|
||||
const List<GDScriptParser::ParserError> &errors = parser.get_errors();
|
||||
for (const GDScriptParser::ParserError &error : errors) {
|
||||
print_line(vformat("%02d:%02d: %s", error.line, error.column, error.message));
|
||||
print_line(vformat("%02d:%02d: %s", error.start_line, error.start_column, error.message));
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue