CppLanguageServer: Make properties_of_type return any property

Previously, CppComprehensionEngine::properties_of_type only returned
variables.
This commit is contained in:
Itamar 2021-06-26 17:17:46 +03:00 committed by Ali Mohammad Pur
commit ccb52b005e
Notes: sideshowbarker 2024-07-18 11:23:18 +09:00
2 changed files with 33 additions and 16 deletions

View file

@ -36,6 +36,7 @@ private:
Vector<StringView> scope;
static SymbolName create(StringView, Vector<StringView>&&);
static SymbolName create(StringView);
String scope_as_string() const;
String to_string() const;
@ -106,11 +107,7 @@ private:
Yes
};
struct PropertyInfo {
StringView name;
RefPtr<Type> type;
};
Vector<PropertyInfo> properties_of_type(const DocumentData& document, const String& type) const;
Vector<Symbol> properties_of_type(const DocumentData& document, const String& type) const;
Vector<Symbol> get_child_symbols(const ASTNode&) const;
Vector<Symbol> get_child_symbols(const ASTNode&, const Vector<StringView>& scope, Symbol::IsLocal) const;