diff options
author | George Marques <george@gmarqu.es> | 2020-08-17 21:10:30 -0300 |
---|---|---|
committer | George Marques <george@gmarqu.es> | 2020-08-17 21:10:30 -0300 |
commit | fda6f3b600e124d9fefa3886d2feba1ce32db99f (patch) | |
tree | 708fae6b310a59a073c43569db400f114c2e670e /modules/gdscript/language_server | |
parent | d06ce2f11ec109f6568329438416a63fc09b96f2 (diff) |
GDScript: Fix LSP getting wrong union value on unnamed enums
Diffstat (limited to 'modules/gdscript/language_server')
-rw-r--r-- | modules/gdscript/language_server/gdscript_extend_parser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdscript/language_server/gdscript_extend_parser.cpp b/modules/gdscript/language_server/gdscript_extend_parser.cpp index ae7898fdf2..4d79d9d395 100644 --- a/modules/gdscript/language_server/gdscript_extend_parser.cpp +++ b/modules/gdscript/language_server/gdscript_extend_parser.cpp @@ -237,7 +237,7 @@ void ExtendGDScriptParser::parse_class_symbol(const GDScriptParser::ClassNode *p case ClassNode::Member::ENUM_VALUE: { lsp::DocumentSymbol symbol; - symbol.name = m.constant->identifier->name; + symbol.name = m.enum_value.identifier->name; symbol.kind = lsp::SymbolKind::EnumMember; symbol.deprecated = false; symbol.range.start.line = LINE_NUMBER_TO_INDEX(m.enum_value.line); |