mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:57:35 +00:00
LibCpp: Parse 'using namespace' declarations
This gets us a little bit closer to a fully capable C++ parser.
This commit is contained in:
parent
2896d7796d
commit
3cd04f40e1
6 changed files with 64 additions and 0 deletions
|
@ -976,6 +976,18 @@ public:
|
|||
}
|
||||
};
|
||||
|
||||
class UsingNamespaceDeclaration : public Declaration {
|
||||
public:
|
||||
virtual ~UsingNamespaceDeclaration() override = default;
|
||||
virtual StringView class_name() const override { return "UsingNamespaceDeclaration"sv; }
|
||||
virtual void dump(FILE* = stdout, size_t indent = 0) const override;
|
||||
|
||||
UsingNamespaceDeclaration(ASTNode* parent, Optional<Position> start, Optional<Position> end, DeprecatedString const& filename)
|
||||
: Declaration(parent, start, end, filename)
|
||||
{
|
||||
}
|
||||
};
|
||||
|
||||
template<>
|
||||
inline bool ASTNode::fast_is<Identifier>() const { return is_identifier(); }
|
||||
template<>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue