nw::script::StructDecl

struct StructDecl : public nw::script::Declaration

Public Functions

inline StructDecl(MemoryResource *allocator)
inline virtual String identifier() const override
const VarDecl *locate_member_decl(StringView name) const
virtual SourceRange range() const noexcept
virtual SourceRange selection_range() const noexcept
virtual void accept(BaseVisitor *visitor) = 0
virtual void complete(const String &needle, Vector<const Declaration*> &out, bool no_filter = false) const

Find completions for this Ast Node

Note

This function does not traverse dependencies

Public Members

PVector<Declaration*> decls
Type type
SourceRange range_selection_
StringView view
size_t type_id_ = invalid_type_id
bool is_const_ = false
immer::map<String, Export> env_
SourceRange range_