diff options
Diffstat (limited to 'libyul/optimiser/Metrics.h')
-rw-r--r-- | libyul/optimiser/Metrics.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libyul/optimiser/Metrics.h b/libyul/optimiser/Metrics.h index 8ed73cca..47c7ec79 100644 --- a/libyul/optimiser/Metrics.h +++ b/libyul/optimiser/Metrics.h @@ -36,6 +36,9 @@ public: /// Returns a metric for the code size of an AST element. /// More specifically, it returns the number of AST nodes. static size_t codeSize(Expression const& _expression); + /// Returns a metric for the code size of an AST element. + /// More specifically, it returns the number of AST nodes. + static size_t codeSize(Block const& _block); private: virtual void visit(Statement const& _statement) override; |