mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 04:57:44 +00:00
CppLanguageServer: Make properties_of_type return any property
Previously, CppComprehensionEngine::properties_of_type only returned variables.
This commit is contained in:
parent
d7aa831a43
commit
ccb52b005e
2 changed files with 33 additions and 16 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue