Base class for all AST nodes. Helps unify printing and dot printing.
More...
#include <AstNode.h>
|
static std::string | indent (int indentation) |
| Get a string of spaces for indentation. More...
|
|
Base class for all AST nodes. Helps unify printing and dot printing.
Definition at line 39 of file AstNode.h.
◆ indent()
static std::string ast::AstNode::indent |
( |
int |
indentation | ) |
|
|
inlinestaticprotected |
Get a string of spaces for indentation.
- Parameters
-
indentation | The level of indentation |
- Returns
- std::string String of spaces
Definition at line 77 of file AstNode.h.
78 return std::string(indentation * 2,
' ');
The documentation for this class was generated from the following files: