LCOV - code coverage report
Current view: top level - inc/parsingAnalysis/ast/literals - ast_null.h (source / functions) Coverage Total Hit
Test: coverage.info Lines: 5.3 % 19 1
Test Date: 2025-04-18 15:53:49 Functions: 14.3 % 7 1

            Line data    Source code
       1              : #ifndef AST_NULL_H
       2              : #define AST_NULL_H
       3              : 
       4              : #include "../ast.h"
       5              : 
       6              : namespace nicole {
       7              : 
       8              : class AST_NULL final : public AST {
       9              : public:
      10              :   explicit AST_NULL(const long long unsigned nodeId,
      11              :                     const SourceLocation &srcLoc) noexcept
      12            1 :       : AST{nodeId, AST_TYPE::NULLPTR, srcLoc} {}
      13              : 
      14              :   ~AST_NULL() noexcept = default;
      15              : 
      16              :   [[nodiscard]] std::expected<std::string, Error>
      17            0 :   accept(const PrintTree &visitor) const noexcept override {
      18            0 :     return visitor.visit(this);
      19            0 :   }
      20              : 
      21              :   [[nodiscard]] std::expected<bool, Error>
      22            0 :   accept(const ValidateTree &visitor) const noexcept override {
      23            0 :     return visitor.visit(this);
      24            0 :   }
      25              : 
      26              :   [[nodiscard]] std::expected<std::monostate, Error>
      27            0 :   accept(const FillSemanticInfo &visitor) const noexcept override {
      28            0 :     return visitor.visit(this);
      29            0 :   }
      30              : 
      31              :   [[nodiscard]] std::expected<std::shared_ptr<Type>, Error>
      32            0 :   accept(const TypeAnalysis &visitor) const noexcept override {
      33            0 :     return visitor.visit(this);
      34            0 :   }
      35              : 
      36              :   [[nodiscard]] std::expected<std::monostate, Error>
      37            0 :   accept(const Monomorphize &visitor) const noexcept override {
      38            0 :     return visitor.visit(this);
      39            0 :   }
      40              : 
      41              :   [[nodiscard]] std::expected<std::shared_ptr<llvm::Value>, Error>
      42            0 :   accept(const CodeGeneration &visitor) const noexcept override {
      43            0 :     return visitor.visit(this);
      44            0 :   }
      45              : };
      46              : 
      47              : } // namespace nicole
      48              : 
      49              : #endif // AST_H
        

Generated by: LCOV version 2.0-1