summaryrefslogtreecommitdiff
path: root/modules/gdscript/language_server
diff options
context:
space:
mode:
authorGeorge Marques <george@gmarqu.es>2020-07-15 22:02:44 -0300
committerGeorge Marques <george@gmarqu.es>2020-07-22 11:07:51 -0300
commita0f54cb95e3a0250df8ed6e6a54720c487034d97 (patch)
tree6beb7819395100a5045937a10ee33e4d4bf67f36 /modules/gdscript/language_server
parentaa09b4f85d94b9d563a0b2cbaa399427527ce6fc (diff)
Wrap up GDScript 2.0 base implementation
Diffstat (limited to 'modules/gdscript/language_server')
-rw-r--r--modules/gdscript/language_server/gdscript_extend_parser.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/gdscript/language_server/gdscript_extend_parser.cpp b/modules/gdscript/language_server/gdscript_extend_parser.cpp
index 1e21ac3347..ae7898fdf2 100644
--- a/modules/gdscript/language_server/gdscript_extend_parser.cpp
+++ b/modules/gdscript/language_server/gdscript_extend_parser.cpp
@@ -290,11 +290,11 @@ void ExtendGDScriptParser::parse_class_symbol(const GDScriptParser::ClassNode *p
symbol.script_path = path;
symbol.detail = "enum " + String(m.m_enum->identifier->name) + "{";
- for (int i = 0; i < m.m_enum->values.size(); i++) {
- if (i > 0) {
+ for (int j = 0; j < m.m_enum->values.size(); j++) {
+ if (j > 0) {
symbol.detail += ", ";
}
- symbol.detail += String(m.m_enum->values[i].identifier->name) + " = " + itos(m.m_enum->values[i].value);
+ symbol.detail += String(m.m_enum->values[j].identifier->name) + " = " + itos(m.m_enum->values[j].value);
}
symbol.detail += "}";
r_symbol.children.push_back(symbol);